Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #gather ip for all servers
- s=""
- Thread.start{data=IO.popen("tcpick -i wlan0 -yx 'port 6112'")
- while line=data.gets
- for x in line.split
- if x.length==4
- s<<x
- end
- end
- end}
- #create a list
- ip_list=""
- Thread.start{while
- for x in s.scan(/400000.............../)
- ip_list<<x[13..14].to_i(16).to_s+"."+x[15..16].to_i(16).to_s+"."+x[17..18].to_i(16).to_s+"."+x[19..20].to_i(16).to_s+" "+x[9..12].to_i(16).to_s+"\n"
- end
- #puts ip_list.to_a.uniq
- #puts "\n"
- sleep 1
- end}
- #now connect, hello world
- #10,000*10*List.to_a.length this loop should run for A LONG TIME
- sleep 5
- for i in 1..10000
- for x in 1..10
- for i in ip_list.to_a.uniq
- puts i
- if i==nil
- puts "i = nil"
- else
- Thread.start{
- system("proxychains ruby client_wc3.rb #{i.chomp} #{ARGV}")
- }
- end
- end
- end
- sleep 60
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement