
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
robotjs-combo
Advanced tools
Easy node API to allow for the easy use of key combinations in robot.js
#robotjs-combos
Easy node API to allow for the easy use of key combinations in robot.js
I was trying to do a simple chain of keyboard commands, this one does a quick loop around my workspaces (2X2) in linux using the standard ctrl+alt+arrow
:
$ npm install robotjs-combos
The module takes an array of key combonations executed in order:
robotjs_combo = require('robotjs-combos');
var commands = [["alt","control","right"],
["alt","control","down"],
["alt","control","left"],
["alt","control","up"]]
robotjsCombos(commands,function(){
console.log("around the workspaces!");
},300);
or just a single keypress combination:
//takes a single key combination
var command = ["alt","control","left"]
robotjsCombos(command,function(){
console.log("just left");
},100);
API Spec:
robotjs_combo(command_string,callback,optional_timeout);
The optional timeout is the length of time between presses. I may add other ways to tune this in the future
I was working on a project and wanted a simple API to do complex keypress sequences...here is the above multiple keypress thing i came up with:
robot.keyToggle("alt", 'down');
robot.keyToggle("control", 'down');
setTimeout(function(){
robot.keyTap('right');
setTimeout(function(){
robot.keyTap('down');
setTimeout(function(){
robot.keyTap('left');
setTimeout(function(){
robot.keyTap('up');
setTimeout(function(){
robot.keyToggle("alt", 'up');
robot.keyToggle("control", 'up');
setup()
},300);
},300);
},300);
},300);
},300);
...ugly.
So instead I wrote a quick module that can be used instead
FAQs
Easy node API to allow for the easy use of key combinations in robot.js
The npm package robotjs-combo receives a total of 0 weekly downloads. As such, robotjs-combo popularity was classified as not popular.
We found that robotjs-combo 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.