Question: Note: Please don't copy and make sure to explain with add screenshots Scapy is a popular python package that allows you to read and create

Note: Please don't copy and make sure to explain with add screenshots

Scapy is a popular python package that allows you to read and create packets. Use scapy to hijack a telnet session and insert your own commands. If you find it easier you may provide your program with the packet sequence number. Your metasploit VM has a Telnet server you can attack. You must analyze the TELNET protocol using Wireshark. Explain the basics of the protocol. Explain what needs to happen for a telent session to be hijacked and why. Your explanation should cover both TELNET and TCP. Aside from your analysis you should submit the following 1. A short python script that allows you to hijack a telnet TCP session, with a brief explanation of the code. 2. A screenshot showing your program successfully running a command on the target Your code must 1Send a telnet command Acknowledge the ECHO of the command Below is some code to help you start.

Listing 1: Code Skeleton

import sys from scapy.all import * IPLayer = IP() %what should I put here? TCPLayer = TCP() %what should I put here? Data = %what should I put here? pkt = IPLayer/TCPLayer/Data ls(pkt) send(pkt,verbose=0)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!