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

Commit

Permalink
Release v1.0.1 (#10)
Browse files Browse the repository at this point in the history
Release v1.0.1
  • Loading branch information
J12934 committed Aug 5, 2019
2 parents d6beaa7 + 9b19827 commit 0e4e630
Show file tree
Hide file tree
Showing 10 changed files with 149 additions and 251 deletions.
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. macOS 12]
- Browser [e.g. chrome, safari]
- Box-Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
20 changes: 20 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name-template: 'v$NEXT_PATCH_VERSION'
tag-template: 'v$NEXT_PATCH_VERSION'
categories:
- title: '🚀 Features'
label: 'enhancement'
- title: '🐛 Bug Fixes'
label: 'bug'
- title: '🔧 Maintenance'
label: 'maintenance'
- title: '🧪 Test'
label: 'test'
- title: '🧪 Documentation'
label: 'docs'
- title: '📌 Dependencies'
label: 'dependencies'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
exclude-labels:
- 'skip-changelog'
template: |
$CHANGES
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ruby:latest

WORKDIR /sectools/
COPY Gemfile /sectools

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
# Name of the arachni main folder contained in the .tar.gz
Expand All @@ -10,17 +11,15 @@ ENV ARACHNI_LONG_VERSION ${ARACHNI_LONG_VERSION}

RUN wget ${ARACHNI_DISTRIBUTION} -P /sectools --output-document arachni.tar.gz && \
tar zxvf arachni.tar.gz && \
bundle install && \
mv arachni-${ARACHNI_LONG_VERSION} arachni && \
rm arachni.tar.gz

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

COPY Gemfile src/

RUN bundle install --gemfile=/sectools/src/Gemfile

COPY src/ src/
COPY lib/ lib/

RUN addgroup -system arachni && \
adduser -system arachni && \
Expand Down Expand Up @@ -58,4 +57,4 @@ LABEL org.opencontainers.image.title="secureCodeBox scanner-webapplication-arach
org.opencontainers.image.revision=$COMMIT_ID \
org.opencontainers.image.created=$BUILD_DATE

ENTRYPOINT ["bash","/sectools/src/starter.sh"]
ENTRYPOINT ["bash","./src/starter.sh"]
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ source 'https://rubygems.org'
gem "sinatra"
gem "rest-client"
# gem "arachni"

gem "ruby-scanner-scaffolding", :git => "https://github.com/secureCodeBox/ruby-scanner-scaffolding.git", :tag => "v1.0.0"
53 changes: 53 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
GIT
remote: https://github.com/secureCodeBox/ruby-scanner-scaffolding.git
revision: fff6c92edffb1f55bde432156ffd60c38c034e49
tag: v1.0.0
specs:
ruby-scanner-scaffolding (1.0.0)

GEM
remote: https://rubygems.org/
specs:
domain_name (0.5.20180417)
unf (>= 0.0.5, < 1.0.0)
ffi (1.10.0-x64-mingw32)
http-cookie (1.0.3)
domain_name (~> 0.5)
mime-types (3.2.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2019.0331)
mustermann (1.0.3)
netrc (0.11.0)
rack (2.0.7)
rack-protection (2.0.5)
rack
rest-client (2.0.2)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rest-client (2.0.2-x64-mingw32)
ffi (~> 1.9)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
sinatra (2.0.5)
mustermann (~> 1.0)
rack (~> 2.0)
rack-protection (= 2.0.5)
tilt (~> 2.0)
tilt (2.0.9)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.6)

PLATFORMS
ruby
x64-mingw32

DEPENDENCIES
rest-client
ruby-scanner-scaffolding!
sinatra

BUNDLED WITH
2.0.1
194 changes: 0 additions & 194 deletions lib/camunda_worker.rb

This file was deleted.

17 changes: 15 additions & 2 deletions src/arachni_worker.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'json'

require_relative "../lib/camunda_worker"
require 'rest-client'
require 'ruby-scanner-scaffolding'

require_relative "./arachni_scan"
require_relative "./arachni_configuration"
Expand Down Expand Up @@ -35,4 +35,17 @@ def work(job_id, targets)
scannerType: 'arachni'
}
end

def healthy?
begin
response = RestClient::Request.execute(
method: :get,
url: 'http://127.0.0.1:7331/scans',
timeout: 2
)
response.code == 200
rescue
return false
end
end
end
Loading

0 comments on commit 0e4e630

Please sign in to comment.