forked from trustedsec/social-engineer-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·22 lines (22 loc) · 1009 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/python
#
# quick installer for SET
#
#
from __future__ import print_function
import subprocess
import os
print("[*] Installing requirements.txt...")
subprocess.Popen("pip3 install -r requirements.txt", shell=True).wait()
print("[*] Installing setoolkit to /Users/Shared/setoolkit..")
print(os.getcwd())
subprocess.Popen("mkdir /Users/Shared/setoolkit/;sudo mkdir /opt/setoolkit/; sudo mkdir /opt/setoolkit/bin; cp -rf * /Users/Shared/setoolkit/;sudo cp src/core/config.baseline /opt/setoolkit/set.config", shell=True).wait()
print("[*] Creating launcher for setoolkit...")
filewrite = open("/tmp/setoolkit", "w")
filewrite.write("#!/bin/sh\ncd /Users/Shared/setoolkit\n./setoolkit")
filewrite.close()
print("[*] Done. Chmoding +x.... ")
subprocess.Popen("chmod +x /tmp/setoolkit", shell=True).wait()
print("[*] Done. Moving Executable...")
subprocess.Popen("sudo mv /tmp/setoolkit /opt/setoolkit/bin", shell=True).wait()
print("[*] Finished. Run 'setoolkit' to start the Social Engineer Toolkit.")