mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-12-15 15:32:38 +00:00
31 lines
933 B
Python
Executable file
31 lines
933 B
Python
Executable file
#!/usr/bin/python
|
|
#
|
|
# simple svn update for set pulling from core modules
|
|
#
|
|
import os
|
|
import sys
|
|
|
|
# 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()
|
|
|
|
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
|