
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
node-socksv5-dns-looukp
Advanced tools
SOCKS protocol version 5 server and client implementations for node.js
SOCKS protocol version 5 server and client implementations for node.js
Tested on
npm install node-socksv5
import {Server, Auth} from "node-socksv5";
const srv = new Server();
srv.listen(1080, 'localhost', () => {
console.log('SOCKS server listening on port 1080');
});
srv.useAuth(Auth.none());
import {Server, Auth} from "node-socksv5";
const srv = new Server();
srv.listen(1080, 'localhost', () => {
console.log('SOCKS server listening on port 1080');
});
srv.useAuth(srv.useAuth(Auth.userPass((username, password) => {
if (username === 'nodejs' && password === 'rules!') {
return Promise.resolve();
} else {
return Promise.reject();
}
}));
import {Server, Auth} from "node-socksv5";
const srv = new Server({}, (info, accept, deny) => {
if (info.destination.port === 80) {
accept();
} else {
deny();
}
});
srv.listen(1080, 'localhost', () => {
console.log('SOCKS server listening on port 1080');
});
srv.useAuth(Auth.none());
import {Server, Auth} from "node-socksv5";
const srv = new Server({}, (info, accept, deny) => {
if (info.destination.port === 80) {
const socket = await accept();
var body = 'Hello ' + info.source.ip + '!\n\nToday is: ' + (new Date());
socket.end([
'HTTP/1.1 200 OK',
'Connection: close',
'Content-Type: text/plain',
'Content-Length: ' + Buffer.byteLength(body),
'',
body
].join('\r\n'));
} else {
accept();
}
});
srv.listen(1080, 'localhost', () => {
console.log('SOCKS server listening on port 1080');
});
srv.useAuth(Auth.none());
import {Client, Auth} from "node-socksv5";
const client = new Client({
proxy: {
host: "127.0.0.1",
port: 1080,
},
destination: {
host: "google.com",
port: 80,
},
auths: [ Auth.none() ],
}, (socket) => {
console.log('>> Connection successful');
socket.write('GET /node.js/rules HTTP/1.0\r\n\r\n');
socket.pipe(process.stdout);
});
FAQs
SOCKS protocol version 5 server and client implementations for node.js
The npm package node-socksv5-dns-looukp receives a total of 0 weekly downloads. As such, node-socksv5-dns-looukp popularity was classified as not popular.
We found that node-socksv5-dns-looukp 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.