Advertisement
Doddy

HTTP FingerPrinting 0.2 (Tk)

Jan 1st, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.43 KB | None | 0 0
  1. #!usr/bin/ruby
  2. #HTTP FingerPrinting 0.2
  3. #(C) Doddy Hackman 2015
  4.  
  5. require "tk"
  6. require "net/http"
  7.  
  8. # Functions
  9.  
  10. def httpfinger(page)
  11.     respuesta = ""
  12.     begin
  13.         nave = Net::HTTP.start(page)
  14.         headers = nave.head("/")
  15.         headers.each do |name,value|
  16.             respuesta = respuesta + "[+] "+name+" : "+value+"\n"
  17.         end
  18.         nave.finish
  19.     rescue
  20.         respuesta = "Error"
  21.     end
  22.     return respuesta
  23. end
  24.  
  25. #
  26.  
  27. window = TkRoot.new { title "HTTP FingerPrinting 0.2 Coded By Doddy H" ; background "black" }
  28. window['geometry'] = '300x300-20+10'
  29.  
  30. TkLabel.new(window) do
  31.     background "black"
  32.     foreground "cyan"
  33.     text "    Target : "
  34.     place('relx'=>"0.1",'rely'=>"0.1")
  35. end
  36.  
  37. target = TkEntry.new(window){
  38.     background "black"
  39.     foreground "cyan"
  40.     width 25
  41.     place('relx'=>0.3,'rely'=>0.1)
  42. }
  43.  
  44. TkLabel.new(window) do
  45.     background "black"
  46.     foreground "cyan"
  47.     text "Console"
  48.     place('relx'=>0.4,'rely'=>0.2)
  49. end
  50.  
  51. console =TkText.new(window) do
  52.     background "black"
  53.     foreground "cyan"
  54.     width 30
  55.     height 10
  56.     place('relx'=>0.1,'rely'=>0.3)
  57. end
  58.  
  59. TkButton.new(window) do
  60.     text "Search"
  61.         background "black"
  62.     foreground "cyan"
  63.     width 17
  64.     activebackground "cyan"
  65.     highlightbackground  "cyan"
  66.     command proc{
  67.         target = target.value.to_s
  68.         console.insert("end","[+] Searching ...\n\n")
  69.         console.insert("end",httpfinger(target))
  70.         console.insert("end","\n[+] Finished")
  71.     }
  72.     place('relx'=>0.3,'rely'=>0.9)
  73. end
  74.  
  75. Tk.mainloop
  76.  
  77. #The End ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement