Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
rn-host-detect
Advanced tools
Get correctly
localhost
on Android emulator for React Native
On Android emulator, if you want to connect any servers of local, you will need run adb reverse
on your terminal. This module made it easier, you can get the localhost IP of host machine directly (10.0.2.2
, Genymotion: 10.0.3.2
).
This was done in the following projects:
That's why you don't need adb reverse
when you're using these modules on Android emulator.
$ npm i rn-host-detect --save-dev
const getHostForRN = require('rn-host-detect')
// '10.0.2.2' or '10.0.3.2' on Android
getHostForRN('localhost')
// '192.168.1.111', only convert localhost (or 127.0.0.1) to host IP
getHostForRN('192.168.1.111')
FAQs
Get correctly localhost on Android emulator for React Native
We found that rn-host-detect 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.