Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Commit 0e4e630

Browse files
authored
Release v1.0.1 (#10)
Release v1.0.1
2 parents d6beaa7 + 9b19827 commit 0e4e630

File tree

10 files changed

+149
-251
lines changed

10 files changed

+149
-251
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
**Desktop (please complete the following information):**
24+
- OS: [e.g. macOS 12]
25+
- Browser [e.g. chrome, safari]
26+
- Box-Version [e.g. 22]
27+
28+
**Additional context**
29+
Add any other context about the problem here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

.github/release-drafter.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name-template: 'v$NEXT_PATCH_VERSION'
2+
tag-template: 'v$NEXT_PATCH_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
label: 'enhancement'
6+
- title: '🐛 Bug Fixes'
7+
label: 'bug'
8+
- title: '🔧 Maintenance'
9+
label: 'maintenance'
10+
- title: '🧪 Test'
11+
label: 'test'
12+
- title: '🧪 Documentation'
13+
label: 'docs'
14+
- title: '📌 Dependencies'
15+
label: 'dependencies'
16+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
17+
exclude-labels:
18+
- 'skip-changelog'
19+
template: |
20+
$CHANGES

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM ruby:latest
22

33
WORKDIR /sectools/
4+
COPY Gemfile /sectools
45

56
ARG ARACHNI_DISTRIBUTION=https://github.com/Arachni/arachni/releases/download/v1.5.1/arachni-1.5.1-0.5.12-linux-x86_64.tar.gz
67
# Name of the arachni main folder contained in the .tar.gz
@@ -10,17 +11,15 @@ ENV ARACHNI_LONG_VERSION ${ARACHNI_LONG_VERSION}
1011

1112
RUN wget ${ARACHNI_DISTRIBUTION} -P /sectools --output-document arachni.tar.gz && \
1213
tar zxvf arachni.tar.gz && \
14+
bundle install && \
1315
mv arachni-${ARACHNI_LONG_VERSION} arachni && \
1416
rm arachni.tar.gz
1517

1618
HEALTHCHECK --interval=30s --timeout=5s --start-period=120s --retries=3 CMD curl --fail http://localhost:8080/status || exit 1
1719

1820
COPY Gemfile src/
1921

20-
RUN bundle install --gemfile=/sectools/src/Gemfile
21-
2222
COPY src/ src/
23-
COPY lib/ lib/
2423

2524
RUN addgroup -system arachni && \
2625
adduser -system arachni && \
@@ -58,4 +57,4 @@ LABEL org.opencontainers.image.title="secureCodeBox scanner-webapplication-arach
5857
org.opencontainers.image.revision=$COMMIT_ID \
5958
org.opencontainers.image.created=$BUILD_DATE
6059

61-
ENTRYPOINT ["bash","/sectools/src/starter.sh"]
60+
ENTRYPOINT ["bash","./src/starter.sh"]

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ source 'https://rubygems.org'
33
gem "sinatra"
44
gem "rest-client"
55
# gem "arachni"
6+
7+
gem "ruby-scanner-scaffolding", :git => "https://github.com/secureCodeBox/ruby-scanner-scaffolding.git", :tag => "v1.0.0"

Gemfile.lock

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
GIT
2+
remote: https://github.com/secureCodeBox/ruby-scanner-scaffolding.git
3+
revision: fff6c92edffb1f55bde432156ffd60c38c034e49
4+
tag: v1.0.0
5+
specs:
6+
ruby-scanner-scaffolding (1.0.0)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
domain_name (0.5.20180417)
12+
unf (>= 0.0.5, < 1.0.0)
13+
ffi (1.10.0-x64-mingw32)
14+
http-cookie (1.0.3)
15+
domain_name (~> 0.5)
16+
mime-types (3.2.2)
17+
mime-types-data (~> 3.2015)
18+
mime-types-data (3.2019.0331)
19+
mustermann (1.0.3)
20+
netrc (0.11.0)
21+
rack (2.0.7)
22+
rack-protection (2.0.5)
23+
rack
24+
rest-client (2.0.2)
25+
http-cookie (>= 1.0.2, < 2.0)
26+
mime-types (>= 1.16, < 4.0)
27+
netrc (~> 0.8)
28+
rest-client (2.0.2-x64-mingw32)
29+
ffi (~> 1.9)
30+
http-cookie (>= 1.0.2, < 2.0)
31+
mime-types (>= 1.16, < 4.0)
32+
netrc (~> 0.8)
33+
sinatra (2.0.5)
34+
mustermann (~> 1.0)
35+
rack (~> 2.0)
36+
rack-protection (= 2.0.5)
37+
tilt (~> 2.0)
38+
tilt (2.0.9)
39+
unf (0.1.4)
40+
unf_ext
41+
unf_ext (0.0.7.6)
42+
43+
PLATFORMS
44+
ruby
45+
x64-mingw32
46+
47+
DEPENDENCIES
48+
rest-client
49+
ruby-scanner-scaffolding!
50+
sinatra
51+
52+
BUNDLED WITH
53+
2.0.1

lib/camunda_worker.rb

Lines changed: 0 additions & 194 deletions
This file was deleted.

src/arachni_worker.rb

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'json'
2-
3-
require_relative "../lib/camunda_worker"
2+
require 'rest-client'
3+
require 'ruby-scanner-scaffolding'
44

55
require_relative "./arachni_scan"
66
require_relative "./arachni_configuration"
@@ -35,4 +35,17 @@ def work(job_id, targets)
3535
scannerType: 'arachni'
3636
}
3737
end
38+
39+
def healthy?
40+
begin
41+
response = RestClient::Request.execute(
42+
method: :get,
43+
url: 'http://127.0.0.1:7331/scans',
44+
timeout: 2
45+
)
46+
response.code == 200
47+
rescue
48+
return false
49+
end
50+
end
3851
end

0 commit comments

Comments
 (0)