Added warning message to se-toolkit

This commit is contained in:
TrustedSec 2013-07-28 10:15:11 -04:00
parent b8be88547b
commit 8e28d0dfd5

View file

@ -1,24 +1,17 @@
#!/usr/bin/python #!/usr/bin/python
import os
import sys
import subprocess import subprocess
try:
print "[!] SET is changing to just ./setoolkit instead"
print "[!] se-toolkit is going away, beware."
print "[!] Use: ./setoolkit from now on."
raw_input("Press {return} to continue.")
subprocess.Popen("./setoolkit", shell=True).wait()
# check where we are and load default directory # handle keyboard interrupts
if os.path.isdir("/usr/share/setoolkit"): except KeyboardInterrupt:
if not os.path.isfile("setoolkit"): print "\n\nThank you for " + bcolors.RED+"shopping" + bcolors.ENDC+" with the Social-Engineer Toolkit.\n\nHack the Gibson...and remember...hugs are worth more than handshakes.\n"
os.chdir("/usr/share/setoolkit")
sys.path.append("/usr/share/setoolkit")
# check where we are and load default directory # handle exceptions
if os.path.isdir("/usr/share/set"): except Exception, error:
if not os.path.isfile("setoolkit"): log(error)
os.chdir("/usr/share/set") print "\n\n[!] Something went wrong, printing the error: "+ str(error)
sys.path.append("/usr/share/set")
# 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()