
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Linux uinput nodejs wrapper
npm install uinput
Say hello BYE
var uinput = require('uinput');
var setup_options = {
EV_KEY : [ uinput.KEY_H, uinput.KEY_E, uinput.KEY_L, uinput.KEY_O,
uinput.KEY_CAPSLOCK, uinput.KEY_B, uinput.KEY_Y, uinput.KEY_SPACE ]
}
uinput.setup(setup_options, function(err, stream) {
if (err) {
throw(err);
}
var create_options = {
name : 'myuinput',
id : {
bustype : uinput.BUS_VIRTUAL,
vendor : 0x1,
product : 0x1,
version : 1
}
};
uinput.create(stream, create_options, function(err) {
if (err) {
throw(err);
}
setTimeout(function() {
uinput.key_event(stream, uinput.KEY_H, function(err) {
if (err) {
throw(err);
}
uinput.key_event(stream, uinput.KEY_E, function(err) {
if (err) {
throw(err);
}
uinput.key_event(stream, uinput.KEY_L, function(err) {
if (err) {
throw(err);
}
uinput.key_event(stream, uinput.KEY_L, function(err) {
if (err) {
throw(err);
}
uinput.key_event(stream, uinput.KEY_O, function(err) {
if (err) {
throw(err);
}
});
});
});
});
});
}, 2000);
setTimeout(function() {
var keys = [ uinput.KEY_SPACE, uinput.KEY_CAPSLOCK, uinput.KEY_B, uinput.KEY_Y, uinput.KEY_E ];
uinput.emit_combo(stream, keys, function(err) {
if (err) throw(err);
});
}, 3000);
});
});
Object
EV_KEY
, EV_ABS
, EV_REL
, etc. and it's an Array
with the different events we want the uinput device to handleFunction
called when the setup operation ends
Error
WritableStream
to the uinput device.It configures the uinput device we are about to create.
WritableStream
Object
. See uinput_user_dev
definition in linux/uinput.h
String
with the name of the deviceObject
Number
Number
Number
Number
Number
Array
of Numbers
of size: uinput.ABS_CNT
Array
of Numbers
of size: uinput.ABS_CNT
Array
of Numbers
of size: uinput.ABS_CNT
Array
of Numbers
of size: uinput.ABS_CNT
Function
called when the creation operation ends
Error
It creates the uinput device.
WritableStream
Number
Number
Number
Function
It sends an event to the uinput device.
WritableStream
Number
Function
Wrapper over send_event to simulate key presses and mouse clicks.
WritableStream
Array with any combination of keys
Function
It sends an event to the uinput device with the combination keys generated.
FAQs
Linux uinput module
The npm package uinput receives a total of 30 weekly downloads. As such, uinput popularity was classified as not popular.
We found that uinput 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.