Posted by root
Sun, 28 Sep 2008 19:09:00 GMT
host_port = ARGV[0]
host = host_port.split(':').first
port = host_port.split(':').last
puts %x[nmap -p #{port} #{host}]
Or just:
host, port = ARGV[0].split(':')
puts %x[nmap -p #{port} #{host}]
Usage (cli and given that the script is named scan_proxy):
./scan_proxy 202.105.182.87:808
Posted in Ruby, scripts | Tags scanner | no comments | no trackbacks
Posted by root
Wed, 24 Sep 2008 17:49:00 GMT
All of us (the people that hate vista and apple styled aliased fonts) have seen the ugly fonts in some KDE apps (Firefox for example). But this is not the case with XFCE where evreything works fine.
So here is a fix for KDE (just run the following command):
xfce-mcs-manager
Tags managers, windows | no comments | no trackbacks
Posted by root
Sat, 20 Sep 2008 14:39:00 GMT
class Hash
def search(arg)
self.select { |k,v| k =~ /#{arg}/ or v =~ /#{arg}/ }
end
end
search = ARGV[0]
search =~ /^[0-9]+/ and search = search.to_i
phones = {
"me" => "359880101020406",
"Hitler" => "+49 666",
"Van Gog" => "+31",
"devil" => "666",
"God" => "1",
}
phones.search(search).each do |person|
print "person:#{person.first}\tnumber:#{person.last}\n"
end
Posted in Ruby, scripts | no comments | no trackbacks
Posted by root
Mon, 15 Sep 2008 16:58:00 GMT
Technology, which is prohibited by the Geneva Convention. Unfortunately, there are still countries in the world where such technology is used to torture animals and developers.
According to the FMI study, 23 monkeys may make random chatter on the keypad to write the language compiler for a maximum of 292 hours.
the original text (in Bulgarian)
Posted in news | Tags php | no comments | no trackbacks