Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Reem executed server.py python program as show below: #!/usr/bin/python import socket s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind((10.0.2.16,9090)) s.listen(5) print(listening for incoming connections) target, ip
Reem executed server.py python program as show below:
#!/usr/bin/python
import socket
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(("10.0.2.16",9090))
s.listen(5)
print("listening for incoming connections")
target, ip = s.accept()
print("Target Connected!")
s.close()
How can she use netcat to connect to the server?
a) nc 10.0.2.16 9090
b) nc 192.168.10.1 4444
c) nc -lvp
d) netcat 10.0.2.16
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