Update rsync-list-modules.yaml
parent
a6b9cacf29
commit
fdc1b1fc9e
|
@ -1,7 +1,7 @@
|
||||||
id: rsync-list-modules
|
id: rsync-list-modules
|
||||||
|
|
||||||
info:
|
info:
|
||||||
name: Rsync List Modules
|
name: Rsync List Modules - Enumeration
|
||||||
author: pussycat0x
|
author: pussycat0x
|
||||||
severity: low
|
severity: low
|
||||||
description: |
|
description: |
|
||||||
|
@ -17,22 +17,26 @@ info:
|
||||||
javascript:
|
javascript:
|
||||||
- code: |
|
- code: |
|
||||||
const c = require("nuclei/net");
|
const c = require("nuclei/net");
|
||||||
let s = "@RSYNCD: 31.0\n\n"
|
const data = "@RSYNCD: 31.0\n\n"
|
||||||
let conn = c.Open('tcp', `${Host}:${Port}`);
|
const conn = c.Open('tcp', `${Host}:${Port}`);
|
||||||
conn.Send(s);
|
conn.Send(data);
|
||||||
response =(conn.RecvString(1024))
|
response = conn.RecvFullString(1024)
|
||||||
response;
|
const rsyncRegex = /@RSYNCD: EXIT|@RSYNCD: 31.0|@RSYNCD:|@RSYNCD: 30.0/g;
|
||||||
|
const resultString = response.replace(rsyncRegex, "");
|
||||||
|
const whitespaceRegex = /[\s\t\n]+/g;
|
||||||
|
const finalResult = resultString.replace(whitespaceRegex, " ");
|
||||||
|
if (finalResult.trim() === "") {
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
finalResult
|
||||||
|
}
|
||||||
|
|
||||||
args:
|
args:
|
||||||
Host: "{{Host}}"
|
Host: "{{Host}}"
|
||||||
Port: 873
|
Port: 873
|
||||||
|
|
||||||
matchers:
|
|
||||||
- type: word
|
|
||||||
words:
|
|
||||||
- "RSYNCD: "
|
|
||||||
|
|
||||||
extractors:
|
extractors:
|
||||||
- type: regex
|
- type: dsl
|
||||||
regex:
|
dsl:
|
||||||
- '(.*)'
|
- response
|
||||||
|
|
Loading…
Reference in New Issue