-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbypass-redirect.php
57 lines (51 loc) · 1.65 KB
/
bypass-redirect.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
// vai falar q kibei?
function bypassredirect($site,$lista,$tipo) {
foreach ($lista as $caminho) {
$pagina = $caminho.".".$tipo;
$link = str_replace(array("//","http:/","https:/"),array("/","http://","https://"),$site."/".$pagina);
$cabecalho = get_headers($link);
if (strstr($cabecalho[0],"302")) {
echo "[+] ".$link."\n";
}
}
}
if (count($argv) == 1) {
echo "Bypass Redirect file finder\nBy Keni Hacking\n\nUso: php ".$_SERVER['SCRIPT_NAME']." site tipo\n\nTipos: php,asp,aspx,jsf,html\n";
} else {
if (count($argv) == 3) {
echo "Bypass Redirect file finder\nBy Keni Hacking\n\n";
$filename = $argv[0];
$site = $argv[1];
$tipo = $argv[2];
$arquivos = array("index","login","dashboard","painel","principal","panel","admin","home","main","noticias","dash","start","usuario","user","users","news","events","licitacoes","config","logado","online","local","adm");
switch ($tipo) {
case 'php':
echo "Site: ".$site."\nTipo: php\n";
bypassredirect($site,$arquivos,"php");
break;
case 'asp':
echo "Site: ".$site."\nTipo: asp\n";
bypassredirect($site,$arquivos,"asp");
break;
case 'aspx':
echo "Site: ".$site."\nTipo: aspx\n";
bypassredirect($site,$arquivos,"aspx");
break;
case 'jsf':
echo "Site: ".$site."\nTipo: jsf\n";
bypassredirect($site,$arquivos,"jsf");
break;
case 'html':
echo "Site: ".$site."\nTipo: html\n";
bypassredirect($site,$arquivos,"html");
break;
default:
echo "Tipo desconhecido.";
break;
}
} else {
echo "Bypass Redirect file finder\nBy Keni Hacking\n\nUso: php ".$_SERVER['SCRIPT_NAME']." site tipo\n\nTipos: php,asp,aspx,jsf,html\n";
}
}
?>