
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
cordova-plugin-hotspot
Advanced tools
A Cordova plugin for managing HotSpot networks on Android with Cordova 3.4.0 / API Level 19
$ cordova plugin add cordova-plugin-hotspot
cordova.plugins.hotspot.isAvailable(
function (isAvailable) {
// alert('Service is not available') unless isAvailable;
}
);
cordova.plugins.hotspot.isConnectedToInternet(
function () {
// is connected
},function () {
// is not connected
}
);
cordova.plugins.hotspot.getConnectionInfo(
function (result) {
// SSID
// BSSID
// linkSpeed
// IPAddress
},function () {
// error
}
);
cordova.plugins.hotspot.getNetConfig(
function (result) {
// deviceIPAddress
// deviceMacAddress
// gatewayIPAddress
// gatewayMacAddress
},function () {
// error
}
);
cordova.plugins.hotspot.pingHost(ip,
function (result) {
if(result){
// host is up
} else {
// host is not responsing
}
},function () {
// error
}
);
cordova.plugins.hotspot.getMacAddressOfHost(ip,
function (result) {
if(result){
// MAC address of host
} else {
// host is not responsing
}
},function () {
// error
}
);
cordova.plugins.hotspot.isDnsLive(ip,
function (live) {
if(live){
// DNS is live
} else {
// DNS is not live
}
},function () {
// error
}
);
cordova.plugins.hotspot.isPortLive(ip,
function (live) {
if(live){
// DNS is live
} else {
// DNS is not live
}
},function () {
// error
}
);
cordova.plugins.hotspot.isRooted(
function (rooted) {
if(rooted){
// device is rooted
} else {
// device is not rooted
}
},function () {
// error
}
);
cordova.plugins.hotspot.createHotspot(ssid, mode, password,
function () {
// Hotspot is created
},function () {
// Error
}
);
cordova.plugins.hotspot.startHotspot(
function () {
// Hotspot is started
},function () {
// Error
}
);
cordova.plugins.hotspot.configureHotspot(ssid, mode, password,
function () {
// Hotspot is configured
},function () {
// Error
}
);
cordova.plugins.hotspot.stopHotspot(
function () {
// Hotspot is disabled
},function () {
// Error
}
);
cordova.plugins.hotspot.isHotspotEnabled(
function () {
// Hotspot is on
},function () {
// Hotspot is off
}
);
cordova.plugins.hotspot.getAllHotspotDevices(
function (devices) {
// array of JSON objects:
// -> ip
// -> mac
},function (err) {
// error
}
);
cordova.plugins.hotspot.isWifiSupported(
function () {
// wifi is on
},function () {
// wifi is off
}
);
cordova.plugins.hotspot.isWifiOn(
function () {
// wifi is on
},function () {
// wifi is off
}
);
cordova.plugins.hotspot.toggleWifi(
function (isActive) {
// wifi is on
},function (err) {
// error
}
);
cordova.plugins.hotspot.connectToHotspot(ssid, password,
function () {
// connected
},function () {
// not connected
}
);
cordova.plugins.hotspot.isConnectedToInternetViaWifi(
function () {
// is connected
},function () {
// is not connected
}
);
cordova.plugins.hotspot.isWifiDirectSupported(
function () {
// wifi is on
},function () {
// wifi is off
}
);
cordova.plugins.hotspot.addWifiNetwork(ssid, mode, password,
function () {
// wifi is added
},function (err) {
// error
}
);
cordova.plugins.hotspot.removeWifiNetwork(ssid,
function () {
// wifi is deleted
},function (err) {
// error
}
);
cordova.plugins.hotspot.startPeriodicallyScan(interval, duration,
function () {
// success
},function (err) {
// error
}
);
cordova.plugins.hotspot.scanWifi(
function (listOfNetworks) {
// array of results
},function (err) {
// error
}
);
cordova.plugins.hotspot.scanWifiByLevel(
function (listOfNetworks) {
// array of results
},function (err) {
// error
}
);
cordova.plugins.hotspot.stopPeriodicallyScan(
function () {
// success
},function (err) {
// error
}
);
0.6.5 (2016-01-24)
<a name="0.6.3"></a>
FAQs
Cordova WiFi Hotspot Plugin
The npm package cordova-plugin-hotspot receives a total of 99 weekly downloads. As such, cordova-plugin-hotspot popularity was classified as not popular.
We found that cordova-plugin-hotspot 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.