mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 05:05:23 +00:00
example
This commit is contained in:
parent
663a8e9d49
commit
68605c210b
28
cmd/nuclei/rsync.yaml
Normal file
28
cmd/nuclei/rsync.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
id: rsync-list-shares
|
||||
|
||||
info:
|
||||
name: Rsync Basic Auth - Detect
|
||||
author: ciccio
|
||||
severity: info
|
||||
|
||||
javascript:
|
||||
- code: |
|
||||
const rsync = require('nuclei/rsync');
|
||||
const client = new rsync.RsyncClient();
|
||||
const moduleResponse = client.ListModules(Host, Port, Username, Password);
|
||||
log(to_json(moduleResponse));
|
||||
for (const module of moduleResponse.Modules) {
|
||||
const fileResponse = client.ListFilesInModule(Host, Port, Username, Password, module);
|
||||
log(to_json(fileResponse));
|
||||
}
|
||||
|
||||
args:
|
||||
Host: "{{Host}}"
|
||||
Port: "873"
|
||||
Username: "{{Username}}"
|
||||
Password: "{{Password}}"
|
||||
|
||||
matchers:
|
||||
- type: dsl
|
||||
dsl:
|
||||
- "success == true"
|
||||
Loading…
x
Reference in New Issue
Block a user