mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-28 07:20:25 +00:00
Fix Credentials Harvester on darwin platform to perform chown on harvested txt file
This commit is contained in:
parent
c1dc6747d9
commit
bf8b92ce2b
1 changed files with 6 additions and 1 deletions
|
@ -444,7 +444,12 @@ def run():
|
||||||
filewrite = file("%s/harvester_%s.txt" % (logpath,now), "w")
|
filewrite = file("%s/harvester_%s.txt" % (logpath,now), "w")
|
||||||
filewrite.write("")
|
filewrite.write("")
|
||||||
filewrite.close()
|
filewrite.close()
|
||||||
subprocess.Popen("chown www-data:www-data '%s/harvester_%s.txt'" % (logpath,now), shell=True).wait()
|
|
||||||
|
# Check sys platform to perform chown
|
||||||
|
if sys.platform == "darwin":
|
||||||
|
subprocess.Popen("chown _www:_www '%s/harvester_%s.txt'" % (logpath,now), shell=True).wait()
|
||||||
|
else:
|
||||||
|
subprocess.Popen("chown www-data:www-data '%s/harvester_%s.txt'" % (logpath,now), shell=True).wait()
|
||||||
|
|
||||||
# if we are using webjacking, etc.
|
# if we are using webjacking, etc.
|
||||||
if os.path.isfile(setdir + "/web_clone/index2.html"):
|
if os.path.isfile(setdir + "/web_clone/index2.html"):
|
||||||
|
|
Loading…
Reference in a new issue