What does the following command in netcat do?
nc -l -u -p55555 < /etc/passwd
A.
logs the incoming connections to /etc/passwd file
B.
loads the /etc/passwd file to the UDP port 55555
C.
grabs the /etc/passwd file when connected to UDP port 55555
D.
deletes the /etc/passwd file when connected to the UDP port 55555
Explanation:
-l forces netcat to listen for incoming connections.
-u tells netcat to use UDP instead of TCP
-p 5555 tells netcat to use port 5555
< /etc/passwd tells netcat to grab the /etc/passwd file when connected to.
C
Answr B
nc -l -u -p55555 < /etc/passwd
-l is listening,waiting someone to connect.
-p55555 is waiting on port 5555,not connect to some host's port 55555.
/etc/passwd
Answr B
nc -l -u -p55555 < /etc/passwd
-l is listening,waiting someone to connect.
-p55555 is waiting on port 5555,not connect to some host's port 55555.
< /etc/passwd is sent out the file of /etc/passwd, when is sending must load first.
If "grabs", the command is nc HOST 55555 > /etc/passwd
Answr B
nc -l -u -p55555 < /etc/passwd
-l is listening,waiting someone to connect.
-p55555 is waiting on port 5555,not connect to some host’s port 55555.
< /etc/passwd is sent out the file of /etc/passwd, when is sending must load first.
If “grabs”, the command is nc HOST 55555 > /etc/passwd