0 Members and 1 Guest are viewing this topic.
#!usr/bin/ruby#HTTP FingerPrinting 0.2#(C) Doddy Hackman 2015require "net/http"# Functionsdef httpfinger(page) respuesta = "" begin nave = Net::HTTP.start(page) headers = nave.head("/") headers.each do |name,value| respuesta = respuesta + "[+] "+name+" : "+value+"\n" end nave.finish rescue respuesta = "Error" end return respuestaenddef uso print "\n[+] Sintax : ruby httpfinger.rb <target>\n"enddef head print "\n-- == HTTP FingerPrinting 0.2 == --\n\n"enddef copyright print "\n\n-- == (C) Doddy Hackman 2015 == --\n\n"end#target = ARGV[0]head()if !target uso()else print "\n[+] Searching ...\n\n" print httpfinger(target) print "\n[+] Finished\n"endcopyright()#The End ?
#!usr/bin/ruby#HTTP FingerPrinting 0.2#(C) Doddy Hackman 2015require "tk"require "net/http" # Functions def httpfinger(page) respuesta = "" begin nave = Net::HTTP.start(page) headers = nave.head("/") headers.each do |name,value| respuesta = respuesta + "[+] "+name+" : "+value+"\n" end nave.finish rescue respuesta = "Error" end return respuestaend#window = TkRoot.new { title "HTTP FingerPrinting 0.2 Coded By Doddy H" ; background "black" }window['geometry'] = '300x300-20+10'TkLabel.new(window) do background "black" foreground "cyan" text " Target : " place('relx'=>"0.1",'rely'=>"0.1")endtarget = TkEntry.new(window){ background "black" foreground "cyan" width 25 place('relx'=>0.3,'rely'=>0.1)}TkLabel.new(window) do background "black" foreground "cyan" text "Console" place('relx'=>0.4,'rely'=>0.2)endconsole =TkText.new(window) do background "black" foreground "cyan" width 30 height 10 place('relx'=>0.1,'rely'=>0.3)endTkButton.new(window) do text "Search" background "black" foreground "cyan" width 17 activebackground "cyan" highlightbackground "cyan" command proc{ target = target.value.to_s console.insert("end","[+] Searching ...\n\n") console.insert("end",httpfinger(target)) console.insert("end","\n[+] Finished") } place('relx'=>0.3,'rely'=>0.9)endTk.mainloop#The End ?