🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@jovercao/expect

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jovercao/expect

该工具支持实现命令行自动交互功能

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

expect

该工具支持实现命令行自动交互功能

使用方式如下:

expect "
spawn /your/path/to/ssh root@host  # 启动命令
await '^.*password:$' # 等待进程输出,参数为正则表达式匹配
send 'root password\r' # 发送密码,注意\r为回车符,需要主动发送
interact # 恢复用户控制
"

FAQs

Package last updated on 13 Jan 2022

Did you know?

Socket

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.

Install

Related posts