Skip to content

Commit c2241a0

Browse files
committed
Restore old names of the GET_CONTEXT "permission"
1 parent 79f34a1 commit c2241a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/drozer/console/session.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def do_permissions(self, args):
369369
self.stdout.write("Has ApplicationContext: YES\n")
370370
self.stdout.write("Available Permissions:\n")
371371
for permission in sorted(self.permissions()):
372-
if permission != "com.WithSecure.dz.permissions.GET_CONTEXT":
372+
if permission not in ["GET_CONTEXT", "com.WithSecure.dz.permissions.GET_CONTEXT", "com.mwr.dz.permissions.GET_CONTEXT"]:
373373
self.stdout.write(" - %s\n" % (permission))
374374
else:
375375
self.stdout.write("Has ApplicationContext: NO\n")
@@ -573,6 +573,8 @@ def permissions(self):
573573
self.__permissions.append(str(permission))
574574

575575
self.__permissions.append("com.WithSecure.dz.permissions.GET_CONTEXT")
576+
self.__permissions.append("com.mwr.dz.permissions.GET_CONTEXT")
577+
self.__permissions.append("GET_CONTEXT")
576578
elif self.__permissions == None:
577579
self.__permissions = []
578580

0 commit comments

Comments
 (0)