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.
appnet.io depends on node-httpp, please build it from repo node-httpp
install appnet.io module
npm config set strict-ssl false -g
npm i npm@2.15.9 -g
npm i appnet.io
setup your own AppNet.io backend controller services refer to AppNet.io-controller
1. create AppNet client
var WEBPP = require('appnet.io');
var nmcln = new WEBPP({
usrinfo: {domain: '51dese.com', usrkey: 'dese'}, // fill usrkey. And, 51dese.com is only useful domain by now
});
nmcln.on('ready', function(){
console.log('appnet.io ready with vURL:'+nmcln.vurl);
// ...
});
2. hook node.js web server in peer. Websocket server is supported with wspp module as well. This is an express App example. file peerweb.js.
var express = require('express');
var WebSocket = require('wspp');
var WebSocketServer = WebSocket.Server;
var WEBPP = require('appnet.io');
var nmcln = new WEBPP({
usrinfo: {domain: '51dese.com', usrkey: 'dese'}, // fill your usrkey. And, 51dese.com is only useful domain by now
});
nmcln.on('ready', function(){
// 2.1
// create your express App
var app = express();
app.use(express.directory(__dirname + '/public'));
app.use(express.static(__dirname + '/public'));
app.use(function(req, res){
res.end('invalid path');
});
// hook app on business server
nmcln.bsrv.srv.on('request', app);
console.log('Now access your web server via URL:'+nmcln.vurl);
// 2.2
// create your websocket server
var wss = new WebSocketServer({httpp: true, server: nmcln.bsrv.srv});
wss.on('connection', function(client){
console.log('new ws connection');
});
console.log('Now connect to your websocket server via URL:'+nmcln.vurl);
});
3. launch web server by node-httpp nodejs binary like bin/win32/node.exe peerweb.js in Windows32 machine.
4. STUN/TURN session setup case, please refer to demos/clnt.js
Look on demos/
(The MIT License)
Copyright (c) 2012-present Tom Zhou(appnet.link@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
AppNet name-client library for node.js
The npm package appnet.io receives a total of 5 weekly downloads. As such, appnet.io popularity was classified as not popular.
We found that appnet.io 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.