Showing posts with label commands. Show all posts
Showing posts with label commands. Show all posts

Sunday, 14 February 2016

How to Send an Email Through Telnet With an AttachmentIn Feburary 2016 14,

In Feburary 2016 14,
Run the Command prompt. This is achieved on any Windows PC through the typing 'cmd' in the 'Run' application under the 'Start' menu.
Type in the following command, keeping your email server details ready for insertion:telnet yourserver.com 25The only variable is yourserver.com, which you should modify to reflect the outgoing SMTP server on your email account.
Type the command 'EHLO yourserver.com' to begin typing your email, using the MAIL FROM, RCP TO and DATA commands, respectively, to type your message.
Encode your attachment through the MIME format, entering the header and content code within the DATA section of your email. This will allow your attached media to be sent over the text-based Telnet protocol, regardless of whether it's an image, an illustrated brochure or just plain text.
Type a period on an otherwise blank line beneath your email and hit return to send your message and attachment. If you receive an error message, check that you've inserted the correct commands with no typos and that your email addresses are correct.
Type the command 'QUIT' to end your Telnet connection.
In Feburary 2016 14,

Monday, 8 February 2016

How to Split a String Into Two Variables in PowerShellIn Feburary 2016 08,

In Feburary 2016 08,
Start Windows PowerShell by clicking the Windows 'Start' button and typing 'powershell' into the 'Search programs and files' text box. This will open the Windows PowerShell console.
Type 'notepad split.ps1' in the PowerShell console to open Microsoft Notepad and create a new script called 'split.ps1.' Click 'Yes' when prompted by Notepad to allow the new file to be created.
Type the following commands into the new file, then save the file:$text = 'Windows PowerShell - Hello world!'$split = $text.split('-')echo $split[0]echo $split[1]First, a string is created named '$text' which holds the text to be split. The string is then split using the PowerShell 'Split' function, passing in the character the string is to be split by. In the code above, the string is split at the location of the hyphen. This creates an array in '$split' with two elements. The first element contains all the text up to the hyphen and the second element contains all the text after the hyphen. The contents of the two elements are then displayed to verify the command has worked.
Run the script in PowerShell by typing '.\split.ps1' and the display will show the output below, indicating the command was successful:Windows PowerShellHello World!
In Feburary 2016 08,

Sunday, 7 February 2016

How to Configure VSFTPDIn Feburary 2016 07,

In Feburary 2016 07,
Open a Terminal Window. The terminal window will be found in the operating system's main 'Application' menu, under either 'System Tools' or 'Utilities.' You will be presented with a command prompt where you will type the following commands.
Type the command 'su' to switch to the root user.
Type the command 'gedit /etc/vsftpd/vsftpd.conf' to edit the main configuration file.
Make the appropriate changes. For example, if you do not want anonymous access set 'anonymous_enable=NO.' Also, if you want local users to be able to log in, remove the comment symbol (#) before 'local_enable.'
Save and close the file.
Type '/etc/initd/vsftpd restart' to restart the vsftpd daemon.
Type 'exit' to exit the root session.
In Feburary 2016 07,

Monday, 1 February 2016

OpenSSH Vs. PuTTYIn Feburary 2016 01,

In Feburary 2016 01,
Secure Shell protocol was invented by the SSH Communications Security company to address the security problems inherent in remote connections between computers. SSH uses public-key encryption to encrypt messages against hacker interception. This hides data when it is in-transit between computers, meaning that files and user commands sent through the SSH channel are encrypted and protected until they reach their destination.
OpenSSH
SSH was originally free, but eventually the licensing for the code was closed as the SSH technology was moved into a corporate setting through more restrictive licensing. However, developers 'forked,' or split, the free code remaining in SSH -- the 1.2.12 release -- and created the openSSH project. The project was then made part of the OpenBSD operating system, itself a free fork of the Unix operating system that had also undergone more restrictive license.
PuTTY
Some licensing schemes limited the use of openSSH to non-Windows operating systems. PuTTY acts as a terminal emulator for networked connections between computers. Typically, Windows computers do not have the capability to connect to SSH servers from the terminal. PuTTY mimics the Unix command terminal, and through a Wizard Interface allows users to create network sessions to other computers through various connection protocols.
Usage
OpenSSH is implemented across multiple platforms, including Linux and Mac operating systems. These implementations allow users to create SSH servers to receive and create connections to other SSH servers. PuTTY presents only a graphical client for Windows and Linux users to create quick connections over multiple protocols, such as SSH and Telnet. OpenSSH also runs from the command line natively, while PuTTY provides a Graphical User Interface, or GUI, with options to store sessions and modify connection settings.
In Feburary 2016 01,