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.
A simple Python program that generates an ASCII representation of a directory tree.
Treefolder is a simple Python program that generates an ASCII representation of a directory tree. The function takes 2 parameters -i or -n and also the name of any folder that you want to ignore on the representation of the tree. For example:
python tree.py -i sass images
: This will ignore all the base folders and also sass and images folder.python tree.py -n .git
: This will ignore only the folder .git** If installed using pip, the commands are treefolder -i args
or treefolder -n args
. **
git clone https://github.com/Aperezortega/Treefolder.git
cd treefolder
pip install -r requirements.txt
o
pip install treefolder
python treefolder.py
base_ignored_folders
list in the script to add or remove default ignored folders.-i
or --ignore
to specify additional folders to ignore, or -n
or --no-ignore
to specify folders to ignore exclusively.Treefolder es un programa simple en Python que genera una representación ASCII de un árbol de directorios. La función acepta 2 parámetros -i o -n y también el nombre de cualquier carpeta que desees ignorar en la representación del árbol. Por ejemplo: python tree.py -i sass images: Esto ignorará todas las carpetas base y también las carpetas sass e images. python tree.py -n .git: Esto ignorará solo la carpeta .git.
** Si se installa usando pip los comandos serían treefolder -i args o treefolder -n args**
git clone https://github.com/Aperezortega/Treefolder.git
cd treefolder
pip install -r requirements.txt
o
pip install treefolder
python treefolder.py
base_ignored_folders
en el script para agregar o eliminar carpetas ignoradas por defecto.-i
o --ignore
para especificar carpetas adicionales a ignorar, o -n
o --no-ignore
para especificar carpetas a ignorar exclusivamente.FAQs
A simple Python program that generates an ASCII representation of a directory tree.
We found that treefolder 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.