Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
socket-mobile-controller
Advanced tools
Readme
$ npm install socket-mobile-controller --save-dev
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var socketManager = require('./lib/SocketManager')(io, {
uidMaxNum : 4,
mobileRefPath : 'mobile'
});
/*
- uidMaxNum // max number of sessions, ie. 9999
- mobileRefPath // pathname to distinguish between desktop and mobile
*/
<script src="/socket.io/socket.io.js"></script>
var socket = io.connect('http://localhost:8888');
socket.on('connect', onConnect);
socket.on('message', onMessage);
socket.on('disconnect', onDisconnect);
function onMessage(e)
{
switch(e.message)
{
case "connected":
this.socket.UID = e.uid;
break;
case "device-connected":
console.log(e);
break;
case 'control-change':
console.log('control-change:', e);
break;
}
}
dist
folderMake sure you change the following variables inside the Makefile
Change the paths to your folders and server script on devops/supervisord.conf
Check the Dockerfile
for any changes in folder names or files that you want to include / remove
Once you're ready, you can just run
make docker
Check your Docker configuration and open the URL it's running.
This setup should just run out of the box on a AWS EBS setup with Docker.
Have fun!
@Thanks to grudelsud for his big patience with me =)
FAQs
wrapper for socket.io mobile controller
The npm package socket-mobile-controller receives a total of 19 weekly downloads. As such, socket-mobile-controller popularity was classified as not popular.
We found that socket-mobile-controller 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.