s
ProxyChains 3.1 / Linux代理上网软件
http://proxychains.sourceforge.net/
http://120.52.73.44/nchc.dl.sourceforge.net/project/proxychains/proxychains/version%203.1/proxychains-3.1.tar.gz
[root@localhost proxychains-3.1]# ll /opt/soft/proxychains-3.1.tar.gz
-rw-r--r--. 1 root root 327057 Jan 27 21:13 /opt/soft/proxychains-3.1.tar.gz
[root@localhost proxychains-3.1]# /opt/proxychains-3.1/configure
[root@localhost proxychains-3.1]# ./configure
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking target system type... x86_64-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 static flag -static works... no
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating Makefile
config.status: creating proxychains/Makefile
config.status: creating proxychains/docs/Makefile
config.status: creating proxychains/docs/en/Makefile
config.status: creating config.h
config.status: executing default-1 commands
[root@localhost proxychains-3.1]# make
make all-recursive
make[1]: Entering directory `/opt/proxychains-3.1'
Making all in proxychains
make[2]: Entering directory `/opt/proxychains-3.1/proxychains'
Making all in docs
make[3]: Entering directory `/opt/proxychains-3.1/proxychains/docs'
Making all in en
make[4]: Entering directory `/opt/proxychains-3.1/proxychains/docs/en'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/opt/proxychains-3.1/proxychains/docs/en'
make[4]: Entering directory `/opt/proxychains-3.1/proxychains/docs'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/opt/proxychains-3.1/proxychains/docs'
make[3]: Leaving directory `/opt/proxychains-3.1/proxychains/docs'
make[3]: Entering directory `/opt/proxychains-3.1/proxychains'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c libproxychains.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wp,-MD,.deps/libproxychains.pp -c libproxychains.c -fPIC -DPIC -o .libs/libproxychains.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wp,-MD,.deps/libproxychains.pp -c libproxychains.c -o libproxychains.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c core.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wp,-MD,.deps/core.pp -c core.c -fPIC -DPIC -o .libs/core.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wp,-MD,.deps/core.pp -c core.c -o core.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc -g -O2 -o libproxychains.la -rpath //lib -version-info 3:0:0 libproxychains.lo core.lo -ldl
gcc -shared .libs/libproxychains.o .libs/core.o -ldl -Wl,-soname -Wl,libproxychains.so.3 -o .libs/libproxychains.so.3.0.0
(cd .libs && rm -f libproxychains.so.3 && ln -s libproxychains.so.3.0.0 libproxychains.so.3)
(cd .libs && rm -f libproxychains.so && ln -s libproxychains.so.3.0.0 libproxychains.so)
ar cru .libs/libproxychains.a libproxychains.o core.o
ranlib .libs/libproxychains.a
creating libproxychains.la
(cd .libs && rm -f libproxychains.la && ln -s ../libproxychains.la libproxychains.la)
make[3]: Leaving directory `/opt/proxychains-3.1/proxychains'
make[2]: Leaving directory `/opt/proxychains-3.1/proxychains'
make[2]: Entering directory `/opt/proxychains-3.1'
make[2]: Leaving directory `/opt/proxychains-3.1'
make[1]: Leaving directory `/opt/proxychains-3.1'
[root@localhost proxychains-3.1]# make install
Making install in proxychains
make[1]: Entering directory `/opt/proxychains-3.1/proxychains'
Making install in docs
make[2]: Entering directory `/opt/proxychains-3.1/proxychains/docs'
Making install in en
make[3]: Entering directory `/opt/proxychains-3.1/proxychains/docs/en'
make[4]: Entering directory `/opt/proxychains-3.1/proxychains/docs/en'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/opt/proxychains-3.1/proxychains/docs/en'
make[3]: Leaving directory `/opt/proxychains-3.1/proxychains/docs/en'
make[3]: Entering directory `/opt/proxychains-3.1/proxychains/docs'
make[4]: Entering directory `/opt/proxychains-3.1/proxychains/docs'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/opt/proxychains-3.1/proxychains/docs'
make[3]: Leaving directory `/opt/proxychains-3.1/proxychains/docs'
make[2]: Leaving directory `/opt/proxychains-3.1/proxychains/docs'
make[2]: Entering directory `/opt/proxychains-3.1/proxychains'
make[3]: Entering directory `/opt/proxychains-3.1/proxychains'
/bin/sh ../mkinstalldirs //lib
/bin/sh ../libtool --mode=install /usr/bin/install -c libproxychains.la //lib/libproxychains.la
/usr/bin/install -c .libs/libproxychains.so.3.0.0 //lib/libproxychains.so.3.0.0
(cd //lib && { ln -s -f libproxychains.so.3.0.0 libproxychains.so.3 || { rm -f libproxychains.so.3 && ln -s libproxychains.so.3.0.0 libproxychains.so.3; }; })
(cd //lib && { ln -s -f libproxychains.so.3.0.0 libproxychains.so || { rm -f libproxychains.so && ln -s libproxychains.so.3.0.0 libproxychains.so; }; })
/usr/bin/install -c .libs/libproxychains.lai //lib/libproxychains.la
/usr/bin/install -c .libs/libproxychains.a //lib/libproxychains.a
chmod 644 //lib/libproxychains.a
ranlib //lib/libproxychains.a
PATH="$PATH:/sbin" ldconfig -n //lib
----------------------------------------------------------------------
Libraries have been installed in:
//lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ../mkinstalldirs //etc
/usr/bin/install -c -m 644 ././proxychains.conf //etc/./proxychains.conf
/bin/sh ../mkinstalldirs //bin
/usr/bin/install -c ./proxychains //bin/proxychains
/usr/bin/install -c ./proxyresolv //bin/proxyresolv
make[3]: Leaving directory `/opt/proxychains-3.1/proxychains'
make[2]: Leaving directory `/opt/proxychains-3.1/proxychains'
make[1]: Leaving directory `/opt/proxychains-3.1/proxychains'
make[1]: Entering directory `/opt/proxychains-3.1'
make[2]: Entering directory `/opt/proxychains-3.1'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/opt/proxychains-3.1'
make[1]: Leaving directory `/opt/proxychains-3.1'
configure: error: cannot run /bin/sh ./config.sub解决办法
http://blog.csdn.net/hero06206/article/details/7294499
确定已安装
libtool
libtool-ltdl
libtool-ltdl-devel
如果没安装,使用yum install libtool
yum install libtool-ltdl
yum install libtool-ltdl-devel
然后将
/usr/share/libtool/config.sub
/usr/share/libtool/config.gues
复制到你当前要configure目录下
(比如你要装mysql,进入解压后的文件夹进行如下操作:
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess . )
然后./configure --enable-shared --enable-static
proxy
http://hi.baidu.com/ileo/blog/item/9a661b4cfffceefdd62afcf2.html
http://blog.csdn.net/shawnrong/archive/2007/05/15/1610080.aspx
http://wiki.ubuntu.org.cn/Java
http://zhidao.baidu.com/question/42243192.html?fr=qrl&fr2=query&adt=0_89
ubuntu 查看 ip 配置 :终端输入 ifconfig -a 即可。
# for example>>>
# or
ubuntu 取消使用代理更新
lindows@ubuntu:~$ sudo gedit /etc/apt/apt.conf
• |
关于VM虚拟机上运行UBUNTU使用代理的问题! |
• |
Ubuntu7.04 防代理拨号 |
• |
ubuntu 7.10 beta无法通过代理上网 |
• |
如何让我的ubuntu 8.04通过主机windows的ccproxy上网 |
• |
关于Ubuntu804更新源 |
查看同主题问题:ubuntu 代理
http://www.stdio.cn/2007/11/proxy-for-apt-get.html
为apt-get设置HTTP代理
实验室里统一用代理上网,google之后,解决了apt-get的代理问题。以下为转贴:
方法一
这是一种临时的手段,如果您仅仅是暂时需要通过http代理使用apt-get,您可以使用这种方式。
在使用apt-get之前,在终端中输入以下命令(根据您的实际情况替换yourproxyaddress和proxyport)。
export http_proxy=http://yourproxyaddress:proxyport
方法二
这种方法要用到/etc/apt/文件夹下的apt.conf文件。如果您希望apt-get(而不是其他应用程序)一直使用http代理,您可以使用这种方式。
注意: 某些情况下,系统安装过程中没有建立apt配置文件。下面的操作将视情况修改现有的配置文件或者新建配置文件。
sudo gedit /etc/apt/apt.conf
在您的apt.conf文件中加入下面这行(根据你的实际情况替换yourproxyaddress和proxyport)。
Acquire::http::Proxy “http://yourproxyaddress:proxyport”;
保存apt.conf文件。
方法三
这种方法会在您的主目录下的.bashrc文件中添加两行。如果您希望apt-get和其他应用程序如wget等都使用http代理,您可以使用这种方式。
gedit ~/.bashrc
在您的.bashrc文件末尾添加如下内容(根据你的实际情况替换yourproxyaddress和proxyport)。
http_proxy=http://yourproxyaddress:proxyport export http_proxy
保存文件。关闭当前终端,然后打开另一个终端。
使用apt-get update或者任何您想用的网络工具测试代理。我使用firestarter查看活动的网络连接。
如果您为了纠正错误而再次修改了配置文件,记得关闭终端并重新打开,否自新的设置不会生效。
Ubuntu单网卡架设VPN并NAT共享上网办法
http://os.51cto.com/art/200810/91681.htm
服务器使用shorewall作为防火墙,实际上shorewall只是作为iptables的一个配置程序而已,实际上防火墙还是iptables。
首先是建立VPN,使用软件包PPTPD,这样做的好处是方便认证,也支持windows,安全性不如openvpn,但是简单实用。
服务器环境:
OS:ubuntu server 8.04.1 firewall:shorewall IP:192.168.2.100
安装:
sudo apt-get install pptpd |
修改配置文件:/etc/pptpd.conf
修改localip remoteip
localip 192.168.250.1 remoteip 192.168.250.234-238,192.168.250.245 |
这里随便找了个IP段localip相当于拨号后的服务器地址,可以写成本机IP,或者和remoteip的IP段相同的一个IP地址
remoteip是客户机分配的IP段,这里分配了12个IP地址,也就只允许12个机器同时通过VPN连接,再增加就不能分配到IP地址了
修改配置文件:/etc/ppp/chap-secrets
这个文件里面设置登陆用的账号密码等信息
设置格式是:
# client server secret IP addresses abc * 123456 |
第一个是用户名,然后是服务器地址,然后是登陆所用的密码,最后是为客户拨号后分配的IP地址,不指定的话就是系统自动分配。
以上过程之后,咱的PPTPD就配置好了哈
由于服务器采用了shorewall防火墙,需要开放端口1723,47和gre协议
编辑/etc/shorewall/rules
增加:
ACCEPT net $FW gre ACCEPT net $FW tcp 1723 ACCEPT net $FW tcp 47 |
然后重启下shorewall:
开始测试在windows上VPN拨号吧
windows下VPN连接建立方法就不多说了哈
OK,测试VPN可以拨通了,但是还不能通过服务器的网络连接互联网,可能你会发现,除了访问服务器,其他你什么都干不了
下面来做NAT,不过这个地方我也没做得很好,还有点缺陷,希望以后能解决这个问题
拨通VPN后,在服务器上使用ifconfig可以看到多了一个PPP*的网络连接,例如我这里是ppp0
做NAT我也使用shorewall来做
修改/etc/shorewall/interface
增加:
修改/etc/shorewall/zones
增加:
修改/etc/shorewall/masq
增加:
OK,然后重启shorewall
NAT配置好了!!
这里要注意的是ppp0一定要存在,否则shorewall要报错,这个就是shorewall不足的地方了,不够灵活。
如果你不用shorewall 防火墙,直接使用iptables指令进行dnat操作,就不会因为没有ppp0连接而报错了。
|
RedHat 5.5 x86_64 配置公司代理上网后,可使用wget、yum install、yum update等命令更新xxx外网文件
%40为 转义后的 "@"符号,可由firefox输入直接拿到特殊符号的转义码,@就是%40
[root@Loadrunner19 localhost]# export http_proxy=07121038:Sn%4012345@10.19.110.31:8080
[root@Loadrunner19 localhost]# export https_proxy=07121038:Sn%4012345@10.19.110.31:8080
end
相关推荐
官网安装 教程此命令“vcs import src “需要下载的文件
proxychains可以让命令通过指定的proxy访问网络.proxychains-proxychains-4.2.0.tar.gz
About proxychains tool: * It's a proxifier. * Latest version: 3.1 * Dedicated OS: Linux and other Unices. * Allows TCP and DNS tunneling through proxies. * Supports HTTP, SOCKS4 and SOCKS5 proxy ...
教程博客:https://blog.csdn.net/qq_43017750/article/details/107769679 转存源码包仅为帮助无法访问对应网站的网友进行下载,如有侵权请联系删除。
这段代码虽然只是描述了最简单的proxy操作,但它的确是经典,它不仅清晰地描述了客户机/服务器系统的概念,而且几乎包括了Linux网络编程的方方面面,非常适合Linux网络编程的初学者学习。 这段Proxy程序的用法是...
3.1 使 用 V M w a r e W o r k s t a tio n 3.2 攻 击 W o r d P r e s s 和 其 他 应 用 程 序 第 4 章 信 息 收 集 4.1 枚 举 服 务 4.2 测 试 网 络 范 围 4.3 识 别 活 跃 的 主 机 4.4 查 看 打 开 的 端 口 ...
ProxyChains是Linux和其他Unix下的代理工具。 它可以使任何程序通过代理上网, 允许TCP和DNS通过代理隧道, 支持HTTP、 SOCKS4和SOCKS5类型的代理服务器, 并且可配置多个代理。 ProxyChains通过一个用户定义的代理...
ProxyChainsGUI - ProxyChains 的免费图形用户界面。
ProxyChains版本4.3.0自述文件 ProxyChains是UNIX程序,它通过预加载的DLL将网络相关的libc函数挂接到动态链接的程序中,并通过SOCKS4a / 5或HTTP代理重定向连接。 警告 该程序仅适用于动态链接的程序。 而且代理...
例如,如果您需要在无头的Chrome网络浏览器中使用带有身份验证的代理,则此包很有用,因为它不接受诸如http://username:password@proxy.example.com:8080类的代理URL。 使用此库,您可以设置没有任何密码的本地代理...
Codeception-zsh-插件 codeception-zsh-plugin是的zsh插件。 该插件可以安装到oh-my-zsh文件夹中。 oh-my-zsh的安装 在命令行中,转到oh-my-zsh plugins目录: $ take ~ /.oh-my-zsh/custom/plugins ...
同时兼顾到本地VM虚拟机的需求,可以选择走socket代理进行安装,Proxychains-ng也会自动安装,只需做好Proxychains-ng配置即可。开始下载访问下载在网络不佳的情况下通过jsdelivr cdn加速下载wget: wget ...
用法: git clone https://github.com/Jamikun/Viewbot-V1.1cd Viewbot-V1.1service tor startbash viewbot.sh URL安装要求(xdotool,proxychains,tor): apt-get install -y xdotool tor proxychains版权所有...
添加到proxychains.conf:socks4 socks4 127.0.0.1 1080 ssh -D 1080 -i 10.10.110.123/root_ssh root@NIX01 proxychains nmap -sV 172.16.1.0-254 方法2: *如果我可以通过该隧道进行扫描,那将是首选方法 ...
大多数场景下,在不同的云购买一些 ...同时兼顾到本地 VM 虚拟机的需求,可以选择走 socket 代理进行安装部署,Proxychains-ng 也会自动安装,只需做好 Proxychains-ng 配置即可。 https://github.com/ffffffff0x/f8x
proxy-dl 是一个 CLI 程序,它通过 Tor 使用 wget 代理您的下载。 为避免任何 DNS 泄漏,DNS 查询使用 Tor-resolve 进行解析。 要求:安装 Tor; 跑步。 包含 proxychains.conf 文件的代理链。 该文件需要驻留在 /...
1. 如何使用EW做反向Socks5代理 2. 浏览器如何设置Socks5代理访问目标内网Web服务 3. 利用proxychains给终端设置Socks5代理
正向代理 1.选择合适的ew文件(将文件ew_…改为ew.exe,为了在命令行少敲几个字母),上传到边缘服务器 2.边缘服务器输入 ...3此时攻击机3389仍然不能访问,可借助proxychains(kali自带)配置攻击机整台机器的代理
proxychains - 一种工具,它强制任何给定应用程序建立的任何 TCP 连接通过代理,如 TOR 或任何其他 SOCKS4、SOCKS5 或 HTTP(S) 代理。 支持的身份验证类型:SOCKS4/5 为“user/pass”,HTTP 为“basic”。 哈德 3597...
proxychains ng(新一代) - 一种预加载器,它在动态链接的程序中钩住对套接字的调用,并通过一个或多个袜子/http 代理重定向它。 未维护的代理链项目的延续。 sf.net 页面当前未更新,请改用 github 发布页面的发布...