2020-02-03 22:26:50 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
#
|
|
|
|
# quick installer for SET
|
|
|
|
#
|
|
|
|
#
|
2020-02-04 04:20:34 +00:00
|
|
|
from __future__ import print_function
|
2020-02-03 22:26:50 +00:00
|
|
|
import subprocess
|
|
|
|
import os
|
|
|
|
print("[*] Installing requirements.txt...")
|
|
|
|
subprocess.Popen("pip3 install -r requirements.txt", shell=True).wait()
|
2023-01-08 23:49:41 +00:00
|
|
|
print("[*] Installing setoolkit to /usr/local/share/setoolkit")
|
2020-02-04 04:20:34 +00:00
|
|
|
print(os.getcwd())
|
2023-01-08 23:49:41 +00:00
|
|
|
subprocess.Popen("mkdir /usr/local/share/setoolkit/;mkdir /etc/setoolkit/;cp -rf * /usr/local/share/setoolkit/;cp src/core/config.baseline /etc/setoolkit/set.config", shell=True).wait()
|
2020-02-03 22:26:50 +00:00
|
|
|
print("[*] Creating launcher for setoolkit...")
|
|
|
|
filewrite = open("/usr/local/bin/setoolkit", "w")
|
2023-01-08 23:49:41 +00:00
|
|
|
filewrite.write("#!/bin/sh\ncd /usr/local/share/setoolkit\n./setoolkit")
|
2020-02-03 22:26:50 +00:00
|
|
|
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.")
|