
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.
@1ziton/react-native-scancode
Advanced tools
$ npm install react-native-scancode --save
$ react-native link react-native-scancode
android/app/src/main/java/[...]/MainApplication.java
import com.xiaomo.ScancodePackage;
to the imports at the top of the filenew ScancodePackage()
to the list returned by the getPackages()
methodAppend the following lines to android/settings.gradle
:
include ':react-native-scancode'
project(':react-native-scancode').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-scancode/android')
Insert the following lines inside the dependencies block in android/app/build.gradle
:
compile project(':react-native-scancode')
// TODO: What to do with the module?
import { NativeModules } from "react-native";
const { WmsScanCode } = NativeModules;
//设置扫码选项(当PDA设备能通过广播进行设置的时候可用)
let obj={};
let list=[];
obj['key']='barcode_send_mode';
obj['value']='BROADCAST';
list.push(obj);
WmsScanCode.setBroadcastSetting('com.android.scanner.service_settings',list);
//广播和接收字段(接收的广播名和接收的字段名)
WmsScanCode.getCode('android.intent.action.SCANRESULT','value');
//接收扫描结果
import { DeviceEventEmitter } from "react-native";
componentWillMount() {
if (this.searchListener) {
this.searchListener.remove();
}
this.searchListener = DeviceEventEmitter.addListener("scannerCodeShow",e => {
console.log(e.code)
}
)
}
//退出页面移除监听
componentWillUnmount() {
if (this.searchListener) {
DeviceEventEmitter.removeListener("scannerCodeShow");
this.searchListener.remove();
this.searchListener = null;
}
}
FAQs
## PDA扫描插件
The npm package @1ziton/react-native-scancode receives a total of 1 weekly downloads. As such, @1ziton/react-native-scancode popularity was classified as not popular.
We found that @1ziton/react-native-scancode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.