mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2025-02-17 22:08:36 +00:00
convert all to harvester_file instead of now()
This commit is contained in:
parent
ec00b9fec0
commit
1b25694537
1 changed files with 5 additions and 5 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Reference in a new issue