Skip to content

how to pass param to javascript with extract from http #4642

Answered by tarunKoyalwar
anquanscan asked this question in Q&A
Discussion options

You must be logged in to vote

@anquanscan , here's the final template with changes and explaination

id: laravel-debug-error-dbpass

info:
  name: laravel-debug-error-dbpass
  author: laravel-debug-error-dbpass
  severity: high

# extracted values are directly available in subsequent requests no need to use `set(var,varValue)` 
flow: http() & javascript()

http:
  - raw:
      - |
        PUT /index.php HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        internal: true    # <- this needs to be added to avoid printing this result in cli
        dsl:
          - contains_all(body,"DB_USERNAME","DB_PASSWORD")

# you need to use `body` and not `body_1` because request condition is only available if…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by olearycrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Example-Template Useful Example Templates
3 participants