This file contains 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
Ruby 1.9.3-p392 | |
=========================================================== | |
All memory used before 1st run - 7 MB | |
Memory consumed by 1st run of eat_up_memory - 445 MB | |
All memory used before 2nd run - 452 MB | |
Memory consumed by 2nd run of eat_up_memory - 20 MB | |
All memory used before 3rd run - 472 MB | |
Memory consumed by 3rd run of eat_up_memory - 5 MB | |
Memory used before explicit GC.start - 478 MB | |
Memory used after explicit GC.start - 284 MB |
This file contains 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 | |
# | |
# Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0156) | |
# | |
# ## Advisory | |
# | |
# https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion | |
# | |
# ## Caveats | |
# |
This file contains 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 'rubygems' | |
gempaths = Gem::default_path | |
puts | |
puts "Scanning paths in Gem::default_path for RubyGems with native extensions ..." | |
puts |