Skip to content

Instantly share code, notes, and snippets.

@melito
Created December 30, 2008 05:32
Show Gist options
  • Save melito/41523 to your computer and use it in GitHub Desktop.
Save melito/41523 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby -wKU
require "socket"
# This prints a list of all the IPs associated with the domains in the following array
spam = %w{
ANIMAL-CROSSING-CHEATS.COM
aladdin-cheats.com
all-crysis-cheats.com
all-diablo-cheats.com
all-gears-of-war-cheats.com
all-grand-theft-auto-cheats.com
all-guitar-hero-cheats.com
all-halo-3-cheats.com
all-madden-cheats.com
all-resident-evil-cheats.com
all-splinter-cell-cheats.com
all-tomb-raider-cheats.com
army-of-two-cheats.com
baldurs-gate-cheats.com
bandicoot-cheats.com
bioshock-cheats.com
brain-age-cheats.com
call-of-duty-cheats.com
cheatcode7.com
civilization-cheats.com
condemned-2-bloodshot-cheats.com
defense-grid-the-awakening.com
donkey-kong-cheats.com
dragon-quest-cheats.com
empire-earth-cheats.com
everquest-cheats.com
fable-cheats.com
final-fantasy-cheats.com
find-love-now.com
find-song-lyrics.com
free-sweepstakes-club.com
frogger-cheats.com
game-cheats-au.com
game-cheats-best.com
game-cheats-boss.com
game-cheats-buzz.com
game-cheats-code.com
game-cheats-engine.com
game-cheats-fab.com
game-cheats-fire.com
game-cheats-flame.com
game-cheats-flash.com
game-cheats-fly.com
game-cheats-forever.com
game-cheats-full.com
game-cheats-fury.com
game-cheats-galleria.com
game-cheats-galore.com
game-cheats-gold.com
game-cheats-great.com
game-cheats-hint.com
game-cheats-hit.com
game-cheats-hot.com
game-cheats-house.com
game-cheats-info.com
game-cheats-king.com
game-cheats-lab.com
game-cheats-leader.com
game-cheats-monster.com
game-cheats-net.com
game-cheats-nice.com
game-cheats-party.com
game-cheats-place.com
game-cheats-planet.com
game-cheats-reward.com
game-cheats-search.com
game-cheats-silver.com
game-cheats-spark.com
game-cheats-super.com
game-cheats-universe.com
game-cheats-warriors.com
game-cheats-wizard.com
game-cheats-zen.com
golden-eye-cheats.com
golivemobile.net
gran-turismo-cheats.com
grand-theft-auto-4-secrets.com
guildwars-cheats.com
halflife-cheats.com
halo-2-cheats.com
halo-game-cheats.com
halo-wars-cheats.com
house-of-the-dead-cheats.com
imprerium-romanum-cheats.com
jak-and-daxter-cheats.com
kingdom-hearts-cheats.com
lineage-master-cheats.com
lord-of-the-rings-cheats.com
lost-empire-immortals-cheats.com
mario-galaxy-cheats.com
mario-kart-cheats.com
mario-party-cheats.com
motorsport-cheats.com
motorstorm-cheats.com
my-metalgear-cheats.com
my-nintendog-cheats.com
my-pokemon-cheats.com
myst-cheats.com
need-for-speed-cheats.com
pac-man-cheats.com
pizza-delivery-service.com
playstation-fever.com
rayman-cheats.com
roller-coaster-tycoon-cheats.com
seven-kingdoms-cheats.com
simcity-cheats.com
sja-mobile.org
sjamobile.biz
sjamobile.info
sjamobile.us
sms4gamecheats.net
sonic-hedgehog-cheats.com
star-craft-2-cheats.com
star-wars-cheats.com
starcraft-cheats.com
sudden-strike-cheats.com
supermario-cheats.com
the-sims-master-cheats.com
ultimate-game-mods.com
ultimate-game-walkthroughs.com
universe-at-war-cheats.com
vip-sweepstakes-club.com
warcraft-cheats.com
wii-console-planet.com
wii-play-cheats.com
wii-sports-cheats.com
world-of-warcraft-topcheats.com
xbox-fever.net
xbox-game-wizard.com
zelda-cheats.com
}
spam.each {|s| p Socket::getaddrinfo(s, '') }
#!/usr/bin/env ruby -wKU
# This executes the 'whois' command on your system and uses a simple regex to
# strip out the name servers. Its not the best, but it shows all these domains are registered to the same host.
spam = %w{
ANIMAL-CROSSING-CHEATS.COM
aladdin-cheats.com
all-crysis-cheats.com
all-diablo-cheats.com
all-gears-of-war-cheats.com
all-grand-theft-auto-cheats.com
all-guitar-hero-cheats.com
all-halo-3-cheats.com
all-madden-cheats.com
all-resident-evil-cheats.com
all-splinter-cell-cheats.com
all-tomb-raider-cheats.com
army-of-two-cheats.com
baldurs-gate-cheats.com
bandicoot-cheats.com
bioshock-cheats.com
brain-age-cheats.com
call-of-duty-cheats.com
cheatcode7.com
civilization-cheats.com
condemned-2-bloodshot-cheats.com
defense-grid-the-awakening.com
donkey-kong-cheats.com
dragon-quest-cheats.com
empire-earth-cheats.com
everquest-cheats.com
fable-cheats.com
final-fantasy-cheats.com
find-love-now.com
find-song-lyrics.com
free-sweepstakes-club.com
frogger-cheats.com
game-cheats-au.com
game-cheats-best.com
game-cheats-boss.com
game-cheats-buzz.com
game-cheats-code.com
game-cheats-engine.com
game-cheats-fab.com
game-cheats-fire.com
game-cheats-flame.com
game-cheats-flash.com
game-cheats-fly.com
game-cheats-forever.com
game-cheats-full.com
game-cheats-fury.com
game-cheats-galleria.com
game-cheats-galore.com
game-cheats-gold.com
game-cheats-great.com
game-cheats-hint.com
game-cheats-hit.com
game-cheats-hot.com
game-cheats-house.com
game-cheats-info.com
game-cheats-king.com
game-cheats-lab.com
game-cheats-leader.com
game-cheats-monster.com
game-cheats-net.com
game-cheats-nice.com
game-cheats-party.com
game-cheats-place.com
game-cheats-planet.com
game-cheats-reward.com
game-cheats-search.com
game-cheats-silver.com
game-cheats-spark.com
game-cheats-super.com
game-cheats-universe.com
game-cheats-warriors.com
game-cheats-wizard.com
game-cheats-zen.com
golden-eye-cheats.com
golivemobile.net
gran-turismo-cheats.com
grand-theft-auto-4-secrets.com
guildwars-cheats.com
halflife-cheats.com
halo-2-cheats.com
halo-game-cheats.com
halo-wars-cheats.com
house-of-the-dead-cheats.com
imprerium-romanum-cheats.com
jak-and-daxter-cheats.com
kingdom-hearts-cheats.com
lineage-master-cheats.com
lord-of-the-rings-cheats.com
lost-empire-immortals-cheats.com
mario-galaxy-cheats.com
mario-kart-cheats.com
mario-party-cheats.com
motorsport-cheats.com
motorstorm-cheats.com
my-metalgear-cheats.com
my-nintendog-cheats.com
my-pokemon-cheats.com
myst-cheats.com
need-for-speed-cheats.com
pac-man-cheats.com
pizza-delivery-service.com
playstation-fever.com
rayman-cheats.com
roller-coaster-tycoon-cheats.com
seven-kingdoms-cheats.com
simcity-cheats.com
sja-mobile.org
sjamobile.biz
sjamobile.info
sjamobile.us
sms4gamecheats.net
sonic-hedgehog-cheats.com
star-craft-2-cheats.com
star-wars-cheats.com
starcraft-cheats.com
sudden-strike-cheats.com
supermario-cheats.com
the-sims-master-cheats.com
ultimate-game-mods.com
ultimate-game-walkthroughs.com
universe-at-war-cheats.com
vip-sweepstakes-club.com
warcraft-cheats.com
wii-console-planet.com
wii-play-cheats.com
wii-sports-cheats.com
world-of-warcraft-topcheats.com
xbox-fever.net
xbox-game-wizard.com
zelda-cheats.com
}
spam.each do |host|
dns_info = `whois #{host}`
dns_info.scan(/Domain servers in listed order:\n(.*)\n(.*)/) {|ns, ns2| p ns; p ns2 }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment