Software requirements:-
-KpyM Telnet/SSH Server
-FileZilla
-Any Linux OS
1) Run the following command:-
ping jjunimap.blogpost.com
PART 2: COPYING FILES TO ANOTHER MACHINE-FTP AND SCP
1) Check your IPv4 address in CMD, follow the command below:- ipconfig
Mine IP address is 10.12.132.205, everyone should get different IP address
ftp 10.12.132.205
3) It should present you with a prompt. Type in the username and password then press Enter.
4) It should show something like Logged on. Remote system type is UNIX.
5) Now you should be in FTP prompt. Run the following command:
ls -la
7) One thing to remember when using ftp is to know where you are at all times. It is very easy to get confused. Use pwd often. Run it now:
8) The commands you type are on the server. To run a command locally, prefix it with an exclamation point. Try these commands:
!pwd
!ls
lcd /tmp
put f1.txt
11) Now let's retrieve file f5.txt from the server:
get f5.txt
quit
cd /tmp
14) Create a test file by running:
ls >f1.txt
15) Run the following command:
scp f1.txt (Username)@(IPaddress):/temp
For my code is scp f1.txt Administrator@10.12.132.205
*I change to Administrator to get permission for administration.*
16) Enter the password and check your Windows Temp file.
17) Create a file f5.txt in your file on the remote /temp in your Windows OS, to get it run:-
scp Administrator@10.12.132.205:/C:/Temp/f5.txt /tmp
You may check the result in your tmp file.
PART 3: TELNET AND SECURE SHELL
1) Run the following command:
telnet <IP ADDRESS> (for mine is 192.168.43.97)
2) A banner and prompt should be appear as shown below:-
3) Enter your username and password.
4) In this terminal you can run pretty much any text-mode command you want. Try dir. This gives you the absolute path, which means the path that starts from the root.
*If you are Linux User, try pwd*
*If you are Linux User, try pwd*
5) You can change to another directory, edit files, and pretty much whatever you would normally do if you were actually on the system.
6) When you are done with the session, run:
exit
----------------------------------------------------------------------------------------------------------
1) Now let's try running a Secure Shell session:
ssh (Username@IPaddress)
For mine is ssh Administrator@10.12.132.205
*I used Administrator account to get access to PowerShell.*
2) Enter your password and output will be show the as shown below:-
cd
systeminfo
*If you are a Linux User, try uptime*
Output will show a list of the system information, find the system boot time.5) As with Telnet, every text-based command should work just as if you were on actual machine. When done with the session, run:
4) You can also refer to specific files. Try: wget www.jjunimap.blogspot.com/2021/03/lab-1_24.html
6) If you have suspect site in mind do a wget on the file. View it and look for links to other sites. If you see something like http:/DoWeCheatThemAndHow.com. I probably wouldn't click on that.
LAB 5 END
LET'S MAKE A LITTLE BIT PROGRESS EVERY DAY AND YOU SEE
THE POWER OF SMALL CHANGES
No comments:
Post a Comment