function __subProcess($params, $target) { foreach ($params['exploit_model'] as $camp => $value) { $params['exploit'] = $value; $params['exploit_model'] = $camp; $params['host'] = $target; $rest = __request($params); __plus(); if ($rest['dados_01']['http_code'] != 0) { break; } } __plus(); $_SESSION["cont_ip"]++; if ($rest['dados_01']['http_code'] == 200) { //FOUND FILE $style_var = "{$_SESSION["c01"]}[ + ]__[{$_SESSION["c00"]}" . date("h:m:s") . "{$_SESSION["c05"]}"; echo "{$_SESSION["c01"]}/ {$_SESSION["cont_ip"]}{$_SESSION["c00"]}\n"; $output_view = "{$style_var} [ ! ]__[INFO][COD]: {$rest['dados_01']['http_code']}\n"; $output_view .= "{$style_var} [ ! ]__[INFO][IP/FILE]: {$params['host']}{$params['exploit']}\n"; $output_view .= "{$style_var} [ ! ]__[INFO][MODEL]: {$params['exploit_model']}\n"; $output_view .= "{$style_var} [ ! ]__[INFO][DETAILS_1]: {$rest['dados_02']}\n{$_SESSION["c00"]}"; $info_ip = __infoIP($rest['dados_01']['primary_ip']); $output_view .= "{$style_var} [ ! ]__[INFO][DETAILS_2]: {$info_ip}\n{$_SESSION["c00"]}"; echo $output_view . __getUserPass($rest['corpo']) . $_SESSION["c00"]; $output = "COD: {$rest['dados_01']['http_code']} / IP-FILE: {$params['host']}{$params['exploit']}\nMODEL: {$params['exploit_model']}\nDETAILS_1: {$rest['dados_02']}\nDETAILS_2:{$info_ip}\n" . __getUserPass($rest['corpo']) . "{$params['line']}"; file_put_contents($params['file_output'], "{$output}\n{$params['line']}\n", FILE_APPEND); __plus(); } else { //FILE NOT FOUND echo "{$_SESSION["c01"]}/ {$_SESSION["cont_ip"]}{$_SESSION["c00"]}\n"; echo "{$_SESSION["c01"]}[ + ]__[{$_SESSION["c00"]}" . date("h:m:s") . "{$_SESSION["c13"]} [X]__[NOT VULN]: {$params['host']}\n{$_SESSION["c00"]}"; } echo $_SESSION["c07"] . $params['line'] . $_SESSION["c00"]; }
function __infoServer($url_, $postDados = NULL) { __plus(); $_SESSION['config']['verifica_info'] = 1; $resultado = __request_info($url_, $_SESSION["config"]["proxy"], $postDados); __plus(); if (isset($resultado['corpo'])) { if (!is_null($_SESSION['config']['extrai-email'])) { __plus(); return __extractEmail($resultado['corpo'], $url_); } if (!is_null($_SESSION['config']['extrai-url'])) { __plus(); return __extractURLs($resultado['corpo'], $url_); } if (not_isnull_empty($_SESSION['config']['regexp-filter'])) { __plus(); return __extractRegCustom($resultado['corpo'], $url_); } if (not_isnull_empty($_SESSION['config']['target']) && $_SESSION['config']['tipoerro'] == 5) { __plus(); return __checkURLs($resultado, $url_); } $ifcode = not_isnull_empty($_SESSION['config']['ifcode']) && strstr($resultado['server']['http_code'], $_SESSION['config']['ifcode']) ? "CODE_HTTP_FOUND: {$_SESSION['config']['ifcode']} / " : NULL; $ifredirect = not_isnull_empty($_SESSION['config']['ifredirect']) && strstr($resultado['server']['redirect_url'], $_SESSION['config']['ifredirect']) ? 'VALUE URL REDIRECT FOUND' : NULL; $_SESSION['config']['erroReturn'] = $ifredirect . $ifcode . __checkError($resultado['corpo']); __plus(); $_SESSION['config']['curl_getinfo'] = $resultado['server']; $_SESSION['config']['error_conection'] = not_isnull_empty($resultado['error']) ? $resultado['error'] : NULL; $_SESSION['config']['server_ip'] = !is_null($resultado['server']['primary_ip']) ? $resultado['server']['primary_ip'] : NULL; $_SESSION['config']['vull_style'] = not_isnull_empty($_SESSION['config']['erroReturn']) ? "{$_SESSION["c4"]}( POTENTIALLY VULNERABLE ){$_SESSION["c0"]} [1m [32m" . __cli_beep() : NULL; $_SESSION['config']['resultado_valores'] .= not_isnull_empty($_SESSION['config']['erroReturn']) ? "{$url_}\n" : NULL; __plus(); $url_ = $_SESSION['config']['alexa-rank'] ? ", RANK ALEXA: " . __positionAlexa($url_) : NULL; __plus(); $_SESSION['config']['info_ip'] = __infoIP($resultado['server']['primary_ip'], 1); __plus(); } else { return FALSE; } __plus(); return "{$resultado['info']}, IP:{$resultado['server']['primary_ip']}:{$resultado['server']['primary_port']} {$url_}"; }