Last active
May 13, 2018 16:08
-
-
Save Cvar1984/9a468ede73b1ac6ea1654da35ea1e629 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
#!/usr/bin/env php | |
<?php | |
@include(__DIR__ . '/vendor/autoload.php'); | |
if(strtolower(substr(PHP_OS, 0, 3)) == 'win') { | |
$R = ""; | |
$RR = ""; | |
$G = ""; | |
$GG = ""; | |
$B = ""; | |
$BB = ""; | |
$Y = ""; | |
$YY = ""; | |
$X = ""; | |
$ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0'; | |
} else { | |
$R = "\e[91m"; | |
$RR = "\e[91;7m"; | |
$G = "\e[92m"; | |
$GG = "\e[92;7m"; | |
$B = "\e[36m"; | |
$BB = "\e[36;7m"; | |
$Y = "\e[93m"; | |
$YY = "\e[93;7m"; | |
$X = "\e[0m"; | |
$ua = 'Mozilla/5.0 (Linux; Android 5.1.1; Andromax A16C3H Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36'; | |
system('clear'); | |
} | |
// function | |
function login($url,$data) { | |
global $ua; | |
$ch=curl_init(); | |
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); | |
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt'); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_USERAGENT, $ua); | |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); | |
ob_start(); | |
return curl_exec($ch); | |
ob_end_clean(); | |
curl_close($ch); | |
unset($ch); | |
} | |
function grab_page($url) { | |
global $ua; | |
$ch=curl_init(); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_USERAGENT, $ua); | |
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt'); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); | |
ob_start(); | |
return curl_exec($ch); | |
ob_end_clean(); | |
curl_close ($ch); | |
} | |
function post_data($url,$data) { | |
global $ua; | |
$ch=curl_init(); | |
$headers=array("Expect:"); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_HEADER, 1); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); | |
curl_setopt($ch, CURLOPT_USERAGENT, $ua); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data); | |
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt'); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); | |
ob_start(); | |
return curl_exec($ch); | |
ob_end_clean(); | |
curl_close($ch); | |
unset($ch); | |
} | |
// end of function | |
echo $Y. | |
" _____ _ | |
| ____|_ ____ _ _ __ ___ _ __ | | ___ | |
| _| \ \/ / _` | '_ ` _ \| '_ \| |/ _ \ | |
| |___ > < (_| | | | | | | |_) | | __/ | |
|_____/_/\_\__,_|_| |_| |_| .__/|_|\___| | |
|_| "; | |
echo $R."\n++++++++++++++++++++++++++++++++++++++"; | |
echo $B."\nAuthor : Cvar1984 ".$R.'+'; | |
echo $B."\nGithub : https://github.com/Cvar1984".$R.'+'; | |
echo $B."\nTeam : BlackHole Security ".$R.'+'; | |
echo $B."\nVersion : 0.0 ".$R.'+'; | |
echo $B."\nDate : 00-00-0000 ".$R.'+'; | |
echo $R."\n++++++++++++++++++++++++++++++++++++++".$G.$X."\n\n"; | |
// code | |
die($Y.'=========================== Cvar1984 ))=====(@)>'.$X."\n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment