Пример #1
0
function formatarResult($html)
{
    plus();
    echo "0xCarregando...\n";
    preg_match_all('#\\b((((ht|f)tps?://)|(www|ftp)\\.)[a-zA-Z0-9\\.\\#\\@\\:%_/\\?\\=\\~\\-]+)#i', $html, $match);
    $contUrl = 1;
    $contTotal = 0;
    $match[1] = array_unique($match[1]);
    for ($i = 0; $i < count($match[1]); $i++) {
        if (isset($match[1][$i]) && !strstr($match[1][$i], "google") && !strstr($match[1][$i], "youtube") && !strstr($match[1][$i], "orkut") && !strstr($match[1][$i], "schema") && !strstr($match[1][$i], "blogger") && !strstr($match[1][$i], "gstatic")) {
            $info = infoserver(gerarErroDB(urldecode($match[1][$i])));
            $url = urldecode($match[1][$i]);
            echo "\r\n----------------------------------------------------------------------------------------------------------------------------\n";
            echo "0x[ {$contUrl} ] - {$_SESSION['config']['vull_style']}{$url}{$_SESSION['config']['exploit']}\r\n{$info}\n";
            echo isset($_SESSION['config']['erroReturn']) && !empty($_SESSION['config']['erroReturn']) ? "{$_SESSION['config']['erroReturn']}\n" : "";
            echo "----------------------------------------------------------------------------------------------------------------------------\r\n";
            $contUrl++;
            $contTotal++;
        }
    }
    plus();
    $resultado = isset($_SESSION['config']['resultado_vull']) ? $_SESSION['config']['resultado_vull'] : exit;
    $resultado = explode("|", $resultado);
    $contRes = count($resultado) - 1;
    $resultadotxt = NULL;
    $nomeArquivo = "{$_SESSION['config']['arquivo']}";
    $resultadotxt = base64_decode("U0NBTk5FUiBJTlVSTEJSIDEuMCAtIFsgYmxvZy5pbnVybC5jb20uYnIgXQ==") . " /DATA:" . date("d/m/Y H:i:s") . " /DORK: {$_SESSION['config']['dork']}  /EXPLOIT: {$_SESSION['config']['exploit']}\r\nTOTAL VULL:{$contRes}\r\n " . implode("\r\n", $resultado) . "\r\n\r\n";
    $resultado = implode("\r\n", $resultado);
    print_r("\r\nTOTAL DE URL's: {$contTotal}\r\nEXPLOIT USADO: {$_SESSION['config']['exploit']}\r\nDORK: {$_SESSION['config']['dork']}\r\nTOTAL DE POSSÍVEIS VULL: {$contRes}\r\nARQUIVO COM RESULTADO:{$nomeArquivo}\r\nLISTA:\r\n {$resultado}\r\n");
    $_SESSION['config']['resultado_vull'] = NULL;
    $abrirtxt = fopen($nomeArquivo, "a");
    if ($abrirtxt == false) {
        die("\r\nNão foi possível criar o arquivo.");
    }
    $resultadotxt = str_replace("", '', $resultadotxt);
    $resultadotxt = str_replace("", '', $resultadotxt);
    fwrite($abrirtxt, $resultadotxt);
    fclose($abrirtxt);
}
Пример #2
0
function formatarResult($html)
{
    preg_match_all('#\\b((((ht|f)tps?://)|(www|ftp)\\.)[a-zA-Z0-9\\.\\#\\@\\:%_/\\?\\=\\~\\-]+)#i', $html, $match);
    $contUrl = 1;
    $contTotal = 0;
    $match[1] = array_unique($match[1]);
    plus();
    for ($i = 0; $i < count($match[1]); $i++) {
        if (isset($match[1][$i]) && !strstr($match[1][$i], "google") && !strstr($match[1][$i], "youtube") && !strstr($match[1][$i], "orkut") && !strstr($match[1][$i], "schema") && !strstr($match[1][$i], "blogger")) {
            $info = infoserver(gerarErroDB(urldecode($match[1][$i])));
            $url = gerarErroDB(urldecode($match[1][$i]));
            $url = "<a target='_black' href={$url} {$_SESSION['vull_style']}>{$url}</a>";
            echo "<p class='bordas'>\n                      <info>[<cont>{$contUrl}</cont>] - </info>  <url>{$url}</url> </br>{$info}\n\t\t      </p>";
            $contUrl++;
            $contTotal++;
        }
    }
    plus();
    $resultado = isset($_SESSION['resultado_vull']) ? $_SESSION['resultado_vull'] : exit;
    $resultado = explode("|", $resultado);
    $contRes = count($resultado) - 1;
    $resultadotxt = NULL;
    $nomeArquivo = "{$_POST['arquivo']}";
    $resultadotxt = base64_decode("U0NBTk5FUiBJTlVSTEJSIDEuMCAtIFsgYmxvZy5pbnVybC5jb20uYnIgXQ==") . " /DATA:" . date("d/m/Y H:i:s") . " /DORK: {$_POST['dork']}  /EXPLOIT: {$_POST['exploit']}\r\nTOTAL VULL:{$contRes}\r\n " . implode("\r\n", $resultado) . "\r\n\r\n";
    $resultado = implode("<br>", $resultado);
    print_r("<div class='resultado'>\n                 <p>TOTAL DE URL's: <info>{$contTotal}</info></p>\n                 <p>EXPLOIT USADO: <info>{$_POST['exploit']}</info></p>    \n                 <p>DORK: <info>{$_POST['dork']}</info></p>\n\t\t <p>TOTAL DE POSSÍVEIS VULL: <info>{$contRes}</info></p>\n\t\t <p>ARQUIVO COM RESULTADO: <info><a href='{$nomeArquivo}' target='_black'>{$nomeArquivo}</a></info></p>\t\n\t\t <p>LISTA: </p>\n\t\t <p>{$resultado}<p>\n\t\t </div>");
    $_SESSION['resultado_vull'] = NULL;
    $abrirtxt = fopen($nomeArquivo, "a");
    if ($abrirtxt == false) {
        die('Não foi possível criar o arquivo.');
    }
    fwrite($abrirtxt, $resultadotxt);
    fclose($abrirtxt);
}