• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Ruby [Ruby] HTTP FingerPrinting 0.2

Status
Not open for further replies.

Doddy

Leech
User
Joined
Apr 1, 2012
Messages
169
Reputation
0
Reaction score
406
Points
63
Credits
0
‎13 Years of Service‎
57%
Un simple script en Ruby para hacer HTTP FingerPrinting.

Version consola :

Code:
>
#!usr/bin/ruby
#HTTP FingerPrinting 0.2
#(C) Doddy Hackman 2015

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

def uso 
print "\n[+] Sintax : ruby httpfinger.rb \n"
end

def  head
print "\n-- == HTTP FingerPrinting 0.2 == --\n\n"
end

def 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"
end

copyright()

#The End ?
Version Tk :

Code:
>
#!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 ?
Una imagen :

httpfinger_ruby.jpg


Eso es todo.

 
Status
Not open for further replies.
Back
Top