Sha256: 6c97860ab5e1d23305ce6dd84b14494fa5b9bc8be652df65c09cb6d5dbf4f899
Contents?: true
Size: 500 Bytes
Versions: 2
Compression:
Stored size: 500 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'ronin/post_ex/sessions/shell_session' require 'ronin/post_ex/system' require 'socket' # run `nc -l -p 1337 -e /bin/sh` in another terminal socket = begin TCPSocket.new('localhost',1337) rescue warn "Please run 'nc -l -p 1337 -e /bin/sh' in another terminal" exit(-1) end session = Ronin::PostEx::Sessions::ShellSession.new(socket) system = Ronin::PostEx::System.new(session) system.interact
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ronin-post_ex-0.1.0 | examples/bind_shell.rb |
ronin-post_ex-0.1.0.beta1 | examples/bind_shell.rb |