subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# Automatically apply to Windows User Environment Variable to bypass the Playwright browser lock bug if sys.platform == "win32": print("Injecting cookies into Windows Environment Variable NOTEBOOKLM_AUTH_JSON...") subprocess.run([ "powershell", "-Command", f'[Environment]::SetEnvironmentVariable("NOTEBOOKLM_AUTH_JSON", \'{env_json}\', "User")' ], check=True)- Confidence
- 89% confidence
- Finding
- subprocess.run([ "powershell", "-Command", f'[Environment]::SetEnvironmentVariable("NOTEBOOKLM_AUTH_JSON", \'{env_json}\', "User")'
