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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started