social-engineer-toolkit/seupdate

32 lines
933 B
Text
Raw Normal View History

2013-04-15 14:26:00 +00:00
#!/usr/bin/python
2012-12-31 22:11:37 +00:00
#
# simple svn update for set pulling from core modules
#
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..
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()
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:
print "\n[!] Control-C detected. Exiting updating SET."
# handle all other errors
except Exception, e: print "\n[!] Something went wrong.. Printing the error: " + e