{"id":2385,"date":"2019-05-07T19:28:12","date_gmt":"2019-05-07T10:28:12","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=2385"},"modified":"2019-05-07T19:51:55","modified_gmt":"2019-05-07T10:51:55","slug":"try-proxychains-ng-to-make-proxy-usable-in-various-programs","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2019\/05\/07\/try-proxychains-ng-to-make-proxy-usable-in-various-programs\/","title":{"rendered":"\u8272\u3005\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3067 proxy \u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b proxychains-ng \u3092\u8a66\u3059"},"content":{"rendered":"<p>proxychains-ng \u3068\u3044\u3046\u3082\u306e\u3092\u898b\u304b\u3051\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u95a2\u9023\u306e\u95a2\u6570\u3092\u30d5\u30c3\u30af\u3057\u3066\uff0cSOCKS 4a, 5, HTTP proxy \u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\uff0e<br \/>\ntorsocks\u7684\u306a\u611f\u3058\uff0e<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/rofl0r\/proxychains-ng\">rofl0r\/proxychains-ng: proxychains ng (new generation) &#8211; a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks\/http proxies. continuation of the unmaintained proxychains project. the sf.net page is currently not updated, use releases from github release page instead.<\/a><\/li>\n<\/ul>\n<p>\u3068\u308a\u3042\u3048\u305a\u3053\u3093\u306a\u611f\u3058\u3067\u52d5\u304d\u307e\u3057\u305f<\/p>\n<pre><code>$ git clone https:\/\/github.com\/rofl0r\/proxychains-ng\r\n$ cd proxychains-ng\r\n$ .\/configure &amp;&amp; make\r\n<\/code><\/pre>\n<p>src\/proxychains.conf\u306btor\u306e\u8a2d\u5b9a\u304c\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3068\u308a\u3042\u3048\u305a\u305d\u308c\u3067\u52d5\u304b\u3057\u307e\u3059\uff0e(tor daemon \u304c\u52d5\u3044\u3066\u3044\u308b\u524d\u63d0)<br \/>\n1\u56de\u76ee\u306ftimeout\u306b\uff0c2\u56de\u76ee\u306f\u6210\u529f\uff0e<\/p>\n<pre><code>$ .\/proxychains4 -f src\/proxychains.conf curl ifconfig.me\/ip\r\n  :\r\n[proxychains] Strict chain  ...  127.0.0.1:9050  ...  ifconfig.me:80 &lt;--socket error or timeout!\r\ncurl: (7) Couldn't connect to server\r\n<\/code><\/pre>\n<pre><code>$ .\/proxychains4 -f src\/proxychains.conf curl ifconfig.me\/ip\r\n  :\r\n[proxychains] Strict chain  ...  127.0.0.1:9050  ...  ifconfig.me:80  ...  OK\r\n158.69.192.239\r\n<\/code><\/pre>\n<p>torsocks\u3067\u306f\u8d77\u52d5\u3057\u306a\u3044firefox \u3082\u8d77\u52d5\u3057\u305f\uff0e<\/p>\n<pre><code>$ .\/proxychains4 -f src\/proxychains.conf firefox\r\n<\/code><\/pre>\n<p>Debian package \u306b\u3082 proxychains4 \u3068\u3044\u3046\u540d\u524d\u3067\u3042\u3063\u305f\uff0e\u3053\u3063\u3061\u306e\u307b\u3046\u304c\u697d\u3067\u3059\u306d\uff0e<\/p>\n<pre><code>$ apt show proxychains4\r\nPackage: proxychains4\r\nVersion: 4.13-4\r\nPriority: optional\r\nSection: net\r\nSource: proxychains-ng\r\nMaintainer: Boyuan Yang &lt;byang@debian.org&gt;\r\nInstalled-Size: 45.1 kB\r\nProvides: proxychains, proxychains-ng\r\nDepends: libproxychains4 (= 4.13-4), libc6 (&gt;= 2.4)\r\nBreaks: proxychains (&lt;&lt; 3.1-8)\r\nReplaces: proxychains\r\nHomepage: https:\/\/github.com\/rofl0r\/proxychains-ng\r\nDownload-Size: 14.1 kB\r\nAPT-Sources: http:\/\/ftp.jp.debian.org\/debian sid\/main amd64 Packages\r\nDescription: redirect connections through socks\/http proxies (proxychains-ng)\r\n Proxychains is a UNIX program, that hooks network-related libc functions\r\n in dynamically linked programs via a preloaded DLL (dlsym(), LD_PRELOAD)\r\n and redirects the connections through SOCKS4a\/5 or HTTP proxies.\r\n It supports TCP only (no UDP\/ICMP etc).\r\n .\r\n This project, proxychains-ng, is the continuation of the unmaintained\r\n proxychains project (known as proxychains package in Debian).\r\n$ sudo apt install proxychains4\r\n$ $ proxychains4 curl ifconfig.me\/ip\r\n[proxychains] config file found: \/etc\/proxychains4.conf\r\n[proxychains] preloading \/usr\/lib\/x86_64-linux-gnu\/libproxychains.so.4\r\n[proxychains] DLL init: proxychains-ng 4.13\r\n[proxychains] Strict chain  ...  127.0.0.1:9050  ...  ifconfig.me:80  ...  OK\r\n94.230.208.147\r\n<\/code><\/pre>\n<h2>\u74b0\u5883<\/h2>\n<pre><code>$ lsb_release -dr\r\nDescription:    Debian GNU\/Linux 10 (buster)\r\nRelease:        10\r\n$ uname -m\r\nx86_64\r\n<\/code><\/pre>\n<p><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;language=ja_JP&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B07QHHSPHW&#038;linkId=49e5ac6238dd3fa30aea124896edcd6c\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;language=ja_JP&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B07PZN49RW&#038;linkId=35e968d93c0e2b5a88de8ff9eb1f3a62\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;language=ja_JP&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B00TQMFOCW&#038;linkId=57b47e74fdbc5a2d6ffad1a03a041c0a\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>proxychains-ng \u3068\u3044\u3046\u3082\u306e\u3092\u898b\u304b\u3051\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u95a2\u9023\u306e\u95a2\u6570\u3092\u30d5\u30c3\u30af\u3057\u3066\uff0cSOCKS 4a, 5, HTTP proxy \u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\uff0e torsocks\u7684\u306a\u611f\u3058\uff0e rofl0r [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[7,6,199],"tags":[461],"class_list":["post-2385","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-proxy"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=2385"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2385\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=2385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=2385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=2385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}