Skip to content

Instantly share code, notes, and snippets.

@postmodern
Last active December 16, 2015 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save postmodern/5424680 to your computer and use it in GitHub Desktop.
Save postmodern/5424680 to your computer and use it in GitHub Desktop.
PlaidCTF misc 100 fuzzer
#!/usr/bin/env ruby
require 'ronin/network/tcp'
require 'ronin/ui/output/helpers'
require 'combinatorics'
include Ronin::Network::TCP,
Ronin::UI::Output::Helpers
hosts = %w[
50.17.171.79
54.224.183.192
184.73.107.54
54.234.231.14
54.224.176.148
]
[(0x40..0xff), 0x00, 0x00, 0x00, 0x00, 0x00, 0x00].comprehension do |bytes|
opcodes = bytes.map(&:chr).join
print_info "Trying #{opcodes.dump} ..."
begin
tcp_session(hosts.sample,9998) do |socket|
socket.recv(1024)
socket.send(opcodes,0)
socket.close_write
until (line = socket.recv(1024)).empty?
print line
end
end
rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT
retry
end
sleep 1
end
@postmodern
Copy link
Author

Added mirror IP addresses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment