
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Library to aid in organizing, running, and debugging regular expressions against large bodies of text.
Library to aid in organizing, running, and debugging regular expressions against large bodies of text.
The goal of this library is to simplify the deployment of regular expression on large bodies of text, in a variety of input formats.
To get a local copy up and running follow these simple steps.
git clone https://github.com/kpwhri/runrex.git
requirements-dev
is for test packages)
pip install -r requirements.txt -r requirements-dev.txt
requirements-db.txt
requirements-psql.txt
requirements-sas.txt
set/export PYTHONPATH=src
pytest tests
patterns.py
: defines regular expressions of interest
examples/example_patterns.py
for some examplestest_patterns.py
: tests for those regular expressions
algorithm.py
: defines algorithm (how to use regular expressions); returns a Result
examples/example_algorithm.py
for guidanceconfig.(py|json|yaml)
: various configurations defined in schema.py
examples/example_config.py
for basic configAccepts a variety of input formats, but will need to at least specify a document_id
and document_text
. The names are configurable.
By default, the input document text is expected to have each sentence on a separate line. If a sentence splitting scheme is desired, it will need to be supplied to the application.
For more details, see the example config or consult the schema
jsonl
import json
with open('output.jsonl') as fh:
for line in fh:
data = json.loads(line) # data is dict
Output variables are configurable and can include:
Scripts to accomplish useful tasks with the output are included in the scripts
directory.
Uses SEMVER.
See https://github.com/kpwhri/runrex/releases.
See the open issues for a list of proposed features (and known issues).
Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License.
See LICENSE
or https://kpwhri.mit-license.org for more information.
Please use the issue tracker.
FAQs
Library to aid in organizing, running, and debugging regular expressions against large bodies of text.
We found that runrex 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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.