Skip to content

-p Referer not working with GET requests #226

Description

@locsucc

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. clone and install the latest version
  2. Run the following command ghauri -r request --level 3 --confirm --delay 2 -v 5 -p Referer --dbs
  3. See error

Expected behavior
ex request file:

GET /search?s= HTTP/1.1
Host: url
Sec-Ch-Ua: "Not-A.Brand";v="24", "Chromium";v="146"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Accept-Language: en-US,en;q=0.9
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://url/*
Accept-Encoding: gzip, deflate, br
Priority: u=0, i
Connection: keep-alive

ghauri does not add payload to referer even with custom injection marker when i use GET request file

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Ubuntu/Windows/MacOS]
  • Ghauri version which is causing the error (should be latest) [e.g. 1.0.1]
  • Type of SQL injection which cause the error: [e.g. boolean/time/error based]
  • Phase where error occur: [e.g. detection/(db(s)/banner/user/table/column/data) exfiltration phase]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions