Tornando seu Ubuntu uma distro para testes de intrusão
Publicado por Roberto Soares (3spreto) (última atualização em 15/09/2014)
[ Hits: 5.153 ]
Homepage: http://codesec.blogspot.com
Este script irá instalar uma gama enorme de ferramentas que auxiliam no trabalho de um penetration tester. É recomendável ler cada opção antes de confirmar sua instalação.
Uso:
$ chmod +x tools_ubuntu
$ sudo ./tools_ubuntu
P.S.: qualquer erro, dúvida ou questão, por favor: robertoespreto[at]gmail.com
Abs.
#!/bin/bash clear echo "" echo [+] "Deseja instalar os componentes essenciais do sitema e utilitários (recomendado)? y/n" ; echo '.: build-essential, linux-headers, sysvconfig, bum, tofrodos, xinetd, unrar, p7zip-full, fcrackzip, ipcalc, sharutils, xclip, ldap-utils, cabextract, g++, ssh :.' read digx if [ $digx = "y" ] then apt-get -y install build-essential apt-get -y install linux-headers-`uname -r` apt-get -y install sysvconfig apt-get -y install bum apt-get -y install tofrodos apt-get -y install xinetd apt-get -y install unrar apt-get -y install p7zip-full apt-get -y install fcrackzip apt-get -y install ipcalc apt-get -y install sharutils apt-get -y install xclip apt-get -y install ldap-utils apt-get -y install cabextract apt-get -y install g++ apt-get -y install ssh fi clear echo "" echo [+] "Deseja instalar os servicos de rede? y/n" ; echo '.: samba, nis, nfs, smbfs :.' read digx if [ $digx = "y" ] then apt-get -y install samba apt-get -y install nis apt-get -y install nfs apt-get -y install smbfs fi clear echo "" echo [+] "Deseja instalar os servicos de monitoracao? y/n" ; echo '.: ntop, sysstat, procinfo :.' read digx if [ $digx = "y" ] then apt-get -y install ntop apt-get -y install sysstat apt-get -y install procinfo fi clear echo "" echo [+] "Deseja instalar os gerenciadores de pacotes? y/n" ; echo '.: apt-file, apt-utils, apt-listchanges, dconf :.' read digx if [ $digx = "y" ] then #apt-get -y install apt-build #apt-get -y install apt-dpkg-ref #apt-get -y install apt-listbugs apt-get -y install apt-file #apt-get -y install apt-howto apt-get -y install apt-utils apt-get -y install apt-listchanges apt-get -y install dconf fi clear echo "" echo [+] "Deseja instalar os emuladores de terminal? y/n" ; echo '.: tn5250, screen :.' read digx if [ $digx = "y" ] then apt-get -y install tn5250 apt-get -y install screen fi clear echo "" echo [+] "Deseja instalar as ferramentas de sistemas de arquivos? y/n" ; echo '.: sshfs, ntfs-3g, ntfs-config, ntfsprogs, mkisofs :.' read digx if [ $digx = "y" ] then apt-get -y install sshfs apt-get -y install ntfs-3g apt-get -y install ntfs-config apt-get -y install ntfsprogs apt-get -y install mkisofs fi clear echo "" echo [+] "Deseja instalar algumas configuracoes do Gnome? y/n" ; echo '.: gconf, gnomebaker, nautilus-open-terminal :.' read digx if [ $digx = "y" ] then apt-get -y install gconf apt-get -y install gnomebaker apt-get -y install nautilus-open-terminal fi clear echo "" echo [+] "Deseja instalar o ISAKPMD e VPNc? y/n" ; echo '.: vpnc :.' read digx if [ $digx = "y" ] then apt-get -y install isakmpd apt-get -y install vpnc fi clear echo "" echo [+] "Deseja instalar os pacotes de Multimidia? y/n" ; echo '.: amarok, xmms, xmms-skins, xmms-mp4, mpg123, totem-xine, ksnapshot, istanbul, recordmydesktop, gtk-recordmydesktop, xvidcap :.' read digx if [ $digx = "y" ] then apt-get -y install amarok apt-get -y install xmms apt-get -y install xmms-skins apt-get -y install xmms-mp4 apt-get -y install mpg123 apt-get -y install totem-xine apt-get -y install ksnapshot apt-get -y install istanbul apt-get -y install recordmydesktop apt-get -y install gtk-recordmydesktop apt-get -y install xvidcap fi clear echo "" echo [+] "Deseja instalar o Netcat e ferramentas de Tunnelling? y/n" ; echo '.: netcat, sbd, cryptcat, socat, vtun, stunnel :.' read digx if [ $digx = "y" ] then apt-get -y install netcat apt-get -y install sbd apt-get -y install cryptcat apt-get -y install socat apt-get -y install vtun apt-get -y install stunnel fi clear echo "" echo [+] "Deseja instalar Scanners? y/n" ; echo '.: nmap, fping, hping2, hping3, scapy, snmp, traceroute, ike-scan, nbtscan, sslscan :.' read digx if [ $digx = "y" ] then apt-get -y install nmap apt-get -y install fping apt-get -y install hping2 apt-get -y install hping3 apt-get -y install scapy apt-get -y install snmp apt-get -y install traceroute apt-get -y install tcptraceroute apt-get -y install ike-scan apt-get -y install nbtscan apt-get -y install sslscan fi clear echo "" echo [+] "Deseja instalar Scanners Passivos? y/n" ; echo '.: p0f, pads :.' read digx if [ $digx = "y" ] then apt-get -y install p0f apt-get -y install pads fi clear echo "" echo [+] "Deseja instalar ferramentas de sniffing? y/n" ; echo '.: wireshark, ettercap, ettercap-gtk, tcpdump, tcpflow, ssldump, nemesis, dsniff, etherape :.' read digx if [ $digx = "y" ] then apt-get -y install wireshark apt-get -y install ettercap apt-get -y install ettercap-gtk apt-get -y install tcpdump apt-get -y install tcpflow apt-get -y install ssldump apt-get -y install nemesis apt-get -y install dsniff apt-get -y install etherape fi clear echo "" echo [+] "Deseja instalar as bibliotecas (recomendado)? y/n" ; echo '.: libssl, libssl-dev, libssh-2, python-pycurl, libnet-dns-perl, libsnmp-perl, libcrypt-ssleay-perl, libnet-ssleay-perl, ncurses-dev, libpcap-dev :.' read digx if [ $digx = "y" ] then apt-get -y install libssl apt-get -y install libssl-dev apt-get -y install libssh-2 apt-get -y install python-pycurl apt-get -y install libnet-dns-perl apt-get -y install libsnmp-perl apt-get -y install libcrypt-ssleay-perl apt-get -y install libnet-ssleay-perl apt-get -y install ncurses-dev apt-get -y install libpcap-dev fi clear echo "" echo [+] "Deseja instalar ferramentas de cracking? y/n" ; echo '.: john, medusa, hydra :.' read digx if [ $digx = "y" ] then apt-get -y install john apt-get -y install medusa apt-get -y install hydra fi clear echo "" echo [+] "Deseja instalar ferramentas para Wireless? y/n" ; echo '.: aircrack, aircrack-ng :.' read digx if [ $digx = "y" ] then apt-get -y install aircrack apt-get -y install aircrack-ng fi clear echo "" echo [+] "Deseja instalar ferramentas de linha de comando para aplicacoes Web? y/n" ; echo '.: wget, curl, nikto :.' read digx if [ $digx = "y" ] then apt-get -y install wget apt-get -y install curl apt-get -y install nikto fi clear echo "" echo [+] "Deseja instalar linguagens de script? y/n" ; echo '.: ruby, python, perl, perl-doc, gawk, vim-ruby, vim-python :.' read digx if [ $digx = "y" ] then apt-get -y install ruby apt-get -y install python apt-get -y install perl apt-get -y install perl-doc apt-get -y install gawk apt-get -y install vim-ruby apt-get -y install vim-python fi clear echo "" echo [+] "Deseja instalar o Ruby Gems? y/n" ; echo '.: gems, rubygems :.' read digx if [ $digx = "y" ] then apt-get -y install gems apt-get -y install rubygems fi clear echo "" echo [+] "Deseja instalar as dependencias do Metasploit? y/n" ; echo '.: libopenssl-ruby, ruby-libglade2, libgtk2-ruby :.' read digx if [ $digx = "y" ] then apt-get -y install libopenssl-ruby apt-get -y install ruby-libglade2 apt-get -y install libgtk2-ruby fi clear echo "" echo [+] "Deseja instalar as dependencias do Scapy? y/n" ; echo '.: graphviz, imagemagick, python-gnuplot, python-crypto, python-visual, python-pyx, acroread, gv, sox :.' read digx if [ $digx = "y" ] then apt-get -y install graphviz apt-get -y install imagemagick apt-get -y install python-gnuplot apt-get -y install python-crypto apt-get -y install python-visual apt-get -y install python-pyx apt-get -y install acroread apt-get -y install gv apt-get -y install sox fi clear echo "" echo [+] "Deseja instalar frameworks para desenvolvimento? y/n" ; echo '.: kdevelop, subversion, rapidsvn, vim-full, git, git-core :.' read digx if [ $digx = "y" ] then apt-get -y install eclipse apt-get -y install kdevelop apt-get -y install subversion apt-get -y install rapidsvn apt-get -y install vim-full apt-get -y install git apt-get -y install git-core fi clear echo "" echo [+] "Deseja instalar ferramentas para Documentacao? y/n" ; echo '.: notecase, vim, liferea :.' read digx if [ $digx = "y" ] then apt-get -y install notecase apt-get -y install vim apt-get -y install liferea fi clear echo "" echo [+] "Deseja instalar Utilitários para Browsers/Web? y/n" ; echo '.: azerus, opera, filezilla, flashplugin-nonfree, pidgin, pidgin-otr, thunderbird, lightning-extension, enigmail, irssi, silc, tor :.' read digx if [ $digx = "y" ] then apt-get -y install azureus apt-get -y install opera apt-get -y install filezilla apt-get -y install flashplugin-nonfree apt-get -y install pidgin apt-get -y install pidgin-otr apt-get -y install thunderbird apt-get -y install lightning-extension apt-get -y install enigmail apt-get -y install irssi apt-get -y install silc apt-get -y install tor fi clear echo "" echo [+] "Deseja instalar ferramentas para Windows? y/n" ; echo '.: wine, quicksynergy :.' read digx if [ $digx = "y" ] then apt-get -y install wine apt-get -y install quicksynergy fi clear echo "" echo [+] "Deseja instalar ferramentas de criptografia? y/n" ; echo '.: dmsetup, password-gorilla, gpa, seahorse :.' read digx if [ $digx = "y" ] then apt-get -y install dmsetup apt-get -y install password-gorilla apt-get -y install gpa apt-get -y install seahorse fi clear echo "" echo [+] "Deseja instalar o Java? y/n" ; echo '.: openjdk-7-jre, openjdk-7-jdk :.' read digx if [ $digx = "y" ] then apt-get -y install openjdk-7-jre apt-get -y install openjdk-7-jdk java -version fi clear echo "" echo [+] "Deseja atualizar o sistema? y/n" ; echo '.: update, upgrade, dist-upgrade :.' read digx if [ $digx = "y" ] then apt-get update apt-get upgrade apt-get dist-upgrade fi clear echo "" echo [+] "Deseja remover serviços desnecessarios do boot? y/n" ; echo '.: exim4, tor, ntop, p0f, pads, isakmpd, nessusd, cups, samba, nis, nfs-common :.' read digx if [ $digx = "y" ] then update-rc.d -f exim4 remove update-rc.d -f tor remove update-rc.d -f ntop remove update-rc.d -f p0f remove update-rc.d -f pads remove update-rc.d -f isakmpd remove update-rc.d -f nessusd remove update-rc.d -f cups remove update-rc.d -f samba remove update-rc.d -f nis remove update-rc.d -f nfs-common remove fi clear echo "" echo "--------------------------------------------" echo " .: d-_-b :. " echo " Bye! " echo "--------------------------------------------" echo ""
Cadastro SHELL SCRIPT/MySQL/PHP
Usando netstat para verificar conexões e portas
Plugin para o Nagios monitorar o vencimento do certificado Zimbra
Enviar mensagem ao usuário trabalhando com as opções do php.ini
Meu Fork do Plugin de Integração do CVS para o KDevelop
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
Compartilhamento de Rede com samba em modo Público/Anônimo de forma simples, rápido e fácil
Cups: Mapear/listar todas as impressoras de outro Servidor CUPS de forma rápida e fácil
Criando uma VPC na AWS via CLI
Tem como instalar o gerenciador AMD Adrenalin no Ubuntu 24.04? (6)