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.
bird-ospf-link-db-parser
Advanced tools
Parse the text output from the BIRD Routing Daemon's OSPF link database into machine readable JSON
Parses the output of the BIRD Routing Daemon's birdc show ospf state
command into a machine-readable JSON string.
> birdc show ospf state | parse-bird-link-db - | jq | less
{
"areas": {
"0.0.0.0": {
"routers": {
"10.68.29.50": {
"links": {
"router": [
{
"id": "10.69.7.31",
"metric": 10
}
],
"stubnet": [
{
"id": "10.69.29.50/32",
"metric": 0
},
{
"id": "10.68.29.50/32",
"metric": 0
}
],
"external": [
{
"id": "10.70.174.0/24",
"metric": 20
}
]
}
},
"10.68.73.125": {
"links": {
"router": [
{
"id": "10.69.73.25",
"metric": 10
},
{
"id": "10.69.52.83",
"metric": 30
},
{
"id": "10.69.73.25",
"metric": 30
}
],
"stubnet": [
{
"id": "10.69.73.125/32",
"metric": 0
},
{
"id": "10.68.73.125/32",
"metric": 0
}
]
}
},
...
}
}
}
}
The output format is detailed using JSON Schema in src/bird_parser/output_schema.json
Pre-requisites: python3
available via the shell
First, install the CLI via pip:
pip install bird-ospf-link-db-parser
then invoke the tool with the CLI command:
birdc show ospf state | parse-bird-link-db -
But you probably want to use jq
and less
to make this output a bit more manageable:
sudo apt update && sudo apt install jq less
birdc show ospf state | parse-bird-link-db - | jq | less
Pre-requisites: python3
available via the shell
Setup by cloning, creating a virtual env, and installing the application
git clone https://github.com/Andrew-Dickinson/bird-ospf-link-db-parser
cd bird-ospf-link-db-parser
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
then invoke the tool with the CLI command:
birdc show ospf link state > parse-bird-link-db -
Follow the instructions under "Dev Setup" above, to clone a local copy of this application and activate the virtual environment. Then installing the test dependencies with:
pip install -e ".[test,dev]"
Finally, invoke the test suite using pytest:
pytest test/
Follow the instructions above to clone a local copy of this application, activate the virtual environment, and run the tests.
Then, build & upload the application with
rm -rf dist/*
python -m build .
twine upload dist/*
Distributed under the MIT License. See LICENSE.txt
for more information.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)FAQs
Parse the text output from the BIRD Routing Daemon's OSPF link database into machine readable JSON
We found that bird-ospf-link-db-parser 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.