Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Python bindings for proton vpn's linux cli.
Install with:
pip install protonne
from protonne import Proton proton = Proton() proton.connect_fastest() proton.enable_permanent_killswitch() # If you want to execute the commands "silently", you can set 'capture_output' to True in the class constructor or after creation through the 'capture_output' property proton.capture_output = True proton.capture_output = False # Almost every function returns an 'Output' object that contains 3 fields: 'return_code', 'stdout', and 'stderr'. # When 'capture_output' is True, 'stdout' and 'stderr' can be accessed through the 'Output' object, otherwise they are empty strings. # The 'capturing_output()' context manager can also be used. with proton.capturing_output(): output = proton.connect_random() print(output.stdout) # Once you're connected, info about the connection is available through the 'connection' property. # Accessing this property invokes the cli's 'status' command and parses the output into a 'Connection' object. # For performance, it's best to store this property in a local variable for repeated access until you need an updated 'Connection' object. ip_history = [] connection = proton.connection ip_history.append((connection.IP, connection.server.name)) proton.connect_random() connection = proton.connection ip_history.append((connection.IP, connection.server.name)) proton.connect(server=ip_history[0][1]) # Full 'Connection' annotation: connection.IP: str connection.killswitch.active: bool connection.killswitch.on: bool connection.killswitch.permanent: bool connection.raw: str # The raw output string of the 'status' cli command connection.server.name: str connection.server.country: str connection.server.protocol: str connection.server.load: str connection.server.plan: str connection.server.features: str | None connection.time: str
FAQs
Python bindings for proton vpn's cli.
We found that protonne demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.