Skip to content

Managing listeners

andrei edited this page Jul 29, 2022 · 7 revisions

To create a listener in NimC2 you use the startlistener (aliased sl) command.

TCP Listeners

A TCP listener can be started using the following command: startlistener tcp (listener name). This command accepts multiple flags:

  • --ip/-i (required): Supply the IP to listen on. This can be 127.0.0.1, 0.0.0.0 or any other public IP address.
  • --port/-p (required): Supply the port to listen on. This can be any integer from 0 to 65535.

Examples:

  • startlistener tcp tcp_main --ip:127.0.0.1 --port:1337: start a TCP listener listening on 127.0.0.1:1337 called tcp_main
  • startlistener tcp tcp_main -i:0.0.0.0 -p:1337: start a TCP listener listening on any address, port 1337 called tcp_main
  • startlistener tcp tcp_main -i:192.168.0.19 -p:1337: start a TCP listener listening on 192.168.0.19:1337 called tcp_main

HTTP listeners are now also supported

Managing listeners

You can view existing listeners using the listeners

image

Clone this wiki locally