Quantcast
Channel: 看得透又看得远者prevail.ppt.cc/flUmLx ppt.cc/fqtgqx ppt.cc/fZsXUx ppt.cc/fhWnZx ppt.cc/fnrkVx ppt.cc/f2CBVx
Viewing all articles
Browse latest Browse all 20475

socks-cmd

$
0
0
command line tool to change socks proxy settings on os x system.
socks modify binaries from the pac-cmd project.
A command line tool to change proxy socks settings of operation os x system.
Note - you will need to run make separately on each platform.

Install

gcc -Wall -c -D DARWIN -D AMD64 -x objective-c main.c common.h
gcc -o socks main.o -framework Cocoa -framework SystemConfiguration -framework Security

Usage

socks <on | off><ip><port>
#Notes
  • Mac
Setting socks is an privileged action on Mac OS. sudo or elevate it as below.
There's an additional option to chown itself to root:wheel and add setuid bit.
socks setuid
 
from  https://github.com/sun8911879/socks-cmd
 
相关项目:
https://github.com/getlantern/pac-cmd
https://github.com/getlantern/pac 

Viewing all articles
Browse latest Browse all 20475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>