| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/net/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(byte-code "\300\301\302\303\304\305\306\307\310\311& \210\312\313\314\315\316DD\317\320\321%\207" [custom-declare-group socks nil "SOCKS support." :version "22.2" :prefix "socks-" :group processes custom-declare-variable socks-server funcall function #[0 "\300\301\302\303F\207" ["Default server" "socks" 1080 5] 4 #1=""] "Socks server." :type (list (string :format #1# :value "Default server") (string :tag "Server") (integer :tag "Port") (radio-button-choice :tag "SOCKS Version" :format "%t: %v" (const :tag "SOCKS v4 " :format "%t" :value 4) (const :tag "SOCKS v5" :format "%t" :value 5)))] 10)
(defconst socks-version 5)
(defvar socks-debug nil)
(defconst socks-connect-command 1)
(defconst socks-bind-command 2)
(defconst socks-udp-associate-command 3)
(defconst socks-authentication-null 0)
(defconst socks-authentication-failure 255)
(defconst socks-response-success 0)
(defconst socks-response-general-failure 1)
(defconst socks-response-access-denied 2)
(defconst socks-response-network-unreachable 3)
(defconst socks-response-host-unreachable 4)
(defconst socks-response-connection-refused 5)
(defconst socks-response-ttl-expired 6)
(defconst socks-response-cmd-not-supported 7)
(defconst socks-response-address-not-supported 8)
(defvar socks-errors '("Succeeded" "General SOCKS server failure" "Connection not allowed by ruleset" "Network unreachable" "Host unreachable" "Connection refused" "Time-to-live expired" "Command not supported" "Address type not supported"))
(defconst socks-address-type-v4 1)
(defconst socks-address-type-name 3)
(defconst socks-address-type-v6 4)
(defvar socks-timeout 5)
(defvar socks-authentication-methods nil)
(defvar socks-username (user-login-name))
(defvar socks-password nil)
#@25
(fn ID DESC CALLBACK)
(defalias 'socks-register-authentication-method #[771 "\236\211\203
\211B\241\207BBB\211\207" [socks-authentication-methods] 7 (#$ . 1812)])
#@11
(fn ID)
(defalias 'socks-unregister-authentication-method #[257 "\211\236\211\205
\301\"\211\207" [socks-authentication-methods delq] 5 (#$ . 1993)])
(socks-register-authentication-method 0 "No authentication" 'identity)
(defalias 'socks-build-auth-list #[0 "\301C\302C\303\304\305#\306!\"\210\307\310\242\242#\207" [socks-authentication-methods 0 "" mapc make-closure #[257 "\302AA!\205 \301\303\304\301\242@#\240\210\300\211\242T\240\207" [V0 V1 fboundp format "%s%c"] 6 "\n\n(fn X)"] reverse format "%c%s"] 7])
(defconst socks-state-waiting-for-auth 0)
(defconst socks-state-submethod-negotiation 1)
(defconst socks-state-authenticated 2)
(defconst socks-state-waiting 3)
(defconst socks-state-connected 4)
#@23
(fn PROC CUR-STATE)
(defalias 'socks-wait-for-state-change #[514 "\301\302\"U\205 \303!\304>\205 \305\"\210\202 \207" [socks-timeout process-get socks-state process-status (run open) accept-process-output] 5 (#$ . 2724)])
#@20
(fn PROC STRING)
(defalias 'socks-filter #[514 "\306\211\211\307\310\"\204 \311\312\"\210\307\313\"\262U\203P \314\315\307\315\"\211P\211\262 \262#\210G\316W?\205/\314\317\320H#\210\314\315\316\306O#\210\314\313 #\207 U\206/\nU\206/U\203,\314\315\307\315\"\211P\211\262 \262#\210\307\321\"\262\322\267\202*\323\324\"\205/\314\313\f#\210\314\325\326#\210\314\327#\207G\316W?\205/\330\262GW?\205/\320H\211\331U\203\272 \326\262\314\313\f#\210\314\325#\210\314\327#\207G\332W?\205/\333\334H
U\203\346 \332\202 U\203\361 \335\202!U\205G\336W\203\337\202\332HT\262\\\262GW?\205/\314\313\f#\210\314\325\320H#\210\314\327#\207\306\207\fU\207" [socks-state-waiting-for-auth socks-state-submethod-negotiation socks-state-authenticated socks-state-waiting socks-state-connected socks-address-type-v4 nil process-get socks error "socks-filter called on non-SOCKS connection %S" socks-state process-put socks-scratch 2 socks-authtype 1 socks-server-protocol #s(hash-table size 3 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (http 129 4 155 5 208)) string-search "
\n
\n" socks-reply 0 socks-response 8 90 4 6 3 16 5 255 socks-address-type-v6 socks-address-type-name] 11 (#$ . 2962)])
#@79 If non-nil, overwrite `open-network-stream' function with SOCKSified version.
(defvar socks-override-functions nil (#$ . 4258))
(byte-code "\203\n \301\302\303\304#\210\301\207" [socks-override-functions advice-add open-network-stream :around socks--open-network-stream] 4)
#@20
(fn SERVER-INFO)
(defalias 'socks-open-connection #[257 "\212\306\307\310\306A@\3118$)\306\211\312\313\"\210\314\306\"\210\315\316\317#\210\315\320 #\210\315\321\n#\210\315\322\3238#\210\315\324A@#\210\3238\262\211\325=\204\332 \211\326=\204\332 \211\327=\203\332 \330\331\332\333 #\"\210\334 \"\210\335\321\"\262\fU\203{
\203\310 \336\337!\210\202\310 \nU\203\210 \340\341!\210\202\310 \335\321\"\342)\"\211\205\230 \211AA\205\237 A@\312\306\"\210\203\266 \343!\203\266 !\204\306 \344!\210\340\345\206\302 \346#\210\266\315\320*#\210\315\347\350#\210\312\313\"\210\266\203)\207" [socks-override-functions socks-state-waiting-for-auth socks-authentication-failure socks-version socks-authentication-null socks-debug nil open-network-stream "socks" 2 set-process-filter socks-filter set-process-query-on-exit-flag process-put socks t socks-state socks-authtype socks-server-protocol 3 socks-server-name http 4 5 process-send-string format "%c%s" socks-build-auth-list socks-wait-for-state-change process-get message "No authentication necessary" error "No acceptable authentication methods found" assoc fboundp delete-process "Failed to use auth method: %s (%d)" "Unknown" socks-scratch "" socks-authentication-methods socks-state-authenticated] 12 (#$ . 4539) nil])
#@175 Send COMMAND to SOCKS service PROC for proxying ADDRESS and PORT.
When ATYPE indicates an IP, param ADDRESS must be given as raw bytes.
(fn PROC COMMAND ATYPE ADDRESS PORT)
(defalias 'socks-send-command #[1285 "U\204\f U\203 \202# \nU\203 \306\307G#\202# \310\311\"\312\211\313\314\"\2043 \310\315 \"\210\316\317#\210\313\320\"\262\211\321\267\202\226 \306\322\n\232\203U \202Z \310\323 \"#\262\202\233 \324\325\326\"\327\330\"$\331 \332R\262\202\233 \324\333 $\324\325\326\"\327\330\"\"Q\262\202\233 \310\334\"\210\335\"\210\336\"\210\337!\210\313\340\"\206\265 \341\fU\204\316 \342!\210\310\343\313\n\340\"\206\312 \341
8\"\210\207" [socks-address-type-v4 socks-address-type-v6 socks-address-type-name socks-state-waiting socks-response-success socks-errors format "%c%s" error "Unknown address type: %d" nil process-get socks "socks-send-command called on non-SOCKS connection %S" process-put socks-state socks-server-protocol #s(hash-table size 3 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (http 71 4 98 5 123)) "CONNECT %s:%d HTTP/1.0
\nUser-Agent: Emacs/SOCKS v1.0
\n
\n" "Unsupported address type for HTTP: %d" unibyte-string ash -8 logand 255 user-full-name "