این اویلین سورس من بود که نوشته بودم پارسال برای یک سایت ( هک ایرانی ) اسم من تو سات SQL_INJECION بود که بعد تبدیل شد به Ruby بود ( اسم اسلی من سجاد )
سورسش رو ببنید همه چیز دستون میاد برنامه برای اسکن پورت یه سایت ( سرور )
رو من هم میتونید حساب کنید روی روبی 1 ساله که دارم باهاش حال میکنم
# ASHIYANE DIGITAL SECURITY TEAM 2OO9
# Writen By SEYYED SAJJAD SQL_Injection
# PortScanner v1.0
require 'ping'
cport=0
puts ""
puts ""
puts ""
puts "-----------------------IN THE NAME OF GOD-----------------"
puts "----------------------------------------------------------"
puts "-----------------ASHIYANE DEGITAL SECURITY TEAM-----------"
puts "--------------------------SQL_Injection-------------------"
puts "----------------------------------------------------------"
puts "--------------------SEYYED SAJJAD (INDIA 2009-------------"
puts "----------------------------------------------------------"
puts "------------------------WWW.ASHIYANE.ORG------------------"
puts "----------------------------------------------------------"
puts "----------------------------------------------------------"
puts "site baraye scan (az meghdarhaye www, http, etc estefade nashavad ==> mysite.com):\n"
site=gets
puts "shoro e port:"
startp=gets
puts "Akharin port:"
endp=gets
puts "meghdare saniye baraye ferestadan(seconds) ( tosiye mishavad roye 3 bashad:"
timeout=gets
startp=startp.chomp
endp=endp.chomp
site=site.chomp
timeout=timeout.chomp
cport=startp.to_i
puts "--Scanning--\n"
if (startp.to_i >= 0 && endp.to_i <= 65535)
log=File.new("portlog.txt", "w")
log.puts "--scan site: #{site} dar porte "+"#{startp}"+"-#{endp} ba zamane "+"#{timeout}"+" saniye(s)--\n"
log.puts "--sharhe scan--\n"
while (cport >= startp.to_i && cport <= endp.to_i)
torf=Ping.pingecho("#{site.chomp}", timeout.to_i, cport.to_i)
if (torf==true)
puts "scan pote shomae : #{cport}....\033[31mTRUE\033[0m"
log.puts "Scanning on port #{cport}....**TRUE**"
else
puts "Scanning on port #{cport}....false"
end
cport += 1
end
#----Notify the user that the process completed----#
puts "--payane port scaner--\n"
puts "--lotfan baraye khoroj enter ro bezanid--\n"
log.close
gets
else
puts "--lotfan yek porte baz ro entekhab konid --\n--va enter ra baraye khoroj bezanid--\n"
gets
end