
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
RunCommands +++++++++++
A simple command runner that uses argparse
from the Python standard
library under the hood. Runs on Python 3 only (3.9 and up). Uses annotations to
configure options.
There are two basic use cases:
Building on these, especially #2, there are a couple of more advanced use cases:
rsync
some files to a server, a few
simple commands might be all you need.Define a command:
.. code-block:: python
from runcommands import arg, command
from runcommands.commands import local
@command
def test(*tests: arg(help='Specific tests to run (instead of using discovery)')):
if tests:
local(('python', '-m', 'unittest', tests))
else:
local('python -m unittest discover .')
Show its help::
> run test -h
test [-h] [TESTS [TESTS ...]]
positional arguments:
TESTS Specific tests to run (instead of using discovery)
optional arguments:
-h, --help show this help message and exit
Run it::
> run test
..........
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
Create a standalone console script using a standard setuptools entry point:
.. code-block:: python
# setup.py
setup(
...
entry_points="""
[console_scripts]
my-test-script = package.module:test.console_script
"""
)
Run it (after reinstalling the package)::
> my-test-script
..........
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
See the main documentation
_ for more information on installation,
defining & running commands, configuration, etc.
@command
decorator.git
).run build deploy
.argparse
under the hood so command line usage is familiar.argparse
.Detailed documentation is on Read the Docs
_.
MIT. See the LICENSE file in the source distribution.
.. _main documentation: http://runcommands.readthedocs.io/
.. Read the Docs: main documentation
FAQs
A framework for writing console scripts and running commands
We found that runcommands 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.