Updated to 5.0.1 with minor bug fixes and check routines

This commit is contained in:
TrustedSec 2013-04-17 14:21:40 -04:00
parent 5b4b393422
commit af429da33b
4 changed files with 44 additions and 4 deletions

View file

@ -1,3 +1,11 @@
~~~~~~~~~~~~~~~~
version 5.0.1
~~~~~~~~~~~~~~~~
* added a create set directory if not found in the initial launch of se-toolkit or set
* added a create for the set logfile when launching se-toolkit
* fixed a bug that would cause ratte to not properly load when executing
~~~~~~~~~~~~~~~~
version 5.0
~~~~~~~~~~~~~~~~

View file

@ -21,8 +21,12 @@ import subprocess
import shutil
import re
if not os.path.isdir(setdir + "/reports/"):
os.makedirs(setdir + "/reports")
# check set logfile
if not os.path.isfile("src/logs/set_logfile.log"):
# create new log
filewrite = file("src/logs/set_logfile.log", "w")
filewrite.write("")
filewrite.close()
# grab the operating system
operating_system = check_os()
@ -32,6 +36,14 @@ if operating_system == "posix":
if not os.path.isdir(setdir):
# create the set variables
os.makedirs(setdir)
# if for some reason it failed to pull the path
if not os.path.isdir("~/.set/"):
os.makedirs("~/.set/")
if not os.path.isdir(setdir + "/reports/"):
os.makedirs(setdir + "/reports")
# check to see if we have python-pycrypto
try:

20
set
View file

@ -24,6 +24,26 @@ if not os.path.isfile("src/logs/set_logfile.log"):
filewrite.write("")
filewrite.close()
# grab the operating system
operating_system = check_os()
# check set logfile
if not os.path.isfile("src/logs/set_logfile.log"):
# create new log
filewrite = file("src/logs/set_logfile.log", "w")
filewrite.write("")
filewrite.close()
# use ~/.set
if operating_system == "posix":
if not os.path.isdir(setdir):
# create the set variables
os.makedirs(setdir)
# if for some reason it failed to pull the path
if not os.path.isdir("~/.set/"):
os.makedirs("~/.set/")
if not os.path.isdir(setdir + "/reports/"):
os.makedirs(setdir + "/reports")

View file

@ -229,7 +229,7 @@ def print_error(message):
print bcolors.RED + bcolors.BOLD + "[!] " + bcolors.ENDC + bcolors.RED + str(message) + bcolors.ENDC
def get_version():
define_version = '5.0'
define_version = '5.0.1'
return define_version
class create_menu:
@ -795,7 +795,7 @@ def show_banner(define_version,graphic):
print bcolors.BLUE + """
[---] The Social-Engineer Toolkit ("""+bcolors.YELLOW+"""SET"""+bcolors.BLUE+""") [---]
[---] Created by:""" + bcolors.RED+""" David Kennedy """+bcolors.BLUE+"""("""+bcolors.YELLOW+"""ReL1K"""+bcolors.BLUE+""") [---]
[---] Version: """+bcolors.RED+"""%s""" % (define_version) +bcolors.BLUE+""" [---]
[---] Version: """+bcolors.RED+"""%s""" % (define_version) +bcolors.BLUE+""" [---]
[---] Codename: '""" + bcolors.YELLOW + """The Wild West""" + bcolors.BLUE + """' [---]
[---] Follow us on Twitter: """ + bcolors.PURPLE+ """@trustedsec""" + bcolors.BLUE+""" [---]
[---] Follow me on Twitter: """ + bcolors.PURPLE+ """@dave_rel1k""" + bcolors.BLUE+""" [---]