Last active
February 11, 2018 16:48
-
-
Save rewanthtammana/9b2456581c279ca868bbb8b9be8918b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
THere is a hidden .git folder | |
You can use Git-tools (https://github.com/internetwache/GitTools) to download the .git folder and extract the files. | |
First dump the files using Dumper and then extract the files of each commit using Extractor. Both these tools are available in the above link. | |
Once you download the files and analyze them you can see an index.php file deleted and you can see its code as we extracted is using Extractor in the above step. | |
URI: 3e90c63922fa145442bb58d18b62af6c21717fee/index.php | |
In the index.php the login validation function is as follows, | |
function checklogin($u,$p) | |
{ | |
if (($u) === "passwordisinrockyou" && crc32($p) == "550274426"){ | |
return true; | |
} | |
} | |
username - passwordisinrockyou | |
password - 5pAVWV (Reverse crc32 - https://github.com/theonlypwner/crc32) | |
Enter these creds by visiting the above URI and you will get the flag. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment