add setup.py installer for non-standalone

This commit is contained in:
David Kennedy 2020-02-03 17:26:50 -05:00
parent 1252ee4ce2
commit bbe2a48ef3
3 changed files with 27 additions and 1 deletions

View file

@ -1,3 +1,10 @@
~~~~~~~~~~~~~~~~
version 8.0.2
~~~~~~~~~~~~~~~~
* fix an issue on harvester file not defined (python 3 compat)
* add a simple install for setoolkit (setup.py)
~~~~~~~~~~~~~~~~
version 8.0.1
~~~~~~~~~~~~~~~~

19
setup.py Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/python
#
# quick installer for SET
#
#
import subprocess
import os
print("[*] Installing requirements.txt...")
subprocess.Popen("pip3 install -r requirements.txt", shell=True).wait()
print("[*] Installing setoolkit to /usr/share/setoolkit..")
print os.getcwd()
subprocess.Popen("mkdir /usr/share/setoolkit/;mkdir /etc/setoolkit/;cp -rf * /usr/share/setoolkit/;cp src/core/config.baseline /etc/setoolkit/set.config", shell=True).wait()
print("[*] Creating launcher for setoolkit...")
filewrite = open("/usr/local/bin/setoolkit", "w")
filewrite.write("#!/bin/sh\ncd /usr/share/setoolkit\n./setoolkit")
filewrite.close()
print("[*] Done. Chmoding +x.... ")
subprocess.Popen("chmod +x /usr/local/bin/setoolkit", shell=True).wait()
print("[*] Finished. Run 'setoolkit' to start the Social Engineer Toolkit.")

View file

@ -1 +1 @@
8.0.1
8.0.2