Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
capacitor-holy-pipe
Advanced tools
Holy pipe - Provide a flexible way to send signal/call Android function from JS side. (IOS not supported yet)
npm install capacitor-holy-pipe
npx cap sync
import { HolyPipe } from 'capacitor-holy-pipe';
const login = (username, password, rememberPassword) => HolyPipe.echo({
action: 'login',
params: { username, password, rememberPassword }
}, (resp) => {
const loginResult = resp.value.loginResult
console.log('loginResult', loginResult)
});
import com.sfbl.capacitor.holypipe.HolyPipePlugin;
public class MainActivity extends BridgeActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
HolyPipePlugin.actions.put("login", call -> {
JSObject params = call.getObject("params");
String username = params.getString("username");
String password = params.getString("password");
Boolean rememberPassword = params.getBool("rememberPassword");
Boolean result = this.login(username, password, rememberPassword);
JSObject resp = new JSObject();
resp.put("loginResult", result);
call.resolve(resp);
});
}
protected void login(String username, String password, Boolean rememberPassword) {
// ...
return false;
}
}
Param | Type |
---|---|
options | { action: string, params: any } |
Returns: Promise<{ value: any; }>
HolyPipe.on('android-to-js', (params, callback) => { /* do something */ })
HolyPipe.emit('js-to-android', param1, param2, param3, ..., (response) => {});
HolyPipePlugin.emit('android-to-js', param1, param2, ..., (response) -> {});
HolyPipePlugin.on('js-to-android', (param1, param2, ..., callback) -> { /* ... do something */ });
FAQs
Define android handler for specified JS function call
We found that capacitor-holy-pipe 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.