Question: TCP Server [ 5 Marks ] CREATE A SERVER SCRIPT 1 . Accept only one connection at a time. [ 1 Mark ] a .
TCP Server Marks CREATE A SERVER SCRIPT
Accept only one connection at a time. Mark
a Implement functionality in the server script to handle one connection at
any given time.
Print a success message when a connection is received Mark
a Upon successfully establishing a connection, the server should display a
confirmation message.
Allows the user to enter commands to be executed on the target Marks
a Implement a feature that reads input from the serverside user and
sends these commands to the connected client for execution.
Allows user to terminate shell by typing "end" Mark
a Implement a feature that gracefully terminates the reverse shell session
when the serverside user types "end."
Part : TCP Client Marks CREATE A CLIENT SCRIPT
Connect to the server Mark
a Implement functionality that allows the client to initiate a connection to
the server's IP address and port.
Receive commands from the server Mark
a The client should be able to receive and interpret commands sent from
the server.
Execute command Mark
a Implement command execution functionality using the subprocess
library.
Capture errors or response from command and send to server Marks
a The client should capture the output or any errors from the executed
command and send this information back to the server.
Operation Instructions Marks
Where in the code to update IP addresses Mark
a Provide specific instructions on where in the server and client code the
user should specify the IP addresses for the connection.
What port numbers to use? Mark
a Suggest optimal port numbers for establishing the connection and
justify the choice.
Any known bugs? Marks
a Document any known issues or limitations within the application,
providing descriptions and potential impacts.
Any custom commands? Mark
a If there are any custom commands implemented in the reverse shell,
describe them and explain their usage.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
