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
|
*.log
|
||||||
results.*
|
results.*
|
||||||
.owasp-nettacker*
|
.owasp-nettacker*
|
||||||
|
.data*
|
||||||
*.html
|
*.html
|
||||||
*.htm
|
*.htm
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,4 @@ OWASP Nettacker API files are stored in here.
|
||||||
* `engine.py` is entry point of API and main functions
|
* `engine.py` is entry point of API and main functions
|
||||||
* `api_core.py` has core functions
|
* `api_core.py` has core functions
|
||||||
* `__start_scan.py` run new scans
|
* `__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 random
|
||||||
import string
|
import string
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import inspect
|
import inspect
|
||||||
import api
|
import api
|
||||||
from core._time import now
|
from core._time import now
|
||||||
|
|
@ -17,9 +18,9 @@ def _paths():
|
||||||
a JSON contain the working, tmp and results path
|
a JSON contain the working, tmp and results path
|
||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
"home_path": os.path.expanduser('~/.owasp-nettacker'),
|
"home_path": os.path.join(sys.path[0], '.data'),
|
||||||
"tmp_path": os.path.expanduser('~/.owasp-nettacker/tmp'),
|
"tmp_path": os.path.join(sys.path[0], '.data/tmp'),
|
||||||
"results_path": os.path.expanduser('~/.owasp-nettacker/results')
|
"results_path": os.path.join(sys.path[0], '.data/results')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import inspect
|
import inspect
|
||||||
import api
|
import api
|
||||||
from core._time import now
|
from core._time import now
|
||||||
|
|
@ -17,9 +18,9 @@ def default_paths():
|
||||||
a JSON contain the working, tmp and results path
|
a JSON contain the working, tmp and results path
|
||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
"home_path": os.path.expanduser('~/.owasp-nettacker'),
|
"home_path": os.path.join(sys.path[0], '.data'),
|
||||||
"tmp_path": os.path.expanduser('~/.owasp-nettacker/tmp'),
|
"tmp_path": os.path.join(sys.path[0], '.data/tmp'),
|
||||||
"results_path": os.path.expanduser('~/.owasp-nettacker/results')
|
"results_path": os.path.join(sys.path[0], '.data/results')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5000:5000
|
||||||
volumes:
|
volumes:
|
||||||
- ./.owasp-nettacker:/root/.owasp-nettacker
|
- ./:/usr/src/owaspnettacker
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue