
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.
simple-adb
Advanced tools
This is a module to execute simple commands with ADB
var SimpleADB = require('simple-adb').SimpleADB;
var sadb = new SimpleADB();
sadb.connect('192.168.1.5')
.then(function () {
console.log('connected');
})
.catch(function (err) {
console.log(err);
});
Here is an example on how to reboot your android device via ADB
var SimpleADB = require('simple-adb').SimpleADB;
var sadb = new SimpleADB();
sadb.connect('192.168.1.5')
.then(function () {
sadb.reboot()
.then(function () {
console.log('rebooted');
});
})
.catch(function (err) {
console.log(err);
});
var SimpleADB = require('simple-adb').SimpleADB;
var sadb = new SimpleADB({
logger: null, // optional - if populated, should be a Bunyan instance.
logLevel: 'error' | 'warn' | 'info', //optional, ignored if `logger` is populated
path: '/path/to/adb' //optional, if you have a custom path, this may be required
});
N.B. All methods return a Promise.
var SimpleADB = require('simple-adb').SimpleADB;
var sadb = new SimpleADB();
// to connect to a device (only one device can be connected to at a time)
sadb.connect(ipAddress);
// to disconnect device
sadb.disconnect();
// to reboot device
sadb.reboot();
// to shutdown device
sadb.shutdown();
// to force stop an application
sadb.forceStopApp(packageName);
// to start an application
sadb.startApp(packageName, launchName);
// to restart an application
sadb.restartApp(packageName. launchName);
// to perform any other task with adb
sadb.execAdbCommand(args); //args in an array of augements
// to perform any other shell task with adb
sadb.execAdbShellCommand(args); //args in an array of augements
// copy a file to the android device
sadb.push(fromPath, toPath);
// copy a file from the android device
sadb.pull(toPath, fromPath);
sadb.captureScreenshot(pathToSaveScreenshot); // path is optional, will store to home directory if no path given
Coming soon
Please only edit the contents of the src
directory as on publish this will be compiled into the build
directory.
FAQs
Module to easily use ADB with node.js
The npm package simple-adb receives a total of 10 weekly downloads. As such, simple-adb popularity was classified as not popular.
We found that simple-adb 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.