diff --git a/.gitignore b/.gitignore index adcbda5..adebe60 100644 --- a/.gitignore +++ b/.gitignore @@ -258,3 +258,4 @@ pip-log.txt #Mr Developer .mr.developer.cfg CLAUDE.md +bin/3proxy_crypt diff --git a/README.md b/README.md index 55087a2..36a3182 100644 --- a/README.md +++ b/README.md @@ -287,7 +287,7 @@ TLS proxy (SNI proxy) - sniffs hostname from TLS handshake UDP port mapping. Maps some UDP port on local machine to UDP port on remote machine. Only one user simultaneously can use UDP mapping, so it can't be used for public service in large networks. It's OK to use it to map to DNS server in small network or to map Counter-Strike server for single client (you can use few mappings on different ports for different clients in last case). ### 3proxy_crypt -Program to obtain crypted password for cleartext. Supports both MD5/crypt and NT password. +Program to obtain crypted password for cleartext. Supports both salted and NT password. ```bash 3proxy_crypt password # produces NT password diff --git a/bin/3proxy_crypt b/bin/3proxy_crypt deleted file mode 100644 index 3eb0ef0..0000000 Binary files a/bin/3proxy_crypt and /dev/null differ diff --git a/src/3proxy_crypt.c b/src/3proxy_crypt.c index 2c10716..f52894b 100644 --- a/src/3proxy_crypt.c +++ b/src/3proxy_crypt.c @@ -71,12 +71,13 @@ unsigned char * mycrypt(const unsigned char *pw, const unsigned char *salt, unsi unsigned char *p; const unsigned char *sp; unsigned char final[MD5_SIZE]; - int sl,pl,i; + int sl; unsigned long l; #ifndef WITHMAIN if(salt[0] == '$' && salt[1] == '1' && salt[2] == '$' && (ep = (unsigned char *)strchr((char *)salt+3, '$'))) { MD5_CTX ctx,ctx1; + int pl, i; sp = salt +3; sl = (int)(ep - sp);