Skip to content

Commit c957afa

Browse files
committed
Added github action to generate docker image
on new releases. Removed old github actions. Removed submodule. Added Dockerfile. Improved README. Added code to follow redirections in cvescannerv2.nse Fixed metasploit name being duplicated. Updated requirements versions. Removed metasploit cache, now will be downloaded from metasploit-framework repository. Repository reorganized to remove cluttering.
1 parent 7ef00aa commit c957afa

18 files changed

+355
-267444
lines changed

.github/workflows/docker.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Update main container on new release
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
build-image:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repository
13+
uses: actions/checkout@v4
14+
- name: Set up QEMU
15+
uses: docker/setup-qemu-action@v2
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v2
18+
- name: Login to Docker Hub
19+
uses: docker/login-action@v2
20+
with:
21+
username: ${{ secrets.DOCKERHUB_USERNAME }}
22+
password: ${{ secrets.DOCKERHUB_TOKEN }}
23+
- name: Build and push
24+
uses: docker/build-push-action@v4
25+
with:
26+
push: true
27+
tags: scmanjarrez/cvescanner:nodb
28+
platforms: linux/amd64,linux/arm64,linux/arm/v7

.github/workflows/update.yaml

-79
This file was deleted.

.gitignore

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
## Own ignore
2-
temp/
3-
.idea/
4-
pycve/
5-
*.bk
6-
json-viewer/
7-
cve.db
1+
# Custom
82
tmp/
9-
practica/
10-
*pdf
11-
*.json
12-
!product-aliases.json
3+
cve.db
4+
.api
5+
.flake8
136

147
## Default python ignore
158
# Byte-compiled / optimized / DLL files

.gitmodules

-3
This file was deleted.

CVEScannerV2DB

-1
This file was deleted.

Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM str0ke/nmap
2+
RUN apk add --no-cache lua5.4-sql-sqlite3 && ln -s /usr/lib/lua /usr/local/lib/lua
3+
COPY extra /CVEScannerV2/extra
4+
COPY cvescannerv2.nse /CVEScannerV2
5+
WORKDIR /CVEScannerV2
6+
ENTRYPOINT ["nmap", "--script", "cvescannerv2", "-sV"]

0 commit comments

Comments
 (0)