social-engineer-toolkit/seupdate

34 lines
962 B
Text
Raw Normal View History

2015-07-29 02:24:53 +00:00
#!/usr/bin/env python
2012-12-31 22:11:37 +00:00
#
2016-06-25 21:17:20 +00:00
# simple git update for set pulling from core modules
2012-12-31 22:11:37 +00:00
#
2013-04-15 14:26:00 +00:00
import os
2012-12-31 22:11:37 +00:00
import sys
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("se-toolkit"):
os.chdir("/usr/share/setoolkit")
sys.path.append("/usr/share/setoolkit")
# if we can't see our config then something didn't go good..
2015-07-13 21:29:42 +00:00
if not os.path.isfile("/etc/setoolkit/set.config"):
2016-01-14 20:52:38 +00:00
print_error(
"Cannot locate SET executable. Try running from the local directory.")
2013-04-15 14:26:00 +00:00
print_error("If this does not work, please run the setup.py install file.")
sys.exit()
2012-12-31 22:11:37 +00:00
from src.core.setcore import *
try:
# pull update set from the core libraries
update_set()
# except keyboard interrupts
except KeyboardInterrupt:
2016-01-14 20:52:38 +00:00
print("\n[!] Control-C detected. Exiting updating SET.")
2012-12-31 22:11:37 +00:00
# handle all other errors
2016-01-14 20:52:38 +00:00
except Exception as e:
print("\n[!] Something went wrong.. Printing the error: " + e)