Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

telnet-client

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telnet-client - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

12

lib/telnet-client.js

@@ -156,3 +156,8 @@ // Node.js Telnet client

if (promptIndex !== -1) {
if (typeof telnetObj.failedLoginPrompt !== 'undefined' && search(stringData, telnetObj.failedLoginPrompt) !== -1) {
telnetObj.telnetState = 'failedlogin'
telnetObj.emit('failedlogin', stringData)
telnetObj.destroy()
}
else if (promptIndex !== -1) {
telnetObj.shellPrompt = stringData.substring(promptIndex)

@@ -173,7 +178,2 @@ telnetObj.telnetState = 'sendcmd'

}
else if (typeof telnetObj.failedLoginPrompt !== 'undefined' && search(stringData, telnetObj.failedLoginPrompt) !== -1) {
telnetObj.telnetState = 'failedlogin'
telnetObj.emit('failedlogin', stringData)
telnetObj.destroy()
}
else return

@@ -180,0 +180,0 @@ }

@@ -8,3 +8,3 @@ {

},
"version": "0.5.0",
"version": "0.6.0",
"main": "./lib/telnet-client.js",

@@ -11,0 +11,0 @@ "engine": "node >= 0.10.29",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc