Created
June 16, 2013 05:35
-
-
Save postmodern/5790888 to your computer and use it in GitHub Desktop.
Boilerplate code for the linked challenge, Defcon CTF 2013. Enjoy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'ronin/support' | |
require 'ronin/asm' | |
include Ronin::Network::TCP | |
payload = Ronin::ASM::Shellcode.new do | |
mov 0xaaaaaaaa, eax | |
ret | |
end | |
puts payload.to_asm | |
payload.assemble.hexdump | |
tcp_session('linked2.shallweplayaga.me',22222) do |socket| | |
puts socket.readline | |
socket.write payload.assemble | |
socket.read.hexdump | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment