| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- Linux
- 취약점 진단
- 안드로이드 모의해킹
- Bandit
- 쿠키변조
- bandit #밴딧 #웹해킹 #해킹 #화이트해커 #공부 #스터디 #IT #hacking #linux #openssl #nmap
- msfconsole #heartbleed #247ctf #misc #webhacking
- pentest
- androGoat
- 밴딧
- 모의해킹
- androidhacking
- error-based
- sql injection
- time-based
- 리눅스
Archives
- Today
- Total
d0r1
webhacking 14 본문
<html>
<head>
<title>Challenge 14</title>
<style type="text/css">
body { background:black; color:white; font-size:10pt; }
</style>
</head>
<body>
<br><br>
<form name=pw onsubmit=ck()><input type=text name=input_pwd><input type=button value="check" onclick=ck()></form>
<script>
function ck(){
var ul=document.URL;
ul=ul.indexOf(".kr");
ul=ul*30;
if(ul==pw.input_pwd.value) { location.href="?"+ul*pw.input_pwd.value; }
else { alert("Wrong"); }
return false;
}
</script>
</body>
</html>
>exploit code
url = 'https://webhacking.kr/challenge/js-1/'
ul = url.index('.kr') * 30
path = ul * ul
print(ul)
print(f"[+] real path : {url}?{path}")s
'webhacking' 카테고리의 다른 글
| [webhacking.kr] old-36 (0) | 2023.08.29 |
|---|---|
| [webhacking.kr] old-10 (0) | 2023.08.29 |
| webhacking 34 (0) | 2023.07.19 |
| webhacking 32 (0) | 2023.07.19 |
| [webhacking] old-18 (0) | 2023.05.23 |
