Skip to content

Authenticated scan via secret file not working #5262

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

You must be logged in to vote

@Lebotek , you were almost correct but here are some things you missed in template

dynamic:
  - template: login.yaml
    variables:
      - key: username  # <- its `key` and not `name`
        value: admin
      - key: password  # <- its `key` and not `name`
        value: password
    type: cookie
    domains:
      - localhost:4280
    input: http://localhost:80 # <- specify input where auth templates should be run ( specify here or make template a self-contained one)
    cookies:
      - raw: "{{session-cookie}}"
id: test-login

info:
  name: DVWA Login
  author: lebotek
  severity: info
  description: |
    Login template for testing.
  tags: test,login

requests:
  - raw:
      - |

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Lebotek
Comment options

Answer selected by tarunKoyalwar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
2 participants
Converted from issue

This discussion was converted from issue #5258 on June 05, 2024 14:53.