]> git.somenet.org - ctf/pub/attack_dns.git/blob - gen.rb
GITOLITE.txt
[ctf/pub/attack_dns.git] / gen.rb
1 #!/usr/bin/ruby
2
3 OUR_TEAM = 265
4
5 teams = (0..511).to_a
6 teams.delete OUR_TEAM
7
8 teams.each_with_index do |team, i|
9   puts
10   puts "; #{i}.attack ... team #{team}"
11   [2,3,4,5,6,7,8,10].each do |n|
12     dnsname = "#{n}.#{team}"
13     ip = [10, 60 + (team/256), team % 256, n].join(".")
14     puts [dnsname, "IN", "A", ip].join("\t")
15   end
16 end
17