Which NetCat option puts NetCat into listen mode?

Study for the SANS560 GIAC Penetration Tester (GPEN) Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Multiple Choice

Which NetCat option puts NetCat into listen mode?

Explanation:
Listen mode is when NetCat acts as a server, waiting for an incoming connection rather than trying to connect out. The flag that enables this behavior is the lowercase -l. With -l, you run something like nc -l 1234 to have NetCat listen on port 1234; a client can connect to that port and you can interact over the opened session. Other flags serve different purposes (for example, disabling DNS lookups, or specifying a port in some variants) and do not switch NetCat into listening mode.

Listen mode is when NetCat acts as a server, waiting for an incoming connection rather than trying to connect out. The flag that enables this behavior is the lowercase -l. With -l, you run something like nc -l 1234 to have NetCat listen on port 1234; a client can connect to that port and you can interact over the opened session. Other flags serve different purposes (for example, disabling DNS lookups, or specifying a port in some variants) and do not switch NetCat into listening mode.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy