ronin-rb / ronin

Ronin is a Free and Open Source Ruby Toolkit for Security Research and Development. Ronin also allows for the rapid development and distribution of code, exploits, payloads, etc, via 3rd-party git repositories.
https://ronin-rb.dev
GNU General Public License v3.0
690 stars 50 forks source link

`--source` and `--source-port` options do not do anything in the `ronin netcat` command #119

Open postmodern opened 2 years ago

postmodern commented 2 years ago

Need to figure out how to get Async::IO::Endpoint.tcp to bind to the source host/port before connecting to the remote host/port.

inkyvoxel commented 1 year ago

Steps to recreate:

  1. Set up a listener: ronin netcat -v --tcp -l 9001
  2. Open a new terminal, connect with: ronin netcat -v --tcp --source 127.0.0.1 --source-port 9001
  3. Error: ronin netcat: host argument required

Replacing step 2 with ronin netcat -v --tcp 127.0.0.1 9001 works (using HOST PORT params instead of --source and --source-port options).

postmodern commented 1 year ago

Reported upstream to try to figure out how to specify the bind-port and bind-address of a remote connection. https://github.com/socketry/async-io/issues/59