convert all to harvester_file instead of now()

This commit is contained in:
TrustedSec 2016-02-09 12:04:07 -05:00
parent ec00b9fec0
commit 1b25694537

View file

@ -503,17 +503,17 @@ def run():
if os.path.isdir("/var/www/html"):
logpath = ("/var/www/html")
filewrite = open("%s/harvester_%s.txt" % (logpath, now), "w")
filewrite = open("%s/%s" % (logpath, harvester_file), "w")
filewrite.write("")
filewrite.close()
# Check sys platform to perform chown
if sys.platform == "darwin":
subprocess.Popen("chown _www:_www '%s/harvester_%s.txt'" %
(logpath, now), shell=True).wait()
subprocess.Popen("chown _www:_www '%s/%s'" %
(logpath, harvester_file), shell=True).wait()
else:
subprocess.Popen("chown www-data:www-data '%s/harvester_%s.txt'" %
(logpath, now), shell=True).wait()
subprocess.Popen("chown www-data:www-data '%s/%s'" %
(logpath, harvester_file), shell=True).wait()
# if we are using webjacking, etc.
if os.path.isfile(setdir + "/web_clone/index2.html"):