mirror of https://github.com/OWASP/Nettacker.git
enhacements
This commit is contained in:
parent
796428a997
commit
5398909661
|
@ -57,6 +57,9 @@ jobs:
|
|||
- name: lint check with flake8
|
||||
run: flake8 --extend-exclude '*.txt,*.js,*.md,*.html' --count --select=E9,F63,F7,F82 --show-source
|
||||
|
||||
- name: create .data directory
|
||||
run: mkdir -p .data/results .data/tmp
|
||||
|
||||
- name: Build the code with docker
|
||||
run: docker build . -t nettacker
|
||||
|
||||
|
|
|
@ -8,4 +8,5 @@ RUN cat requirements-apt-get.txt | xargs aptitude install -y
|
|||
RUN pip3 install --upgrade pip
|
||||
RUN pip3 install -r requirements.txt
|
||||
RUN pip3 install -r requirements-dev.txt
|
||||
ENV docker_env=true
|
||||
CMD [ "python3", "./nettacker.py" ]
|
||||
|
|
|
@ -40,7 +40,7 @@ def nettacker_api_config():
|
|||
"""
|
||||
return { # OWASP Nettacker API Default Configuration
|
||||
"start_api_server": False,
|
||||
"api_hostname": "nettacker-api.z3r0d4y.com", # pointed to 127.0.0.1
|
||||
"api_hostname": "0.0.0.0" if os.environ.get("docker_env") == "true" else "nettacker-api.z3r0d4y.com",
|
||||
"api_port": 5000,
|
||||
"api_debug_mode": False,
|
||||
"api_access_key": generate_random_token(32),
|
||||
|
|
|
@ -10,3 +10,5 @@ services:
|
|||
- 5000:5000
|
||||
volumes:
|
||||
- ./:/usr/src/owaspnettacker
|
||||
environment:
|
||||
- docker_env=true
|
||||
|
|
|
@ -219,7 +219,7 @@ API_port_int: API port must be an integer!
|
|||
unknown_ip_input:
|
||||
unknown input type, accepted types are SINGLE_IPv4, RANGE_IPv4,
|
||||
CIDR_IPv4
|
||||
API_key: " * API Key: {0}\n"
|
||||
API_key: " * API is accessible from http://nettacker-api.z3r0d4y.com/ via API Key: {0}\n"
|
||||
ports_int: ports must be integers! (e.g. 80 || 80,1080 || 80,1080-1300,9000,12000-15000)
|
||||
through_API: Through the OWASP Nettacker API
|
||||
API_invalid: invalid API key
|
||||
|
|
Loading…
Reference in New Issue