Skip to content

Commit ddefd7c

Browse files
committed
more and seperate words for curl and newman custom spider specs
1 parent dd4547b commit ddefd7c

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ docker run --tty --rm --network host --volume $(pwd):/hawk \
147147
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`
148148

149149
`stackhawk-openapi.yml` - scan with OpenAPI configuration
150-
`stackhawk-custom-spider.yml` scan with Custom Discovery using newman
150+
`stackhawk-custom-spider-curl.yml` scan with custom discovery using curl
151+
`stackhawk-custom-spider-newman.yml` scan with custom discovery using newman
151152
`stackhawk-auth-script-form-multi.yml` scripted authentication
152153
`stackhawk-jsv-form-cookie.yml` scan with form authentication and cookie authorization
153154
`stackhawk-jsv-json-token` scan with JSON authentication and token authorization

stackhawk-custom-spider-curl.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
app:
2+
applicationId: ${APP_ID:dacc7d3e-babc-47d2-b040-ab117ab04526}
3+
env: ${APP_ENV:dev}
4+
host: ${APP_HOST:https://localhost:9000}
5+
excludePaths:
6+
- "/logout"
7+
# - "/login-form-multi"
8+
# - "/login-code"
9+
antiCsrfParam: "_csrf"
10+
authentication:
11+
loggedInIndicator: "\\QSign Out\\E"
12+
loggedOutIndicator: ".*Location:.*/login.*"
13+
usernamePassword:
14+
type: FORM
15+
loginPath: /login
16+
loginPagePath: /login
17+
usernameField: username
18+
passwordField: password
19+
scanUsername: "user"
20+
scanPassword: "password"
21+
cookieAuthorization:
22+
cookieNames:
23+
- "JSESSIONID"
24+
testPath:
25+
path: /search
26+
success: "HTTP.*200.*"
27+
hawk:
28+
spider:
29+
base: false
30+
custom:
31+
command: curl -x $HTTP_PROXY -k ${APP_HOST:https://localhost:9000}/login?nuance=true
32+

stackhawk-custom-spider.yml renamed to stackhawk-custom-spider-newman.yml

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

0 commit comments

Comments
 (0)