-
-
Notifications
You must be signed in to change notification settings - Fork 41
Managing listeners
andrei edited this page Jul 29, 2022
·
7 revisions
To create a listener in NimC2 you use the startlistener (aliased sl) command.
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 be127.0.0.1,0.0.0.0or 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 on127.0.0.1:1337called tcp_main -
startlistener tcp tcp_main -i:0.0.0.0 -p:1337: start a TCP listener listening on any address, port1337called tcp_main -
startlistener tcp tcp_main -i:192.168.0.19 -p:1337: start a TCP listener listening on192.168.0.19:1337called tcp_main
HTTP listeners are now also supported
You can view existing listeners using the listeners
