mirror of https://github.com/OWASP/Nettacker.git
sync docker and move results to .data
This commit is contained in:
parent
5a6a49c98a
commit
c013ba62d0
|
|
@ -17,6 +17,7 @@ logs.txt
|
|||
*.log
|
||||
results.*
|
||||
.owasp-nettacker*
|
||||
.data*
|
||||
*.html
|
||||
*.htm
|
||||
*.DS_Store
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ OWASP Nettacker API files are stored in here.
|
|||
* `engine.py` is entry point of API and main functions
|
||||
* `api_core.py` has core functions
|
||||
* `__start_scan.py` run new scans
|
||||
* `database.sqlite3` an empty API database for sample, its copy to `~/.owasp-nettacker/database.sqlite3` and stores data i there.
|
||||
* `database.sqlite3` an empty API database for sample, its copy to `./.data/database.sqlite3` and stores data i there.
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
import random
|
||||
import string
|
||||
import os
|
||||
import sys
|
||||
import inspect
|
||||
import api
|
||||
from core._time import now
|
||||
|
|
@ -17,9 +18,9 @@ def _paths():
|
|||
a JSON contain the working, tmp and results path
|
||||
"""
|
||||
return {
|
||||
"home_path": os.path.expanduser('~/.owasp-nettacker'),
|
||||
"tmp_path": os.path.expanduser('~/.owasp-nettacker/tmp'),
|
||||
"results_path": os.path.expanduser('~/.owasp-nettacker/results')
|
||||
"home_path": os.path.join(sys.path[0], '.data'),
|
||||
"tmp_path": os.path.join(sys.path[0], '.data/tmp'),
|
||||
"results_path": os.path.join(sys.path[0], '.data/results')
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
import random
|
||||
import string
|
||||
import os
|
||||
import sys
|
||||
import inspect
|
||||
import api
|
||||
from core._time import now
|
||||
|
|
@ -17,9 +18,9 @@ def default_paths():
|
|||
a JSON contain the working, tmp and results path
|
||||
"""
|
||||
return {
|
||||
"home_path": os.path.expanduser('~/.owasp-nettacker'),
|
||||
"tmp_path": os.path.expanduser('~/.owasp-nettacker/tmp'),
|
||||
"results_path": os.path.expanduser('~/.owasp-nettacker/results')
|
||||
"home_path": os.path.join(sys.path[0], '.data'),
|
||||
"tmp_path": os.path.join(sys.path[0], '.data/tmp'),
|
||||
"results_path": os.path.join(sys.path[0], '.data/results')
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@ services:
|
|||
ports:
|
||||
- 5000:5000
|
||||
volumes:
|
||||
- ./.owasp-nettacker:/root/.owasp-nettacker
|
||||
- ./:/usr/src/owaspnettacker
|
||||
|
|
|
|||
Loading…
Reference in New Issue