Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Overview: Use a Kali VM, Netcat (nc), Wireshark, and Python to perform network analysis. Initially replicate the nc demo from lecture. Next Use the attached

Overview:

Use a Kali VM, Netcat (nc), Wireshark, and Python to perform network analysis. Initially replicate the nc demo from lecture. Next Use the attached Python programs to send and receive messages across the network while capturing the packets in Wireshark. Now write your own sender and receiver programs. Additionally, write a third program to either masquerade or spoof packets. Anaylze this traffic in Wireshark.

The work must be done from a Kali VM only. Trace captures and tool source code is required.

Delvierables:

Provide screenshots of your work. Specifically, be sure to provide screenshots of your Wireshark analysis from each activity. Provide the source code for your tools. Upload your Wireshark trace files that include the captured packets.

Provide a single Word format document with all screenshots nicely resized and annotated. Your document should analyze your results. Be sure to use the 5 basic security service categories in your analysis.

I NEED HELP WITH THE PYTHON FILES ONLY. THANKS

HERE ARE THE PYTHON FILES:

client.py

# Import socket module import socket # Create a socket object s = socket.socket() # Define the port on which you want to connect port = 12345

msg = raw_input("Message to send: ")

# connect to the server on local computer s.connect(('127.0.0.1', port))

s.send(msg) print s.recv(1024) # close the connection s.close() --------------------------------------

HERE IS THE SECOND FILE:

server.py

import socket

last_message = "NONE"

s = socket.socket() print "Socket successfully created" port = 12345

s.bind(('', port)) print "socket binded to %s" %(port) # put the socket into listening mode s.listen(5) print "socket is listening"

while True: # Establish connection with client. c, addr = s.accept() print 'Got connection from', addr

print 'Sending last message' c.send(last_message)

msg = c.recv(1024) print 'new message recieved:' print msg

# Update last message recieved last_message = msg

# Close the connection with the client c.close()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions

Question

Given that f(x) = x / x - 3, find f(-3), f(0), and f(3).

Answered: 1 week ago

Question

Question What integration level should an employer choose?

Answered: 1 week ago