Full width home advertisement

Post Page Advertisement [Top]


Software requirements:-
-KpyM Telnet/SSH Server
-FileZilla
-Any Linux OS

PART 1: CHECKING NETWORK
1) Run the following command:-
    ping jjunimap.blogpost.com


2) It should be looking something like the above figure. Next follow press CTRL+C to stop the output.     The output will be something like this:-


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

2) In Kali Linux, launch your terminal and run the following command:-
     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

6) Now you should be seeing a list of files. Run help to show a list of commands.


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

9) Change your local directory to /tmp by running:
    lcd /tmp

10) Run the !ls command. Now let's copy file f1.txt to the server:
       put f1.txt


11) Now let's retrieve file f5.txt from the server:
       get f5.txt



12) When you are finished with your FTP session run the following command:
       quit

13) Now let's run some scp commands, to begin:
       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*

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.*

You should be able to get the output as shown above, type 'yes' to continue.

2) Enter your password and output will be show the as shown below:-

3) Try some commands. Run the following command:-
     cd
     *If you are a Linux User, try pwd*

4) Try run the following command:-
    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:
    exit


PART 4: GETTING A WEB PAGE WITHOUT A BROWSER-WGET

1) Run the following command:-
    cd /tmp


2) Run the following command:
    wget www.jjunimap.blogspot.com


3) The resulting file will be named index.html shown as above figure. View it with more index.html. Yes, it's my blog.


4) You can also refer to specific files. Try:
    wget www.jjunimap.blogspot.com/2021/03/lab-1_24.html


5) Try it with some other sites. You can do this on a suspicious site to see if it is safe.

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

Bottom Ad [Post Page]

| Designed by Colorlib