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

404 not Found #9

Closed
Imanfeng opened this issue Apr 15, 2020 · 6 comments
Closed

404 not Found #9

Imanfeng opened this issue Apr 15, 2020 · 6 comments

Comments

@Imanfeng
Copy link

I have always encountered some problems. When I access resources that require host configuration, I always get 404, but when I enter docker, I can access resources. Why is it 404?

image

@zt2
Copy link
Owner

zt2 commented Apr 17, 2020

hi,可以给一个能复现的环境和步骤?图里的 care.qiku.com 我所在的环境已经无法访问了

@Imanfeng
Copy link
Author

Imanfeng commented Apr 17, 2020 via email

@zt2
Copy link
Owner

zt2 commented Apr 18, 2020

emm,为了定位问题,你那边可不可以帮我确认下面这几个场景的结果?

  1. 在 docker 外,不使用 SQLi-Hunter 提供的代理情况下,单纯使用 curl 配置 Host 头发出同样的请求的结果
  2. 在 docker 外,使用 SQLi-Hunter 提供的代理情况下,使用 curl 配置 Host 头发出同样请求的结果
  3. 在 docker 内,不使用 SQLi-Hunter 提供的代理情况下,单纯使用 curl 配置 Host 头发出同样的请求的结果
  4. 在 docker 内,使用 SQLi-Hunter 提供的代理情况下,使用 curl 配置 Host 头发出同样请求的结果

多谢

@Imanfeng
Copy link
Author

Imanfeng commented Apr 29, 2020

这四种情况我试了下 都可以访问到,图中域名是个公网资产
我在burp里面走Upstream Proxy Servers的http代理,然后Repeater发包情况是不行的
image

@zt2
Copy link
Owner

zt2 commented Sep 3, 2020

已经找到问题了,造成 Ruby HTTP 代理出现 404 的原因是 URL 不是绝对路径是相对路径,只要手动在 Repeater 里的 URL 前面添加完整 HTTP 路径就行

以 httpbin.org 为例,默认加载到 Repeater 里的请求 URL 为相对路径,BP 原封不动将包发给上游代理:

image

手动添加完整 URL:

image

@Imanfeng
Copy link
Author

Imanfeng commented Sep 4, 2020

好的 thx

@zt2 zt2 closed this as completed Sep 4, 2020
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

No branches or pull requests

2 participants