
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
socks5-proxy-server
Advanced tools
This module provides a SOCKS5 proxy server with optional authentication and support for forwarding requests through an upstream SOCKS5 proxy.
socksv5
socks
net
ipv6
ipv4
npm install socks5-proxy-server
(async () => {
const proxyServer = await app({ port: 1080, user: "test", password: "pass" });
console.log(
`Socks5 server running on localhost:${proxyServer.port}, ${
proxyServer.user && proxyServer.password ? `user:${proxyServer.user}, password:${proxyServer.password}` : "no authentication"
}`
);
})();
(async () => {
const proxyServer = await app({ port: 1080 });
console.log(
`Socks5 server running on localhost:${proxyServer.port}, ${
proxyServer.user && proxyServer.password ? `user:${proxyServer.user}, password:${proxyServer.password}` : "no authentication"
}`
);
})();
(async () => {
const proxyServer = await app({ user: "test", password: "pass" });
console.log(
`Socks5 server running on localhost:${proxyServer.port}, ${
proxyServer.user && proxyServer.password ? `user:${proxyServer.user}, password:${proxyServer.password}` : "no authentication"
}`
);
})();
(async () => {
const proxyServer = await app(
{ port: 1080, user: "test", password: "pass" },
{ hostProxy: "172.31.24.202", portProxy: 2001, userProxy: "gemink", passwordProxy: "proxys" }
);
console.log(
`Socks5 server running on localhost:${proxyServer.port}, ${
proxyServer.user && proxyServer.password ? `user:${proxyServer.user}, password:${proxyServer.password}` : "no authentication"
}`
);
})();
To stop the proxy server, you can simply terminate the process running the script:
CTRL + C
If running as a background process, use:
kill $(lsof -t -i:1080)
Replace 1080
with the actual port if different.
Alternatively, you can stop the server within the script:
proxyServer.server.close(() => {
console.log("Proxy server closed.");
});
process.on('uncaughtException', (err) => {
console.error("Unhandled exception:", err);
});
process.on('unhandledRejection', (reason, promise) => {
console.error("Unhandled rejection:", reason);
});
findFreePort()
Finds an available port.
validateConfig(config)
Validates the user configuration.
validateProxy(proxy)
Validates the proxy settings.
app(config, proxy)
Starts the SOCKS5 proxy server.
{ server: Object, port: number, user: null, password: null }
if successful.{ server: Object, port: number, user: string, password: string }
if successful.{ server: null, port: null, user: null, password: null }
if an error occurs.FAQs
create local socks5
The npm package socks5-proxy-server receives a total of 9 weekly downloads. As such, socks5-proxy-server popularity was classified as not popular.
We found that socks5-proxy-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.