mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-23 21:13:05 +00:00
Added warning message to se-toolkit
This commit is contained in:
parent
b8be88547b
commit
8e28d0dfd5
1 changed files with 13 additions and 20 deletions
33
se-toolkit
33
se-toolkit
|
@ -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()
|
|
||||||
|
|
Loading…
Reference in a new issue