Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions .github/workflows/pr_gate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PR Gate Workflow

on: [pull_request]

jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Lint with flake8
run: |
poetry run flake8 scanners/ tests/
- name: Test with pytest
run: |
poetry run pytest
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,10 @@ Final Output:

## Installation

`pip3 install -r requirements.txt`

OR

Run in Virtual Env:
To install the project dependencies, use Poetry:

```console
python3 -m venv .venv

source .venv/bin/activate

pip3 install -r requirements.txt
poetry install
```

---
Expand Down
43 changes: 43 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[tool.poetry]
name = "scanmaster"
version = "0.1.0"
description = "A security tool designed to perform thorough scans on a target using OpenVAS, Zap, and Nexpose."
authors = ["Vijay <vs4vijay@gmail.com>"]

[tool.poetry.dependencies]
python = "^3.8"
asn1crypto = "^0.24.0"
bcrypt = "^3.1.7"
beautifulsoup4 = "^4.8.0"
certifi = "^2019.6.16"
cffi = "^1.12.3"
chardet = "^3.0.4"
cryptography = "^2.7"
defusedxml = "^0.6.0"
gvm-tools = "^2.0.0b1"
idna = "^2.8"
lxml = "^4.4.1"
nltk = "^3.4.5"
paramiko = "^2.6.0"
pprint = "^0.1"
pycparser = "^2.19"
PyNaCl = "^1.3.0"
python-dateutil = "^2.8.0"
python-dotenv = "^0.10.3"
python-gvm = "^1.0.0b3"
python-owasp-zap-v2.4 = "^0.0.15"
rapid7-vm-console = "^1.0.0-6.5.50"
requests = "^2.22.0"
six = "^1.12.0"
soupsieve = "^1.9.2"
terminaltables = "^3.1.0"
tinydb = "^3.13.0"
urllib3 = "^1.25.3"
xmltodict = "^0.12.0"

[tool.poetry.dev-dependencies]
pytest = "^5.2"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
28 changes: 0 additions & 28 deletions requirements.txt

This file was deleted.

9 changes: 9 additions & 0 deletions scanners/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This __init__.py file is intended to serve as a central point for importing scanner implementations
# and potentially providing common functionality across different scanner types.

# Importing scanner classes to make them available for use elsewhere in the project
from .nexpose_scanner import NexposeScanner
from .openvas_scanner import OpenVASScanner
from .zap_scanner import ZapScanner

# Potential common functionality or base classes could be defined here if needed
1 change: 0 additions & 1 deletion scanners/openvas_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,3 @@ def remove(self, scan_name):

def list_scans(self):
pass

7 changes: 0 additions & 7 deletions setup.sh

This file was deleted.