Netcat-like Console Command: Connect
- Sunday, January 18, 2009, 7:06
- Threat Research
A few weeks ago I committed the initial version of a new console command used to communicate with a host: connect. Since then I've slowly added a few more features.If you've ever used Netcat (all of you I'm sure), you'll feel right at home. If not, connect is quite simple to use and you should pick up on it quickly given the text below.msf > connect -hUsage: connect <host> <port>Communicate with a host, similar to interacting via netcat.OPTIONS: -C Try to use CRLF for EOL sequence. -S <opt> Specify source address. -c <opt> Specify which Comm to use. -i <opt> Send the contents of a file. -p <opt> List of proxies to use. -s Connect with SSL. -w <opt> Specify connect timeout.As you can see, connect has many options to choose from. One very cool one is the -c option which allows you to, for example, route through a Meterpreter session. I show this below. (continue reading...)