View difference between Paste ID: KkHhsW35 and 6jDfJsKW
SHOW: | | - or go back to the newest paste.
1
#!/bin/bash
2
#-----------------------------------------------\\ 
3
version="0x01"
4
script_name="DNS ToolboX Discover  "
5
userid=$(id -u)
6
clear
7
8
9
#-----------------------------------------------\\ 
10
echo "Testando Permissão..... " 
11
# Permissão de Usuario [Root] 
12
a=`whoami`
13
b="root"
14
if [ "$a" = "$b" ]
15
then
16
echo "uid=0(root) gid=0(root) groups=0(root) - Happy Hacking ;D"
17
else
18
echo "--Ops!!Script em MODO USUARIO, Execute como "root" cabeção! ;)"
19
exit 1
20
fi
21
sleep 2
22
#-----------------------------------------------\\ 
23
24
#---------// Cabeçalho. 
25
echo '
26
[+]===================================================================[+]
27
Information Gathering [DNS ToolboX ] Version:'$version'
28
Autor: Kembolle Amilkar A.K.A. O.liverkall | kembolle.com.br 
29
language:Portuguese	|      Data: 06 / 10 / 2011 
30
        __________________
31
       /\  ______________ \
32
      /::\ \ZZZZZZZZZZZZ/\ \  
33
     /:/\.\ \        /:/\:\ \   
34
    /:/Z/\:\ \      /:/Z/\:\ \ 
35
   /:/Z/__\:\ \____/:/Z/  \:\ \ 
36
  /:/Z/____\:\ \___\/Z/    \:\ \  
37
  \:\ \ZZZZZ\:\ \ZZ/\ \     \:\ \  
38
   \:\ \     \:\ \ \:\ \     \:\ \ 
39
    \:\ \     \:\ \_\;\_\_____\;\ \
40
     \:\ \     \:\_________________\
41
      \:\ \    /:/ZZZZZZZZZZZZZZZZZ/
42
       \:\ \  /:/Z/    \:\ \  /:/Z/
43
        \:\ \/:/Z/      \:\ \/:/Z/
44
         \:\/:/Z/________\;\/:/Z/
45
          \::/Z/________x86_\/Z/
46
           \/ZZZZZZZZZZZZZZZZZ/
47
			         
48
Dependências: 
49
#/ Firce - http://ha.ckers.org/fierce/ .
50
#/ DNSTracer - http://www.mavetju.org/unix/dnstracer.php .
51
-------------------------------------------------------------------------------\\\
52
[0x01] - Whois  | Retorna informações sobre o domínio do site em questão.
53
[0x02] - Lookup | Realizar traduções directas ou inversas.
54
[0x03] - Dig?   | permite fazer resoluções directas e indireta de endereços
55
[0x04] - Firce  | Netdiscover SubDomains . 
56
[0x05] - Dns Tracer | Realiza Tracer DNS em Questão '" 
57
58
[+]===================================================================[+] 
59
         Usage: Adicione IP/Dominio alvo Desejado! | Ex: exemplo.com.br   
60
[+]===================================================================[+] "''
61
echo -n "Root@Blackbox:~# " ; read dominio
62
                
63
64
#---------//  
65
 sleep 3
66
 echo "[+]========================================[+]"
67
 echo " # [0x01]- Whois Location " 
68
 whois $dominio >> /root/Desktop/RelatorioPentest.txt 
69
echo "[+]========================================[+]" >> /root/Desktop/RelatorioPentest.txt 
70
sleep 3
71
72
73
#---------//  
74
 sleep 3
75
 echo "[+]========================================[+]"
76
 echo " # [0x02]- Nslookup Location " 
77
nslookup $dominio >> /root/Desktop/RelatorioPentest.txt 
78
echo "[+]========================================[+]" >> /root/Desktop/RelatorioPentest.txt 
79
 sleep 3
80
81
#---------//  
82
 sleep 3
83
 echo "[+]========================================[+]"
84
 echo " # [0x03]- Dig? " $dominio "any"
85
 dig $dominio >> /root/Desktop/RelatorioPentest.txt 
86
echo "[+]========================================[+]" >> /root/Desktop/RelatorioPentest.txt 
87
sleep 3
88
89
#---------//  
90
sleep 3
91
echo "[+]========================================[+]"
92
echo " # [0x03]- Dig? " $dominio "any"
93
dig $dominio A >> /root/Desktop/RelatorioPentest.txt 
94
echo "[+]========================================[+]" >> /root/Desktop/RelatorioPentest.txt 
95
sleep 3
96
97
#---------//  
98
sleep 3
99
echo "[+]========================================[+]"
100
echo " # [0x03]- Dig? " $dominio "any"
101
dig $dominio MX >> /root/Desktop/RelatorioPentest.txt 
102
echo "[+]========================================[+]" >> /root/Desktop/RelatorioPentest.txt 
103
sleep 3
104
105
106
107
#---------//  
108
sleep 3
109
echo "[+]========================================[+]"
110
echo " # [0x04]- Subdomain Hosting Fierce  " 
111
cd /pentest/enumeration/dns/fierce
112
perl fierce.pl -dns $dominio >> /root/Desktop/RelatorioPentest.txt 
113
echo "[+]========================================[+]" >> /root/Desktop/RelatorioPentest.txt 
114
sleep 3
115
116
117
#---------// 
118
sleep 3
119
echo "[+]========================================[+]"
120
echo " # [0x05]- DNS Location " 
121
dnstracer -vo  $dominio >> /root/Desktop/RelatorioPentest.txt 
122
echo "[+]========================================[+]" >> /root/Desktop/RelatorioPentest.txt 
123
sleep 3