social-engineer-toolkit/se-toolkit

25 lines
806 B
Text
Raw Normal View History

2013-04-15 14:26:00 +00:00
#!/usr/bin/python
import os
import sys
import subprocess
2013-04-15 14:26:00 +00:00
# check where we are and load default directory
if os.path.isdir("/usr/share/setoolkit"):
if not os.path.isfile("setoolkit"):
2013-04-15 14:26:00 +00:00
os.chdir("/usr/share/setoolkit")
sys.path.append("/usr/share/setoolkit")
# check where we are and load default directory
if os.path.isdir("/usr/share/set"):
if not os.path.isfile("setoolkit"):
os.chdir("/usr/share/set")
sys.path.append("/usr/share/set")
2013-04-15 14:26:00 +00:00
# if we can't see our config then something didn't go good..
if not os.path.isfile("config/set_config"):
print_error("Cannot locate SET executable. Try running from the local directory.")
print_error("If this does not work, please run the setup.py install file.")
sys.exit()
subprocess.Popen("python setoolkit", shell=True).wait()