Per Debian policy, Python versions 3 and greater must be called from the `python3` executable, not the `python` executable. This means Debian-based systems with Python 3 installed but not Python 2 will fail to launch SET through `seautomate` because the `python` executable is hard-coded into the call to `pexpect.spawn()`. This commit uses the standard library's `distutils.spawn.find_executable()` method to locate the correct path to `python3` or, failing that, the correct path to the `python` executable and uses the result of that call as the first command line word with which to invoke `setoolkit`. The `distutils.spawn.find_executable()` method is available at that exact name in both Python 2 and 3, so this should be portable across all Python versions. Note that the shebang line references `python`, and so Python 3-only systems such as newer Debian-based builds may need to invoke `seautomate` using an explicit interpreter for it to work: ```sh sudo python3 ./seautomate /path/to/script/file.txt ``` |
||
---|---|---|
.github | ||
modules | ||
readme | ||
src | ||
.gitignore | ||
README.md | ||
requirements.txt | ||
seautomate | ||
seproxy | ||
setoolkit | ||
setup.py | ||
seupdate |
💼 The Social-Engineer Toolkit (SET) 💼
Copyright 2020 The Social-Engineer Toolkit (SET)
Written by: David Kennedy (ReL1K) @HackingDave
Company: TrustedSec
DISCLAIMER: This is only for testing purposes and can only be used where strict consent has been given. Do not use this for illegal purposes, period.
Please read the LICENSE under readme/LICENSE for the licensing of SET.
📖 SET Tutorial 📖
For a full document on how to use SET, visit the SET user manual.
💻 Features 💻
The Social-Engineer Toolkit is an open-source penetration testing framework designed for social engineering. SET has a number of custom attack vectors that allow you to make a believable attack quickly. SET is a product of TrustedSec, LLC – an information security consulting firm located in Cleveland, Ohio.
Bugs and enhancements
For bug reports or enhancements, please open an issue here.
Supported platforms
- Linux 🐧
- Mac OS X 🍎
📥 Installation 📥
Resolve dependencies
Ubuntu/Debian System
- Linux
- Mac OS X (experimental)
Installation
Install via requirements.txt
pip3 install -r requirements.txt python setup.py
Install SET
All OSs
git clone https://github.com/trustedsec/social-engineer-toolkit/ setoolkit/
cd setoolkit
pip3 install -r requirements.txt
python setup.py