nmap output cleaner
Posted by root Fri, 20 Jul 2007 03:21:00 GMT
arg = ARGV.join(" ")
arg.empty? and exit
puts %x[nmap #{arg} 2>/dev/null].scan(/^\d+.+/)Posted by root Fri, 20 Jul 2007 03:21:00 GMT
arg = ARGV.join(" ")
arg.empty? and exit
puts %x[nmap #{arg} 2>/dev/null].scan(/^\d+.+/)Posted by root Fri, 20 Jul 2007 02:59:00 GMT
irb console$.=0; (1..666).to_a.inject(1){|res, i| res += i}.to_s.split(//).collect{|i| $. += i.to_i}; STDOUT.puts$.