Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log req body #656

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

log req body #656

wants to merge 5 commits into from

Conversation

dogancanbakir
Copy link
Member

@dogancanbakir dogancanbakir commented Oct 17, 2024

Proposed changes

Closes #558

$ curl -X POST http://testphp.vulnweb.com/userinfo.php -d 'username=dummy_username&password=dummy_password' --proxy http://127.0.0.1:8888

$ cat proxify_logs.jsonl | jq
{
  "timestamp": "2024-10-17T13:23:30+03:00",
  "url": "http://testphp.vulnweb.com/userinfo.php",
  "request": {
    "header": {
      "Accept": "*/*",
      "Accept-Encoding": "",
      "Connection": "close",
      "Content-Length": "47",
      "Content-Type": "application/x-www-form-urlencoded",
      "User-Agent": "curl/8.6.0",
      "host": "testphp.vulnweb.com",
      "method": "POST",
      "path": "/userinfo.php",
      "scheme": "http"
    },
    "body": "username=dummy_username&password=dummy_password",
    "raw": "POST http://testphp.vulnweb.com/userinfo.php HTTP/1.1\r\nAccept: */*\r\nAccept-Encoding: \r\nConnection: close\r\nContent-Length: 47\r\nContent-Type: application/x-www-form-urlencoded\r\nUser-Agent: curl/8.6.0\r\n\r\n"
  },
  "response": {
    "header": {
      "Content-Type": "text/html; charset=UTF-8",
      "Date": "Thu, 17 Oct 2024 10:23:30 GMT",
      "Location": "login.php",
      "Server": "nginx/1.19.0",
      "X-Powered-By": "PHP/5.6.40-38+ubuntu20.04.1+deb.sury.org+1"
    },
    "raw": "HTTP/1.1 302 Found\r\nTransfer-Encoding: chunked\r\nContent-Type: text/html; charset=UTF-8\r\nDate: Thu, 17 Oct 2024 10:23:30 GMT\r\nLocation: login.php\r\nServer: nginx/1.19.0\r\nX-Powered-By: PHP/5.6.40-38+ubuntu20.04.1+deb.sury.org+1\r\n\r\n"
  }
}

Checklist

  • Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason response is being removed

Screen.Recording.2024-10-17.at.6.56.51.PM.mov

tarunKoyalwar

This comment was marked as outdated.

@tarunKoyalwar tarunKoyalwar self-requested a review October 17, 2024 13:38
@dogancanbakir
Copy link
Member Author

@tarunKoyalwar We don't limit request

@dogancanbakir dogancanbakir linked an issue Oct 30, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proxify doesn't save Request Body in jsonl raw field
3 participants