-
-
Save xstpl/cf6f221a59c15933dd95 to your computer and use it in GitHub Desktop.
PlaidCTF misc 100 fuzzer
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/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment