~/forbannet/blog~socks5-proxy-server-for-the-…
now compiling: io_uring branch, --releaselatest push: e8af13c → main · 12 min agoreading: "What Every Programmer Should Know About Memory" — Drepper, 2007currently playing with: ftrace + perf for syscall latencyopen PRs: 3 · issues triaged today: 14now compiling: io_uring branch, --releaselatest push: e8af13c → main · 12 min agoreading: "What Every Programmer Should Know About Memory" — Drepper, 2007currently playing with: ftrace + perf for syscall latencyopen PRs: 3 · issues triaged today: 14
Techie#5782
Techie#5782guest
//.post.10.misc/random pinned.published
DETOURS.DLL / 0x4C3F / ws2_32::connect()  ws2_32::send()  ws2_32::recv()
55                 PUSH    EBP
8B EC              MOV     EBP, ESP
83 EC 14           SUB     ESP, 14h
E8 25 00 00 00     CALL    DetourTransactionBegin
0F B6 45 08        MOVZX   EAX, BYTE [EBP+8]
KERNELRIOT / reader::post / markdown::render / prism::pending
55                 PUSH    EBP
8B EC              MOV     EBP, ESP
post.0x10misc/random.reader
misc/randomlazy-devsocks

Socks5 Proxy Server For the Lazy

If you ever need a Socks 5 Proxy server, and you need it quick, like, <cl>RIGHT NOW</cl>, I can help you out!

/blog/socks5-proxy-server-for-the-lazy

In a rush?

If you find yourself in need of a Socks 5 Proxy Server for various purposes such as gaming or bypassing region locks, and you happen to have a Linux VPS, this tiny guide will give you two methods to swiftly set it up. I mean, like, RIGHT NOW!

Method 1. Very Unsafe, but works.

ssh -N -D 0.0.0.0:1080 localhost

and bang, you have a working proxy server. But beware, no authentication, nothing, anyone will be able to use it.

If that's good enough for you, you can go stealth mode and run it as a daemon in the background:

ssh -f -N -D 0.0.0.0:1080 localhost

Method 2 - Using 3proxy.

Now, if you want Authentication but you're as lazy as a cat on a sunny windowsill, or just in a hurry, you can try this second solution.

Setting up 3proxy is not so straightforward if you're not used to it, so I wrote this small bash script that does the job for you in a single line.

curl -o 3proxy-install.sh -L https://raw.githubusercontent.com/layer07/3proxy-lazy/main/3proxy-install.sh
chmod +x 3proxy-install.sh
./3proxy-install.sh

Go!

 ██████▓██   ██▓  ██████  ██▓███   █    ██  ███▄    █  ██ ▄█▀
▒██    ▒ ▒██  ██▒▒██    ▒ ▓██░  ██▒ ██  ▓██▒ ██ ▀█   █  ██▄█▒ 
░ ▓██▄    ▒██ ██░░ ▓██▄   ▓██░ ██▓▒▓██  ▒██░▓██  ▀█ ██▒▓███▄░ 
 ▒   ██▒ ░ ▐██▓░  ▒   ██▒▒██▄█▓▒ ▒▓▓█  ░██░▓██▒  ▐▌██▒▓██ █▄ 
▒██████▒▒ ░ ██▒▓░▒██████▒▒▒██▒ ░  ░▒▒█████▓ ▒██░   ▓██░▒██▒ █▄
▒ ▒▓▒ ▒ ░  ██▒▒▒ ▒ ▒▓▒ ▒ ░▒▓▒░ ░  ░░▒▓▒ ▒ ▒ ░ ▒░   ▒ ▒ ▒ ▒▒ ▓▒
░ ░▒  ░ ░▓██ ░▒░ ░ ░▒  ░ ░░▒ ░     ░░▒░ ░ ░ ░ ░░   ░ ▒░░ ░▒ ▒░
░  ░  ░  ▒ ▒ ░░  ░  ░  ░  ░░        ░░░ ░ ░    ░   ░ ░ ░ ░░ ░ 
     ░  ░ ░           ░              ░              ░ ░  ░   
        ░ ░                                                  

Select an option:
1) Install 3proxy
2) Add New User
3) Completely Remove 3proxy
4) Change SOCKS5 Listening Port
5) Exit

This will get you immediately hooked up with a working copy of 3proxy, with username and password auth, running as a service and everything. It'll be listening on port 1080 by default, you can change the port by running the script again. Remember, with great power comes great responsibility... and possibly a few more command line arguments.

This setup is not intended for production use; it's more of a quick-and-dirty hack to get a socks5 proxy server up and running on a disposable VM, such as AWS or Alibaba Cloud. Everything is quite unsafe there, plaintext passwords, etc... But if you have a firewall, you're almost good to go. And if someone can actually go and grab your plaintext passwords (a file in your Linux System) - then I think the least thing you should be concerned is someone using your proxy.

/comments

comments (0)

Markdown supported, fenced code encouraged.

no comments yet — be the first.
// add to the thread
TE
posting as Techie#5782 guest
be excellent. ⇧⏎ for newline.