Skip to content

Commit dd4547b

Browse files
committed
add words for custom spider in javaSpringVulny
1 parent 02cb671 commit dd4547b

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,15 @@ docker run --tty --rm --network host --volume $(pwd):/hawk \
140140
--env APP_ID \
141141
--env AUTH_TOKEN \
142142
stackhawk/hawkscan stackhawk.d/stackhawk.yml stackhawk.d/stackhawk-auth-basic.yml
143-
```
143+
```
144+
145+
### Example Specs
146+
147+
By default HawkScan will run with the `stackhawk.yml` file if it's defined and present, but can instead use named specs such as `hawk scan stackhawk.yml`
148+
149+
`stackhawk-openapi.yml` - scan with OpenAPI configuration
150+
`stackhawk-custom-spider.yml` scan with Custom Discovery using newman
151+
`stackhawk-auth-script-form-multi.yml` scripted authentication
152+
`stackhawk-jsv-form-cookie.yml` scan with form authentication and cookie authorization
153+
`stackhawk-jsv-json-token` scan with JSON authentication and token authorization
154+
`stackhawk-ajax.yml` - scan with the ajax spider

stackhawk-custom-spider.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ hawk:
2929
maxDurationMinutes: 5
3030
base: false
3131
custom:
32-
command: newman run javaspringvulny_postman_collection.json --verbose --global-var baseUrl=${APP_HOST:https://localhost:9000} --ssl-extra-ca-certs $PROXY_CA_CERT
33-
environment:
34-
NODE_TLS_REJECT_UNAUTHORIZED: 0
32+
command: curl -x $HTTP_PROXY
33+
command: newman run javaspringvulny_postman_collection.json --verbose --global-var baseUrl=${APP_HOST:https://localhost:9000} --insecure
34+
logOutputToForeground: true
35+
credentials:
36+
SHOULD_BE_REDACTED: 'my-secret-password'
37+

0 commit comments

Comments
 (0)