Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!usr/bin/ruby
- #HTTP FingerPrinting 0.2
- #(C) Doddy Hackman 2015
- require "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 respuesta
- end
- #
- 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")
- end
- target = 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)
- end
- console =TkText.new(window) do
- background "black"
- foreground "cyan"
- width 30
- height 10
- place('relx'=>0.1,'rely'=>0.3)
- end
- TkButton.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)
- end
- Tk.mainloop
- #The End ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement