http://webcache.googleusercontent.com/search?q=cache:nkjOOvPZjPcJ:securitysucks.info/exploit-phps-mail-to-get-remote-code-execution/+&cd=1&hl=en&ct=clnk&gl=us
With that said, let’s just dive into it!
This is the code for exploiting the mail() function
Let’s inspect the logs from this. First let’s have a look at what we can see in the browser by only going to the rce.php file
Nothing really scary to see in this log. Now, let’s use the cat
command in the terminal on the same file
See anything a bit more interesting? Let’s try to execute some commands.
I visit http://localhost/rce.php?cmd=ls%20-la and get the following output
Now, let me break it down in case you don’t fully understand the code
'Web_Hacking' 카테고리의 다른 글
[ python ] whitehat 웹해킹 문제 블라인드 인젝션 exploit 코드 (0) | 2015.10.24 |
---|---|
SQLMAP sql injectionor (0) | 2015.03.03 |
파일내에 exec 계열 함수 사용 여부 (내용으로검색) (0) | 2013.10.05 |
[white hacking] 화이트 해킹대회 web PPPPAAAASSSWWW... (150Point) (0) | 2013.09.15 |
[White Hacking] Serial2 web(150 point) Write-up (0) | 2013.09.15 |