Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
63f55a2
Update process.rst
SwapneelM Dec 30, 2016
c6f0c01
fix typo in docs
gtataranni Sep 25, 2018
abbc584
fix for nmap script table parser to handled nested tables
Professor-plum Sep 16, 2020
c6cdee4
Merge pull request #104 from Professor-plum/master
savon-noir Nov 15, 2020
84ace6b
flake8 on code and fix typo from PR#104
savon-noir Nov 17, 2020
cf1aee7
fix formatting and tox/travis tests
Nov 18, 2020
b7c8737
Merge pull request #106 from savon-noir/bugfix/0.7.1
savon-noir Nov 20, 2020
71b7077
fixed issue #87
savon-noir Nov 23, 2020
01f0e35
reformated the code using psf/black and some manual modifications
Nov 23, 2020
ed32cac
changed to Apache 2.0 licence
Nov 23, 2020
fbded5d
fix for travis issue in testing
Nov 24, 2020
286f00e
another run of py-black with updated version + isort + fix travis
Nov 25, 2020
80c12b0
testing gh actions
Nov 25, 2020
588dcdb
fixed missing dependency for gh action
Nov 25, 2020
58d86a9
fixed missing dependency for gh action
Nov 25, 2020
e1929a8
fixed missing dependency for gh action
Nov 25, 2020
d3a5784
coveralls + removed travis
Nov 26, 2020
2dfa626
Merge pull request #109 from savon-noir/feature/licence-update
savon-noir Nov 26, 2020
475365e
coverall gh gotcha and added some pretty badges
Nov 26, 2020
3fd54ca
coverall gh gotcha and added some pretty badges
Nov 26, 2020
160bdd2
coverall gh gotcha and added some pretty badges
Nov 26, 2020
9935b01
coverall gh gotcha and added some pretty badges
Nov 26, 2020
3f3e873
coverall gh gotcha and added some pretty badges
Nov 26, 2020
a52e1b1
coveralls tests
Nov 26, 2020
7241f76
coveralls tests
Nov 26, 2020
61f1def
coveralls tests
Nov 26, 2020
ff60235
coveralls tests
Nov 26, 2020
412ab32
coveralls tests
Nov 26, 2020
037f770
Merge pull request #111 from savon-noir/feature/gh-actions
savon-noir Nov 26, 2020
3ce8e29
missing coverage run
savon-noir Nov 26, 2020
5f58939
Merge pull request #112 from savon-noir/fix/coverage
savon-noir Nov 26, 2020
24fcc2e
readme update impacted sdist
savon-noir Nov 26, 2020
bf22705
Merge pull request #113 from savon-noir/fix/coverage
savon-noir Nov 27, 2020
881474d
added some unittests
savon-noir Nov 27, 2020
999da2d
Merge branch 'master' into patch-1
savon-noir Nov 28, 2020
ab15bb7
Merge pull request #89 from gtataranni/patch-1
savon-noir Nov 28, 2020
ce38707
Merge pull request #81 from SwapneelM/patch-1
savon-noir Nov 28, 2020
f42fbbb
fix for reportjson test
savon-noir Nov 28, 2020
8afdfd4
Merge pull request #114 from savon-noir/fix/coverage
savon-noir Nov 28, 2020
69032ed
add unittest on NmapProcess and fix for reportjson test module
savon-noir Nov 29, 2020
5157574
add missing psf/black dependency in pipeline
savon-noir Nov 29, 2020
515344c
add missing psf/black dependency in pipeline
savon-noir Nov 29, 2020
66ca09e
add missing psf/black dependency in pipeline
savon-noir Nov 29, 2020
1691dc5
fix on github action workflow
savon-noir Nov 29, 2020
7cec667
fix on github action workflow
savon-noir Nov 29, 2020
cbc051a
Merge pull request #115 from savon-noir/fix/coverage
savon-noir Nov 29, 2020
366f1e8
Fix empty NmapProcess.stdout error
Shouren Nov 1, 2016
c7404a8
fix: pr #79 and added some unittest for process module
savon-noir Dec 1, 2020
607740f
test: completed process and parser unittest
savon-noir Dec 1, 2020
d798a05
Merge pull request #116 from savon-noir/fix/pr79
savon-noir Dec 1, 2020
3295da8
Added dictionary version of the banner method
Jul 30, 2019
647773c
feature(service): added service.banner_dict from pr98
savon-noir Dec 1, 2020
84599f7
Merge pull request #117 from savon-noir/fix/pr98
savon-noir Dec 1, 2020
58b0d0a
Adding the MAC adress to method host.get_dict()
Apr 17, 2015
204c8e3
feat: added support for mac address in NmapHost and cascaded attribut…
savon-noir Dec 6, 2020
28f70a8
Merge pull request #118 from savon-noir/feature/pr53
savon-noir Dec 6, 2020
93c6f6a
fix: fixed change log and added pre-commit hooks
savon-noir Dec 10, 2020
e7ed295
fix: changelog to keep-a-change-log specs and updated documentation
savon-noir Dec 16, 2020
8438f45
fix: updated pypi publish workflow
savon-noir Dec 16, 2020
55588ba
fix(github-acitons): fix pupi_publish workflow
savon-noir Dec 16, 2020
579b6ce
fix: moved back from README.md to README.rst
savon-noir Dec 16, 2020
d142c00
fix: bump up to v0.7.2 needed following pypi issue
savon-noir Dec 16, 2020
4e969dd
Set encoding for README
weddige Jan 4, 2021
8f44274
Fix Windows charmap exception for quote characters
FreddieDev Sep 13, 2021
28060b4
docs: Fix a few typos
timgates42 Sep 4, 2021
c36fecd
Fix CVE-2022-30284 by validating targets
facutuesca Aug 29, 2022
866f2aa
lint: ran linters on code
savon-noir Sep 1, 2022
2388af3
fix(lint): try to fix linting error from psf/black
savon-noir Sep 1, 2022
1279cca
fix(lint): try to fix linting error from psf/black
savon-noir Sep 1, 2022
f34abce
fix(lint): try to fix linting error from psf/black
savon-noir Sep 1, 2022
20ef8ff
fix(lint): try to fix linting error from psf/black
savon-noir Sep 1, 2022
41a995a
fix(lint): try to fix linting error from coverall
savon-noir Sep 1, 2022
6fe33e7
fix(lint): try to fix linting error from coveralls
savon-noir Sep 1, 2022
3a49571
fix: updated changelog
savon-noir Sep 1, 2022
37092bd
fix: fixed version and documentation for v0.7.3
savon-noir Sep 1, 2022
16d23c0
Adds trace key
dimeko Apr 4, 2024
d21dc98
Small change
dimeko Apr 4, 2024
f17139c
Adds trace parsing
dimeko Apr 4, 2024
5307252
Adds more fields to tarce
dimeko Apr 4, 2024
3a4fa75
WIP: fix
dimeko Apr 4, 2024
a4b355b
Adds conditions
dimeko Apr 10, 2024
b9a42aa
Fixes proto and port retrieval
dimeko Apr 16, 2024
d6f484f
Bump black from 20.8b1 to 24.3.0
dependabot[bot] Mar 20, 2024
ed0619e
fix python 2 compat
noraj Jul 7, 2023
6c0ee1a
Update parser.py documentation with a warning/clarification.
nitram2342 Dec 12, 2023
e11ff06
fix: added versions for python envs
savon-noir Jan 19, 2025
61fb48a
fix: updated lib version for checks
savon-noir Jan 19, 2025
8bca24a
fix: fixed pyblack codefmt
savon-noir Jan 19, 2025
2352816
fix: isort in setup.py
savon-noir Jan 19, 2025
2e8ed2d
fix: requirements file
savon-noir Jan 19, 2025
ff63931
fix: gh actions fix bllint issue
savon-noir Jan 19, 2025
6c69c19
temporary fix for issue40
savon-noir Apr 6, 2015
3b4cde5
fix(extraports): added support for extra ports, fixes #40
savon-noir Jan 27, 2025
24d6013
fix: fixed pylint issues
savon-noir Jan 27, 2025
1185c32
fix: upgraded pyblack for cve CVE-2024-21503
savon-noir Jan 27, 2025
00193b3
fix: simplified the extraports structs
savon-noir Jan 27, 2025
8647812
fix: replace deprecated distutils with setuptools
aquilamacedo Dec 17, 2023
01944ca
fix: added hybrid support for setuptools
savon-noir Jan 29, 2025
f9887fc
fix: linting
savon-noir Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/preflight_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Preflight Check

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
lint:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black isort flake8
- name: Format checker with psf/black
uses: psf/black@stable
with:
options: "--check -l 79 --exclude docs/"
version: "24.3.0"
- name: Format checker with isort
run: isort --check-only -m 3 -l 79 --profile=black .
- name: Lint with flake8
run: flake8 --exclude test,docs,examples .
test:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup Environment
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov defusedxml
pip install coveralls
sudo apt-get install -y nmap
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest --cov=libnmap/ --ignore=libnmap/test/test_backend_plugin_factory.py
- name: Upload Coverage
if: matrix.python-version != '2.7'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true
run: |
coveralls --service=github
coveralls:
name: Finish Coveralls
needs: test
runs-on: ubuntu-22.04
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --finish --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/pypi_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.py[cod]
*.swp
.pylintrc
*~
*.lock
*.DS_Store
Expand Down Expand Up @@ -41,3 +42,6 @@ nosetests.xml
.swp

__pycache__
.vscode/settings.json
.noseids
_build
34 changes: 34 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
exclude: ^(test/|.tox/|docs)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
args: [--line-length=79]
files: ^libnmap
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.6.4
hooks:
- id: isort
args: [--multi-line=3, --line-length=79, --profile=black]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
exclude: ^libnmap/(test/|docs/|examples/)
- repo: local
hooks:
- id: pytest-check
name: pytest-check
stages: [pre-commit]
types: [python]
entry: pytest --cov=libnmap/ --ignore=libnmap/test/test_backend_plugin_factory.py
language: system
pass_filenames: false
always_run: true
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

Loading