
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
expect-telnet
Advanced tools
telnet automation through expect-send sequences, like in Tcl.
$ npm install --save expect-telnet
var et = require("expect-telnet");
et("1.2.3.4:23", [
{expect: "Username", send: "username\r"},
{expect: "Password", send: "password\r"},
{expect: "#" , send: "command\r" },
{expect: "#" , out: function(output) {
console.log(output);
}, send: "exit\r"}
], function(err) {
if (err) console.error(err);
});
var et = require("expect-telnet");
et("1.2.3.4:23", [
{expect: "Username", send: "username\r"},
{expect: "Password", send: "password\r"},
{expect: "#" , interact: true }
], {exit: true}, function(err) {
if (err) console.error(err);
});
dest
string : Target host and port separated by a colon.seq
array : Array of expect steps (objects).opts
object : Options object.cb
function: Called when an error happens.expect
string / regexp : String or RegExp to expect.send
string : String to send when expect
is found.out
function: Output function, receives the output since the previous step.interact
boolean : Enter interacive mode with stdin/stdout. There's currently no way out of this mode, so this should be last.timeout
*number: Timeout for connection and expect sequences in milliseconds. Set to infinity
for no timeout.exit
boolean: Whether to exit the process when interacting ends.© silverwind, distributed under BSD licence
FAQs
telnet automation through expect-send sequences, like in Tcl
The npm package expect-telnet receives a total of 941 weekly downloads. As such, expect-telnet popularity was classified as not popular.
We found that expect-telnet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.