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.
pip install windows-filedialogs
Documentation: https://mrthearman.github.io/filedialogs/
Source Code: https://github.com/MrThearMan/filedialogs/
Contributing: https://github.com/MrThearMan/filedialogs/blob/main/CONTRIBUTING.md
Implements easy Windows file dialog functions. Requires the pywin32 module.
from filedialogs import save_file_dialog, open_file_dialog, open_folder_dialog
open_path = open_file_dialog()
if open_path:
with open(open_path, "r") as f:
...
save_path = save_file_dialog()
if save_path:
with open(save_path, "w") as f:
...
open_folder = open_folder_dialog()
if open_folder:
with open(os.path.join(open_folder, ...), "w") as f:
...
Returns: Path to a file to open if multiselect=False. List of the paths to files which should be opened if multiselect=True. None if file open dialog canceled.
Raises: IOError - File open dialog failed.
Returns: Path file should be save to. None if file save dialog canceled.
Raises: IOError - File save dialog failed.
Returns: Path to folder. None if no folder selected.
FAQs
Simple Windows file dialogs.
We found that windows_filedialogs 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.