mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-02-15 06:53:48 +08:00
adding telnet login + crypto (#6419)
* adding telnet login + crypto
* smbauth lib porting + ntlm parsing over telnet
* gen lib
* adding telnet test
* adding breakout after max iterations
* fix(utils): broken pkt creation & impl `Create{LN,NT}Response`
Signed-off-by: Dwi Siswanto <git@dw1.io>
* chore(utils): satisfy lints
Signed-off-by: Dwi Siswanto <git@dw1.io>
---------
Signed-off-by: Dwi Siswanto <git@dw1.io>
Co-authored-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
28
integration_tests/protocols/javascript/telnet-auth-test.yaml
Normal file
28
integration_tests/protocols/javascript/telnet-auth-test.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
id: telnet-auth-test
|
||||
|
||||
info:
|
||||
name: Telnet Authentication Test
|
||||
author: pdteam
|
||||
severity: info
|
||||
metadata:
|
||||
shodan-query: port:23
|
||||
|
||||
|
||||
javascript:
|
||||
- code: |
|
||||
var m = require("nuclei/telnet");
|
||||
var c = m.TelnetClient();
|
||||
c.Connect(Host, Port, User, Password);
|
||||
|
||||
args:
|
||||
Host: "{{Host}}"
|
||||
Port: "23"
|
||||
User: "dev"
|
||||
Password: "mysecret"
|
||||
|
||||
matchers:
|
||||
- type: dsl
|
||||
dsl:
|
||||
- "response == true"
|
||||
- "success == true"
|
||||
condition: and
|
||||
Reference in New Issue
Block a user