fgssfgss / socks_proxy Goto Github PK
View Code? Open in Web Editor NEWsocks5 proxy server in C
License: The Unlicense
socks5 proxy server in C
License: The Unlicense
So I've mounted the proxy on port 1080,
Great tool by the way, then on requesting Google,
curl --ipv4 --socks5 127.0.0.1:1080 https://www.google.com --verbose
I've got:
* Trying 127.0.0.1:1080...
* SOCKS5 connect to IPv6 2800:3f0:4005:407::2004:443 (locally resolved)
* Failed to receive SOCKS5 connect request ack.
* Closing connection 0
curl: (97) Failed to receive SOCKS5 connect request ack.
Does anyone have any clue?
prebuilt binary: main.com.gz
supported: Linux, NetBSD, FreeBSD, OpenBSD, Mac OS X, Windows
2,19d1
< #include <sys/types.h>
< #include <stdio.h>
< #include <stdarg.h>
< #include <time.h>
< #include <errno.h>
< #include <unistd.h>
< #include <signal.h>
< #include <stdlib.h>
< #include <stdint.h>
< #include <string.h>
< #include <sys/socket.h>
< #include <sys/fcntl.h>
< #include <sys/stat.h>
< #include <netdb.h>
< #include <sys/select.h>
< #include <arpa/inet.h>
< #include <netinet/tcp.h>
< #include <pthread.h>
110c92,93
< buf += nread;
---
> char* buf_c = (char*)buf;
> buf_c += nread;
130c113,114
< buf += nwrite;
---
> char* buf_c = (char*)buf;
> buf_c += nwrite;
Just want to say sank you!
Segmentation fault, if the domain name isn't null-terminated string (SOCKS4a protocol).
#!/bin/python3
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
s.connect(('127.0.0.1', 1080))
s.send(b'\x04\x01\x00\x00\x00\x00\x00\x01\x00')
for i in range(256):
s.send(b'\xFF')
Hello ๐
I run a security community that finds and fixes vulnerabilities in OSS. A researcher (@acquykhud) has found a potential issue, which I would be eager to share with you.
Could you add a SECURITY.md
file with an e-mail address for me to send further details to? GitHub recommends a security policy to ensure issues are responsibly disclosed, and it would help direct researchers in the future.
Looking forward to hearing from you ๐
(cc @huntr-helper)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.