Fix credential harvester

This commit is contained in:
TrustedSec 2015-11-06 02:33:08 -05:00
parent 7204c5fded
commit 43e2539a1f
3 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,9 @@
~~~~~~~~~~~~~~~~
version 6.5.9
~~~~~~~~~~~~~~~~
* fixed a bug that was causing credential harvester to fail
~~~~~~~~~~~~~~~~
version 6.5.8
~~~~~~~~~~~~~~~~

View file

@ -233,7 +233,7 @@ def print_error(message):
print bcolors.RED + bcolors.BOLD + "[!] " + bcolors.ENDC + bcolors.RED + str(message) + bcolors.ENDC
def get_version():
define_version = '6.5.8'
define_version = '6.5.9'
return define_version
class create_menu:

View file

@ -275,7 +275,11 @@ class SETHandler(BaseHTTPRequestHandler):
# put the params into site.template for later user
filewrite=file(setdir + "/site.template","a")
filewrite.write("\n")
filewrite2 = file("%s/src/logs/harvester.log" % (definepath), "a")
if not os.path.isfile("%s/src/logs/harvester.log" % (os.getcwd())):
filewrite3 = file("%s/src/logs/harvester.log" % os.getcwd(), "w")
filewrite3.write("")
filewrite3.close()
filewrite2 = file("%s/src/logs/harvester.log" % os.getcwd(), "a")
filewrite.write("\n\n")
print bcolors.RED+"[*] WE GOT A HIT! Printing the output:\r" + bcolors.GREEN
for line in url: