Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VAT-genscan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MEDINA
Public
VAT-genscan
Commits
0d5a8cef
Commit
0d5a8cef
authored
2 years ago
by
Zitnik, Anze
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit @ MEDINA
parent
96d0b134
No related branches found
No related tags found
No related merge requests found
Pipeline
#82180
failed
2 years ago
Stage: build
Stage: test
Stage: push
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-5
5 additions, 5 deletions
.gitlab-ci.yml
Makefile
+4
-4
4 additions, 4 deletions
Makefile
README.md
+5
-0
5 additions, 0 deletions
README.md
with
14 additions
and
9 deletions
.gitlab-ci.yml
+
5
−
5
View file @
0d5a8cef
...
...
@@ -11,7 +11,7 @@ before_script:
build
:
stage
:
build
script
:
docker build --no-cache -t registry-gitlab.xlab.si/
cyberwiser
/$SERVICE:$VERSION .
script
:
docker build --no-cache -t registry-gitlab.xlab.si/
medina
/$SERVICE:$VERSION .
test
:
stage
:
test
...
...
@@ -20,7 +20,7 @@ test:
-
docker run --rm -d --network=test-genscan --name dvwa vulnerables/web-dvwa
-
echo '{"target":{"url":"http://dvwa/","ip":"dvwa"},"config":{"w3af":{"profile":"fast_scan"},"zap":{"profile":"basic"},"nmap":{"profile":"basic_discovery"}}}' > /tmp/config-genscan.json
-
mkdir /tmp/out
-
docker run --rm --network=test-genscan -v /tmp/config-genscan.json:/root/config.json -v /tmp/out:/root/out registry-gitlab.xlab.si/
cyberwiser
/$SERVICE:$VERSION
-
docker run --rm --network=test-genscan -v /tmp/config-genscan.json:/root/config.json -v /tmp/out:/root/out registry-gitlab.xlab.si/
medina
/$SERVICE:$VERSION
-
cat /tmp/out/cscan-log.txt
-
grep -q "W3af" /tmp/out/genscan-out.json
-
grep -q "OWASP ZAP" /tmp/out/genscan-out.json
...
...
@@ -36,9 +36,9 @@ push:
stage
:
push
script
:
-
docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry-gitlab.xlab.si
-
docker tag registry-gitlab.xlab.si/
cyberwiser
/$SERVICE:$VERSION registry-gitlab.xlab.si/
cyberwiser
/$SERVICE:latest
-
docker push registry-gitlab.xlab.si/
cyberwiser
/$SERVICE:$VERSION
-
docker push registry-gitlab.xlab.si/
cyberwiser
/$SERVICE:latest
-
docker tag registry-gitlab.xlab.si/
medina
/$SERVICE:$VERSION registry-gitlab.xlab.si/
medina
/$SERVICE:latest
-
docker push registry-gitlab.xlab.si/
medina
/$SERVICE:$VERSION
-
docker push registry-gitlab.xlab.si/
medina
/$SERVICE:latest
-
docker logout registry.gitlab.xlab.si
only
:
-
master
This diff is collapsed.
Click to expand it.
Makefile
+
4
−
4
View file @
0d5a8cef
...
...
@@ -8,14 +8,14 @@ VERSION = $(shell grep VERSION MANIFEST | cut -d '=' -f2)
TEST_DIR
=
/tmp/test-
$(
SERVICE
)
-
$(
VERSION
)
-
$(
shell
date
+%s
)
/
build
:
docker build
-t
registry-gitlab.xlab.si/
cyberwiser
/
$(
SERVICE
)
:
$(
VERSION
)
.
docker build
-t
registry-gitlab.xlab.si/
medina
/
$(
SERVICE
)
:
$(
VERSION
)
.
test
:
docker network create test-genscan
docker run
--rm
-d
--network
=
test-genscan
--name
dvwa vulnerables/web-dvwa
mkdir
$(
TEST_DIR
)
echo
'{"target":{"url":"http://dvwa/","ip":"dvwa"},"config":{"w3af":{"profile":"fast_scan"},"zap":{"profile":"basic"},"nmap":{"profile":"basic_discovery"}}}'
>
$(
TEST_DIR
)
config.json
docker run
--rm
--network
=
test-genscan
-v
$(
TEST_DIR
)
config.json:/root/config.json
-v
$(
TEST_DIR
)
:/root/out/ registry-gitlab.xlab.si/
cyberwiser
/
$(
SERVICE
)
:
$(
VERSION
)
docker run
--rm
--network
=
test-genscan
-v
$(
TEST_DIR
)
config.json:/root/config.json
-v
$(
TEST_DIR
)
:/root/out/ registry-gitlab.xlab.si/
medina
/
$(
SERVICE
)
:
$(
VERSION
)
docker
kill
dvwa
docker network
rm
test-genscan
grep
-q
"W3af"
$(
TEST_DIR
)
genscan-out.json
...
...
@@ -24,7 +24,7 @@ test:
start
:
ifdef
OUTPUT_DIR
docker run
-e
TARGET
=
$(
TARGET
)
-v
$(
OUTPUT_DIR
)
:/root/out/ registry-gitlab.xlab.si/
cyberwiser
/
$(
SERVICE
)
:
$(
VERSION
)
docker run
-e
TARGET
=
$(
TARGET
)
-v
$(
OUTPUT_DIR
)
:/root/out/ registry-gitlab.xlab.si/
medina
/
$(
SERVICE
)
:
$(
VERSION
)
else
docker run
-e
TARGET
=
$(
TARGET
)
registry-gitlab.xlab.si/
cyberwiser
/
$(
SERVICE
)
:
$(
VERSION
)
docker run
-e
TARGET
=
$(
TARGET
)
registry-gitlab.xlab.si/
medina
/
$(
SERVICE
)
:
$(
VERSION
)
endif
This diff is collapsed.
Click to expand it.
README.md
+
5
−
0
View file @
0d5a8cef
## Generic suite of scanners for VAT using [cscan] wrapped around [ZAP] and [w3af]
Author: XLAB
---
Currently supports only basic (fast) scans without any configuration.
### Usage:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment