
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
nativescript-lan-scan
Advanced tools
(iOS Only)
This plugin is a wrapper around the iOS MMLanScan library: https://github.com/mavris/MMLanScan
To use this plugin in a NativeScript app:
tns plugin add nativescript-lan-scan
This plugin will scan a local network and return an array of all detected IP and MAC addresses. See the original MMLanScan for more details.
Add the plugin to your NativeScript app
tns plugin add nativescript-lan-scan
Include the plugin in your application. You will need to include a few of the event classes as well if you are using TypeScript - just so TypeScript is happy.
import { LanScan, FoundDeviceEventData, DeviceInfo, PingProgressEvent, PingProgress }
var lanScan = new LanScan();
// Wire up callback events from the Lan Scanner
// Fires whenever a devices is discovered
this._lanScan.on(LanScan.foundNewDeviceEvent, (args: FoundDeviceEventData) => {
// Device info is found on the args.deviceInfo object...
// args.deviceInfo.ipAddress
// args.deviceInfo.macAddress
});
// Fires everytime an address on the subnet is pinged
this._lanScan.on(LanScan.progressPingedEvent, (args: PingProgressEventData) => {
// args.pingProgress.overallHosts - total number hosts that the scanner will ping through
// args.pingProgress.pingedHosts - current number of hosts that have been pinged
});
this._lanScan.on(LanScan.scanningFinishedEvent, (args) => {
// Status: enum...
// 0: Finished
// 1: Stopped
});
// Start the Lan Scanner
lanScan.start();
// If, in the middle of the operation you want to stop the scan
lanScan.stop();
// Get the SSID
// Note that this doesn't work in the simulator,
// it will say "No Wifi Available"
let ssid = lanScan.fetchSSIDInfo();
FAQs
NativeScript wrapper for iOS MMLanScan CocoaPod [BETA]
The npm package nativescript-lan-scan receives a total of 2 weekly downloads. As such, nativescript-lan-scan popularity was classified as not popular.
We found that nativescript-lan-scan demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.