• 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] Resolve IP 0.1

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%
Nada del otro mundo , un simple codigo en ruby para conocer la IP de cualquier host.

Code:
>
#!usr/bin/ruby
#Resolve IP 0.1
#Coded By Doddy H

require "resolv"

def head()
 print "-- == Resolve IP 0.1 == --\n"
end

def copyright()
 print "\n(C) Doddy Hackman 2012\n"
 exit(1)
end

def sintax()
 print "\n\n[+] ruby resolve.rb \n\n"
end

head()
if !ARGV[0]
 sintax()
else
 ip =Resolv.getaddress(ARGV[0]) 
 print "\n\n[+] IP : ",ip,"\n\n"    
end
copyright()

#The End ?
 
Status
Not open for further replies.
Back
Top