mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 12:18:47 +00:00
Add vanila proxychains 3.1 sources.
This commit is contained in:
commit
4c7262163e
5
AUTHORS
Normal file
5
AUTHORS
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
N3E7CR34TUR3.
|
||||||
|
|
||||||
|
web site: proxychains.sourceforge.net
|
||||||
|
email: netcreature@users.sourceforge.net
|
||||||
|
|
280
COPYING
Normal file
280
COPYING
Normal file
@ -0,0 +1,280 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||||
|
675 Mass Ave, Cambridge, MA 02139, USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Library General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
65
ChangeLog
Normal file
65
ChangeLog
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
ProxyChains version history (public releases)
|
||||||
|
====================
|
||||||
|
|
||||||
|
ver 3.1
|
||||||
|
|
||||||
|
changed:
|
||||||
|
* dns resolver script fix
|
||||||
|
* prototypes in core.h
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
ver 3.0
|
||||||
|
|
||||||
|
added:
|
||||||
|
* new feature - DNS from behind proxy
|
||||||
|
* proxyresolv - stand alone command
|
||||||
|
* proxychains.conf - new option to enable/disable DNS support
|
||||||
|
|
||||||
|
changed:
|
||||||
|
* bugfixes in core lib
|
||||||
|
* fixed strict chain
|
||||||
|
* fixed random chain
|
||||||
|
* output text
|
||||||
|
* autotools fix
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
ver 2.1
|
||||||
|
* bugfuxes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
ver 2.0
|
||||||
|
* major core rewrite
|
||||||
|
* new config options
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
ver 1.8.2
|
||||||
|
* minor bugfixes
|
||||||
|
* improved compilation on FreeBSD & OpenBSD sysems.
|
||||||
|
* improved compilation on Sun Solaris systems .
|
||||||
|
* cross platform (UNIX) issues
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
ver 1.8.0
|
||||||
|
|
||||||
|
added:
|
||||||
|
* Socks5 protocol
|
||||||
|
* Socks4 protocol
|
||||||
|
* HTTP proxy auth basic
|
||||||
|
* Socks4 user auth
|
||||||
|
* Socks5 user/pass auth
|
||||||
|
* more chain options (random, strict, dynamic )
|
||||||
|
* configurable timeout for TCP connect.
|
||||||
|
* configurable timeout for TCP read.
|
||||||
|
* INSTALL file (explains how to install properly)
|
||||||
|
|
||||||
|
changed:
|
||||||
|
* configuration file entries (proxychains.conf)
|
||||||
|
* configuration file lookup
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
ver 0.0.1
|
||||||
|
* TCP calls interception
|
||||||
|
* HTTP CONNECT proxy protocol.
|
13
INSTALL
Normal file
13
INSTALL
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
ProxyChains ver 3.1 Installation
|
||||||
|
=======================
|
||||||
|
|
||||||
|
If you have installed other ver of proxychains "make uninstall" before installing this distribution
|
||||||
|
|
||||||
|
unpack the .tar.gz , 'cd' to distribution directory and
|
||||||
|
run following commands (as root)
|
||||||
|
-------------------------------------
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
-------------------------------------
|
||||||
|
that's all
|
8
Makefile.am
Normal file
8
Makefile.am
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
SUBDIRS = proxychains
|
||||||
|
|
||||||
|
EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README TODO proxychains.lsm
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
|
385
Makefile.in
Normal file
385
Makefile.in
Normal file
@ -0,0 +1,385 @@
|
|||||||
|
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = .
|
||||||
|
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
AR = @AR@
|
||||||
|
AS = @AS@
|
||||||
|
CC = @CC@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
DLLTOOL = @DLLTOOL@
|
||||||
|
ECHO = @ECHO@
|
||||||
|
EGREP = @EGREP@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
F77 = @F77@
|
||||||
|
GCJ = @GCJ@
|
||||||
|
GCJFLAGS = @GCJFLAGS@
|
||||||
|
HAVE_LIB = @HAVE_LIB@
|
||||||
|
LIB = @LIB@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
LTLIB = @LTLIB@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
OBJDUMP = @OBJDUMP@
|
||||||
|
OBJEXT = @OBJEXT@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
RANLIB = @RANLIB@
|
||||||
|
RC = @RC@
|
||||||
|
STRIP = @STRIP@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
|
||||||
|
SUBDIRS = proxychains
|
||||||
|
|
||||||
|
EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README TODO proxychains.lsm
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_HEADER = config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
|
||||||
|
Makefile.am Makefile.in TODO aclocal.m4 config.guess config.h.in \
|
||||||
|
config.sub configure configure.in install-sh ltconfig ltmain.sh missing \
|
||||||
|
mkinstalldirs
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
$(ACLOCAL_M4): configure.in
|
||||||
|
cd $(srcdir) && $(ACLOCAL)
|
||||||
|
|
||||||
|
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
|
||||||
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
|
|
||||||
|
config.h: stamp-h
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f stamp-h; \
|
||||||
|
$(MAKE) stamp-h; \
|
||||||
|
else :; fi
|
||||||
|
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
|
||||||
|
$(SHELL) ./config.status
|
||||||
|
@echo timestamp > stamp-h 2> /dev/null
|
||||||
|
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f $(srcdir)/stamp-h.in; \
|
||||||
|
$(MAKE) $(srcdir)/stamp-h.in; \
|
||||||
|
else :; fi
|
||||||
|
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOHEADER)
|
||||||
|
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
|
||||||
|
|
||||||
|
mostlyclean-hdr:
|
||||||
|
|
||||||
|
clean-hdr:
|
||||||
|
|
||||||
|
distclean-hdr:
|
||||||
|
-rm -f config.h
|
||||||
|
|
||||||
|
maintainer-clean-hdr:
|
||||||
|
|
||||||
|
# This directory's subdirectories are mostly independent; you can cd
|
||||||
|
# into them and run `make' without going through this Makefile.
|
||||||
|
# To change the values of `make' variables: instead of editing Makefiles,
|
||||||
|
# (1) if the variable is set in `config.status', edit `config.status'
|
||||||
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||||
|
# (2) otherwise, pass the desired values on the `make' command line.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
|
all-recursive install-data-recursive install-exec-recursive \
|
||||||
|
installdirs-recursive install-recursive uninstall-recursive \
|
||||||
|
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||||
|
@set fnord $$MAKEFLAGS; amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
dot_seen=yes; \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done; \
|
||||||
|
if test "$$dot_seen" = "no"; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||||
|
fi; test -z "$$fail"
|
||||||
|
|
||||||
|
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||||
|
maintainer-clean-recursive:
|
||||||
|
@set fnord $$MAKEFLAGS; amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
rev="$$subdir $$rev"; \
|
||||||
|
test "$$subdir" != "." || dot_seen=yes; \
|
||||||
|
done; \
|
||||||
|
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
for subdir in $$rev; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done && test -z "$$fail"
|
||||||
|
tags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||||
|
done
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
here=`pwd` && cd $(srcdir) \
|
||||||
|
&& mkid -f$$here/ID $$unique $(LISP)
|
||||||
|
|
||||||
|
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
|
||||||
|
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
|
||||||
|
|
||||||
|
mostlyclean-tags:
|
||||||
|
|
||||||
|
clean-tags:
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID
|
||||||
|
|
||||||
|
maintainer-clean-tags:
|
||||||
|
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
top_distdir = $(distdir)
|
||||||
|
|
||||||
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
|
# it guarantees that the distribution is self-contained by making another
|
||||||
|
# tarfile.
|
||||||
|
distcheck: dist
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
|
||||||
|
mkdir $(distdir)/=build
|
||||||
|
mkdir $(distdir)/=inst
|
||||||
|
dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
||||||
|
cd $(distdir)/=build \
|
||||||
|
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dist
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
@banner="$(distdir).tar.gz is ready for distribution"; \
|
||||||
|
dashes=`echo "$$banner" | sed s/./=/g`; \
|
||||||
|
echo "$$dashes"; \
|
||||||
|
echo "$$banner"; \
|
||||||
|
echo "$$dashes"
|
||||||
|
dist: distdir
|
||||||
|
-chmod -R a+r $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
dist-all: distdir
|
||||||
|
-chmod -R a+r $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
mkdir $(distdir)
|
||||||
|
-chmod 777 $(distdir)
|
||||||
|
here=`cd $(top_builddir) && pwd`; \
|
||||||
|
top_distdir=`cd $(distdir) && pwd`; \
|
||||||
|
distdir=`cd $(distdir) && pwd`; \
|
||||||
|
cd $(top_srcdir) \
|
||||||
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
for subdir in $(SUBDIRS); do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -d $(distdir)/$$subdir \
|
||||||
|
|| mkdir $(distdir)/$$subdir \
|
||||||
|
|| exit 1; \
|
||||||
|
chmod 777 $(distdir)/$$subdir; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
info-am:
|
||||||
|
info: info-recursive
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-recursive
|
||||||
|
check-am: all-am
|
||||||
|
check: check-recursive
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-recursive
|
||||||
|
all-recursive-am: config.h
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||||
|
|
||||||
|
install-exec-am:
|
||||||
|
install-exec: install-exec-recursive
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
install-data: install-data-recursive
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-recursive
|
||||||
|
uninstall-am:
|
||||||
|
uninstall: uninstall-recursive
|
||||||
|
all-am: Makefile config.h
|
||||||
|
all-redirect: all-recursive-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs: installdirs-recursive
|
||||||
|
installdirs-am:
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-recursive
|
||||||
|
|
||||||
|
clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-recursive
|
||||||
|
|
||||||
|
distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
|
||||||
|
-rm -f libtool
|
||||||
|
|
||||||
|
distclean: distclean-recursive
|
||||||
|
-rm -f config.status
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
|
||||||
|
maintainer-clean-generic distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-recursive
|
||||||
|
-rm -f config.status
|
||||||
|
|
||||||
|
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
|
||||||
|
install-data-recursive uninstall-data-recursive install-exec-recursive \
|
||||||
|
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
|
||||||
|
all-recursive check-recursive installcheck-recursive info-recursive \
|
||||||
|
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
|
||||||
|
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||||
|
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
||||||
|
dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
|
||||||
|
install-exec-am install-exec install-data-am install-data install-am \
|
||||||
|
install uninstall-am uninstall all-redirect all-am all installdirs-am \
|
||||||
|
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||||
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
64
README
Normal file
64
README
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
ProxyChains ver 3.1 README
|
||||||
|
======================
|
||||||
|
|
||||||
|
This is Unix version only.
|
||||||
|
|
||||||
|
How to mess with sources - How to Install : read INSTALL !!!!!!
|
||||||
|
|
||||||
|
This program forces any tcp connection made by any given tcp client
|
||||||
|
to follow through proxy (or proxy chain). It is a kind of proxifier.
|
||||||
|
It acts like sockscap / permeo / eborder driver ( intercepts TCP calls )
|
||||||
|
It is FREE.
|
||||||
|
|
||||||
|
This version (3.x) introduces support for DNS resolving through proxy
|
||||||
|
it supports SOCKS4, SOCKS5 and HTTP CONNECT proxy servers.
|
||||||
|
Auth-types: socks - "user/pass" , http - "basic".
|
||||||
|
|
||||||
|
When to use it ?
|
||||||
|
1) When the only way to get "outside" from your LAN is through proxy server.
|
||||||
|
2) To get out from behind restrictive firewall which filters outgoing ports.
|
||||||
|
3) To use two (or more) proxies in chain:
|
||||||
|
like: your_host <--> proxy1 <--> proxy2 <--> target_host
|
||||||
|
4) To "proxify" some program with no proxy support built-in (like telnet)
|
||||||
|
5) Access intranet from outside via proxy.
|
||||||
|
5) To use DNS behind proxy.
|
||||||
|
|
||||||
|
Some cool features:
|
||||||
|
|
||||||
|
* This program can mix different proxy types in the same chain
|
||||||
|
like: your_host <-->socks5 <--> http <--> socks4 <--> target_host
|
||||||
|
* Different chaining options supported
|
||||||
|
random order from the list ( user defined length of chain ).
|
||||||
|
exact order (as they appear in the list )
|
||||||
|
dynamic order (smart exclude dead proxies from chain)
|
||||||
|
* You can use it with any TCP client application, even network scanners
|
||||||
|
yes, yes - you can make portscan via proxy (or chained proxies)
|
||||||
|
for example with Nmap scanner by fyodor (www.insecire.org/nmap).
|
||||||
|
proxychains nmap -sT -PO -p 80 -iR (find some webservers through proxy)
|
||||||
|
* You can use it with servers, like squid, sendmail, or whatever.
|
||||||
|
* DNS resolving through proxy.
|
||||||
|
|
||||||
|
Configuration:
|
||||||
|
proxychains looks for config file in following order:
|
||||||
|
1) ./proxychains.conf
|
||||||
|
2) $(HOME)/.proxychains/proxychains.conf
|
||||||
|
3) /etc/proxychains.conf **
|
||||||
|
|
||||||
|
**see more in /etc/proxychains.conf
|
||||||
|
|
||||||
|
Usage Example:
|
||||||
|
|
||||||
|
bash$ proxychains telnet targethost.com
|
||||||
|
|
||||||
|
in this example it will run telnet through proxy(or chained proxies)
|
||||||
|
specified by proxychains.conf
|
||||||
|
|
||||||
|
Usage Example:
|
||||||
|
|
||||||
|
bash$ proxyresolv targethost.com
|
||||||
|
|
||||||
|
in this example it will resolve targethost.com through proxy(or chained proxies)
|
||||||
|
specified by proxychains.conf
|
||||||
|
|
||||||
|
NOTE:
|
||||||
|
to run suid/sgid programs(like ssh) through proxychains you have to be root
|
7
TODO
Normal file
7
TODO
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
ProxyChains ver 3.1 TODO
|
||||||
|
===================
|
||||||
|
|
||||||
|
stable DNS resolver ....
|
||||||
|
|
||||||
|
|
||||||
|
|
7433
aclocal.m4
vendored
Normal file
7433
aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1495
config.guess
vendored
Executable file
1495
config.guess
vendored
Executable file
File diff suppressed because it is too large
Load Diff
55
config.h.in
Normal file
55
config.h.in
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
/* config.h.in. Generated from configure.in by autoheader. */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||||
|
#undef HAVE_DLFCN_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
|
#undef HAVE_MEMORY_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
|
#undef HAVE_STDINT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
#undef HAVE_STDLIB_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
#undef HAVE_STRINGS_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
|
#undef HAVE_STRING_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||||
|
#undef HAVE_SYS_STAT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||||
|
#undef HAVE_SYS_TYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
#undef HAVE_UNISTD_H
|
||||||
|
|
||||||
|
/* Name of package */
|
||||||
|
#undef PACKAGE
|
||||||
|
|
||||||
|
/* Define to the address where bug reports for this package should be sent. */
|
||||||
|
#undef PACKAGE_BUGREPORT
|
||||||
|
|
||||||
|
/* Define to the full name of this package. */
|
||||||
|
#undef PACKAGE_NAME
|
||||||
|
|
||||||
|
/* Define to the full name and version of this package. */
|
||||||
|
#undef PACKAGE_STRING
|
||||||
|
|
||||||
|
/* Define to the one symbol short name of this package. */
|
||||||
|
#undef PACKAGE_TARNAME
|
||||||
|
|
||||||
|
/* Define to the version of this package. */
|
||||||
|
#undef PACKAGE_VERSION
|
||||||
|
|
||||||
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
|
/* Version number of package */
|
||||||
|
#undef VERSION
|
1627
config.sub
vendored
Executable file
1627
config.sub
vendored
Executable file
File diff suppressed because it is too large
Load Diff
32
configure.in
Normal file
32
configure.in
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
dnl without this order in this file, autoconf will not work!
|
||||||
|
dnl the argument is a source file out of your sources. But
|
||||||
|
dnl acinclude.m4 makes the job for all programs ;-)
|
||||||
|
AC_INIT(proxychains,3.1)
|
||||||
|
|
||||||
|
dnl enable the following if you want to use autoconf/automake
|
||||||
|
dnl framework from a certain directory (like kde-common)
|
||||||
|
dnl AC_CONFIG_AUX_DIR(admin)
|
||||||
|
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE
|
||||||
|
|
||||||
|
AC_PREFIX_DEFAULT(/)
|
||||||
|
|
||||||
|
dnl without this order in this file, automake will be confused!
|
||||||
|
dnl
|
||||||
|
AM_CONFIG_HEADER(config.h)
|
||||||
|
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
|
dnl create only shared libtool-libraries
|
||||||
|
AC_ENABLE_SHARED(yes)
|
||||||
|
|
||||||
|
dnl set the following to yes, if you want to create static
|
||||||
|
dnl libtool-libraries
|
||||||
|
AC_ENABLE_STATIC(no)
|
||||||
|
|
||||||
|
|
||||||
|
dnl add here all your Makefiles. These will be created by configure
|
||||||
|
AC_OUTPUT(Makefile proxychains/Makefile proxychains/docs/Makefile proxychains/docs/en/Makefile )
|
250
install-sh
Executable file
250
install-sh
Executable file
@ -0,0 +1,250 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# install - install a program, script, or datafile
|
||||||
|
# This comes from X11R5 (mit/util/scripts/install.sh).
|
||||||
|
#
|
||||||
|
# Copyright 1991 by the Massachusetts Institute of Technology
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
# documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
# the above copyright notice appear in all copies and that both that
|
||||||
|
# copyright notice and this permission notice appear in supporting
|
||||||
|
# documentation, and that the name of M.I.T. not be used in advertising or
|
||||||
|
# publicity pertaining to distribution of the software without specific,
|
||||||
|
# written prior permission. M.I.T. makes no representations about the
|
||||||
|
# suitability of this software for any purpose. It is provided "as is"
|
||||||
|
# without express or implied warranty.
|
||||||
|
#
|
||||||
|
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||||
|
# `make' implicit rules from creating a file called install from it
|
||||||
|
# when there is no Makefile.
|
||||||
|
#
|
||||||
|
# This script is compatible with the BSD install script, but was written
|
||||||
|
# from scratch. It can only install one file at a time, a restriction
|
||||||
|
# shared with many OS's install programs.
|
||||||
|
|
||||||
|
|
||||||
|
# set DOITPROG to echo to test this script
|
||||||
|
|
||||||
|
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||||
|
doit="${DOITPROG-}"
|
||||||
|
|
||||||
|
|
||||||
|
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||||
|
|
||||||
|
mvprog="${MVPROG-mv}"
|
||||||
|
cpprog="${CPPROG-cp}"
|
||||||
|
chmodprog="${CHMODPROG-chmod}"
|
||||||
|
chownprog="${CHOWNPROG-chown}"
|
||||||
|
chgrpprog="${CHGRPPROG-chgrp}"
|
||||||
|
stripprog="${STRIPPROG-strip}"
|
||||||
|
rmprog="${RMPROG-rm}"
|
||||||
|
mkdirprog="${MKDIRPROG-mkdir}"
|
||||||
|
|
||||||
|
transformbasename=""
|
||||||
|
transform_arg=""
|
||||||
|
instcmd="$mvprog"
|
||||||
|
chmodcmd="$chmodprog 0755"
|
||||||
|
chowncmd=""
|
||||||
|
chgrpcmd=""
|
||||||
|
stripcmd=""
|
||||||
|
rmcmd="$rmprog -f"
|
||||||
|
mvcmd="$mvprog"
|
||||||
|
src=""
|
||||||
|
dst=""
|
||||||
|
dir_arg=""
|
||||||
|
|
||||||
|
while [ x"$1" != x ]; do
|
||||||
|
case $1 in
|
||||||
|
-c) instcmd="$cpprog"
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-d) dir_arg=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-m) chmodcmd="$chmodprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-o) chowncmd="$chownprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-g) chgrpcmd="$chgrpprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-s) stripcmd="$stripprog"
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
*) if [ x"$src" = x ]
|
||||||
|
then
|
||||||
|
src=$1
|
||||||
|
else
|
||||||
|
# this colon is to work around a 386BSD /bin/sh bug
|
||||||
|
:
|
||||||
|
dst=$1
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ x"$src" = x ]
|
||||||
|
then
|
||||||
|
echo "install: no input file specified"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ x"$dir_arg" != x ]; then
|
||||||
|
dst=$src
|
||||||
|
src=""
|
||||||
|
|
||||||
|
if [ -d $dst ]; then
|
||||||
|
instcmd=:
|
||||||
|
else
|
||||||
|
instcmd=mkdir
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
|
||||||
|
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
||||||
|
# might cause directories to be created, which would be especially bad
|
||||||
|
# if $src (and thus $dsttmp) contains '*'.
|
||||||
|
|
||||||
|
if [ -f $src -o -d $src ]
|
||||||
|
then
|
||||||
|
true
|
||||||
|
else
|
||||||
|
echo "install: $src does not exist"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ x"$dst" = x ]
|
||||||
|
then
|
||||||
|
echo "install: no destination specified"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If destination is a directory, append the input filename; if your system
|
||||||
|
# does not like double slashes in filenames, you may need to add some logic
|
||||||
|
|
||||||
|
if [ -d $dst ]
|
||||||
|
then
|
||||||
|
dst="$dst"/`basename $src`
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
## this sed command emulates the dirname command
|
||||||
|
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
||||||
|
|
||||||
|
# Make sure that the destination directory exists.
|
||||||
|
# this part is taken from Noah Friedman's mkinstalldirs script
|
||||||
|
|
||||||
|
# Skip lots of stat calls in the usual case.
|
||||||
|
if [ ! -d "$dstdir" ]; then
|
||||||
|
defaultIFS='
|
||||||
|
'
|
||||||
|
IFS="${IFS-${defaultIFS}}"
|
||||||
|
|
||||||
|
oIFS="${IFS}"
|
||||||
|
# Some sh's can't handle IFS=/ for some reason.
|
||||||
|
IFS='%'
|
||||||
|
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||||
|
IFS="${oIFS}"
|
||||||
|
|
||||||
|
pathcomp=''
|
||||||
|
|
||||||
|
while [ $# -ne 0 ] ; do
|
||||||
|
pathcomp="${pathcomp}${1}"
|
||||||
|
shift
|
||||||
|
|
||||||
|
if [ ! -d "${pathcomp}" ] ;
|
||||||
|
then
|
||||||
|
$mkdirprog "${pathcomp}"
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
|
||||||
|
pathcomp="${pathcomp}/"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ x"$dir_arg" != x ]
|
||||||
|
then
|
||||||
|
$doit $instcmd $dst &&
|
||||||
|
|
||||||
|
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
||||||
|
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
||||||
|
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
||||||
|
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
||||||
|
else
|
||||||
|
|
||||||
|
# If we're going to rename the final executable, determine the name now.
|
||||||
|
|
||||||
|
if [ x"$transformarg" = x ]
|
||||||
|
then
|
||||||
|
dstfile=`basename $dst`
|
||||||
|
else
|
||||||
|
dstfile=`basename $dst $transformbasename |
|
||||||
|
sed $transformarg`$transformbasename
|
||||||
|
fi
|
||||||
|
|
||||||
|
# don't allow the sed command to completely eliminate the filename
|
||||||
|
|
||||||
|
if [ x"$dstfile" = x ]
|
||||||
|
then
|
||||||
|
dstfile=`basename $dst`
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Make a temp file name in the proper directory.
|
||||||
|
|
||||||
|
dsttmp=$dstdir/#inst.$$#
|
||||||
|
|
||||||
|
# Move or copy the file name to the temp name
|
||||||
|
|
||||||
|
$doit $instcmd $src $dsttmp &&
|
||||||
|
|
||||||
|
trap "rm -f ${dsttmp}" 0 &&
|
||||||
|
|
||||||
|
# and set any options; do chmod last to preserve setuid bits
|
||||||
|
|
||||||
|
# If any of these fail, we abort the whole thing. If we want to
|
||||||
|
# ignore errors from any of these, just make sure not to ignore
|
||||||
|
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
||||||
|
|
||||||
|
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
||||||
|
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
||||||
|
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
||||||
|
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
|
||||||
|
$doit $rmcmd -f $dstdir/$dstfile &&
|
||||||
|
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
||||||
|
|
||||||
|
fi &&
|
||||||
|
|
||||||
|
|
||||||
|
exit 0
|
238
missing
Executable file
238
missing
Executable file
@ -0,0 +1,238 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# Common stub for a few missing GNU programs while installing.
|
||||||
|
# Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
|
||||||
|
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
if test $# -eq 0; then
|
||||||
|
echo 1>&2 "Try \`$0 --help' for more information"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
run=:
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
--run)
|
||||||
|
# Try to run requested program, and just exit if it succeeds.
|
||||||
|
run=
|
||||||
|
shift
|
||||||
|
"$@" && exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If it does not exist, or fails to run (possibly an outdated version),
|
||||||
|
# try to emulate it.
|
||||||
|
case "$1" in
|
||||||
|
|
||||||
|
-h|--h|--he|--hel|--help)
|
||||||
|
echo "\
|
||||||
|
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||||
|
|
||||||
|
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||||
|
error status if there is no known handling for PROGRAM.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-h, --help display this help and exit
|
||||||
|
-v, --version output version information and exit
|
||||||
|
--run try to run the given command, and emulate it if it fails
|
||||||
|
|
||||||
|
Supported PROGRAM values:
|
||||||
|
aclocal touch file \`aclocal.m4'
|
||||||
|
autoconf touch file \`configure'
|
||||||
|
autoheader touch file \`config.h.in'
|
||||||
|
automake touch all \`Makefile.in' files
|
||||||
|
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||||
|
flex create \`lex.yy.c', if possible, from existing .c
|
||||||
|
lex create \`lex.yy.c', if possible, from existing .c
|
||||||
|
makeinfo touch the output file
|
||||||
|
tar try tar, gnutar, gtar, then tar without non-portable flags
|
||||||
|
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
|
||||||
|
;;
|
||||||
|
|
||||||
|
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||||
|
echo "missing 0.2 - GNU automake"
|
||||||
|
;;
|
||||||
|
|
||||||
|
-*)
|
||||||
|
echo 1>&2 "$0: Unknown \`$1' option"
|
||||||
|
echo 1>&2 "Try \`$0 --help' for more information"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
aclocal)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified \`acinclude.m4' or \`configure.in'. You might want
|
||||||
|
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||||
|
any GNU archive site."
|
||||||
|
touch aclocal.m4
|
||||||
|
;;
|
||||||
|
|
||||||
|
autoconf)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified \`configure.in'. You might want to install the
|
||||||
|
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||||
|
archive site."
|
||||||
|
touch configure
|
||||||
|
;;
|
||||||
|
|
||||||
|
autoheader)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified \`acconfig.h' or \`configure.in'. You might want
|
||||||
|
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||||
|
from any GNU archive site."
|
||||||
|
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in`
|
||||||
|
test -z "$files" && files="config.h"
|
||||||
|
touch_files=
|
||||||
|
for f in $files; do
|
||||||
|
case "$f" in
|
||||||
|
*:*) touch_files="$touch_files "`echo "$f" |
|
||||||
|
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
||||||
|
*) touch_files="$touch_files $f.in";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
touch $touch_files
|
||||||
|
;;
|
||||||
|
|
||||||
|
automake)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
|
||||||
|
You might want to install the \`Automake' and \`Perl' packages.
|
||||||
|
Grab them from any GNU archive site."
|
||||||
|
find . -type f -name Makefile.am -print |
|
||||||
|
sed 's/\.am$/.in/' |
|
||||||
|
while read f; do touch "$f"; done
|
||||||
|
;;
|
||||||
|
|
||||||
|
bison|yacc)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified a \`.y' file. You may need the \`Bison' package
|
||||||
|
in order for those modifications to take effect. You can get
|
||||||
|
\`Bison' from any GNU archive site."
|
||||||
|
rm -f y.tab.c y.tab.h
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
eval LASTARG="\${$#}"
|
||||||
|
case "$LASTARG" in
|
||||||
|
*.y)
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" y.tab.c
|
||||||
|
fi
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" y.tab.h
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if [ ! -f y.tab.h ]; then
|
||||||
|
echo >y.tab.h
|
||||||
|
fi
|
||||||
|
if [ ! -f y.tab.c ]; then
|
||||||
|
echo 'main() { return 0; }' >y.tab.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
lex|flex)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified a \`.l' file. You may need the \`Flex' package
|
||||||
|
in order for those modifications to take effect. You can get
|
||||||
|
\`Flex' from any GNU archive site."
|
||||||
|
rm -f lex.yy.c
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
eval LASTARG="\${$#}"
|
||||||
|
case "$LASTARG" in
|
||||||
|
*.l)
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" lex.yy.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if [ ! -f lex.yy.c ]; then
|
||||||
|
echo 'main() { return 0; }' >lex.yy.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
makeinfo)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||||
|
indirectly affecting the aspect of the manual. The spurious
|
||||||
|
call might also be the consequence of using a buggy \`make' (AIX,
|
||||||
|
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||||
|
the \`GNU make' package. Grab either from any GNU archive site."
|
||||||
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||||
|
if test -z "$file"; then
|
||||||
|
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||||
|
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
|
||||||
|
fi
|
||||||
|
touch $file
|
||||||
|
;;
|
||||||
|
|
||||||
|
tar)
|
||||||
|
shift
|
||||||
|
if test -n "$run"; then
|
||||||
|
echo 1>&2 "ERROR: \`tar' requires --run"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# we have already tried tar in the generic part
|
||||||
|
gnutar ${1+"$@"} && exit 0
|
||||||
|
gtar ${1+"$@"} && exit 0
|
||||||
|
firstarg="$1"
|
||||||
|
if shift; then
|
||||||
|
case "$firstarg" in
|
||||||
|
*o*)
|
||||||
|
firstarg=`echo "$firstarg" | sed s/o//`
|
||||||
|
tar "$firstarg" ${1+"$@"} && exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
case "$firstarg" in
|
||||||
|
*h*)
|
||||||
|
firstarg=`echo "$firstarg" | sed s/h//`
|
||||||
|
tar "$firstarg" ${1+"$@"} && exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
||||||
|
You may want to install GNU tar or Free paxutils, or check the
|
||||||
|
command line arguments."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is needed, and you do not seem to have it handy on your
|
||||||
|
system. You might have modified some files without having the
|
||||||
|
proper tools for further handling them. Check the \`README' file,
|
||||||
|
it often tells you about the needed prerequirements for installing
|
||||||
|
this package. You may also peek at any GNU archive site, in case
|
||||||
|
some other package would contain this missing \`$1' program."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
40
mkinstalldirs
Executable file
40
mkinstalldirs
Executable file
@ -0,0 +1,40 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# mkinstalldirs --- make directory hierarchy
|
||||||
|
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||||
|
# Created: 1993-05-16
|
||||||
|
# Public domain
|
||||||
|
|
||||||
|
# $Id: mkinstalldirs,v 1.2 2004/03/22 00:29:19 netcreature Exp $
|
||||||
|
|
||||||
|
errstatus=0
|
||||||
|
|
||||||
|
for file
|
||||||
|
do
|
||||||
|
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
|
||||||
|
shift
|
||||||
|
|
||||||
|
pathcomp=
|
||||||
|
for d
|
||||||
|
do
|
||||||
|
pathcomp="$pathcomp$d"
|
||||||
|
case "$pathcomp" in
|
||||||
|
-* ) pathcomp=./$pathcomp ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
echo "mkdir $pathcomp"
|
||||||
|
|
||||||
|
mkdir "$pathcomp" || lasterr=$?
|
||||||
|
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
errstatus=$lasterr
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
pathcomp="$pathcomp/"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
exit $errstatus
|
||||||
|
|
||||||
|
# mkinstalldirs ends here
|
14
proxychains.lsm
Normal file
14
proxychains.lsm
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Begin3
|
||||||
|
Title: ProxyChains
|
||||||
|
Version: 3.0
|
||||||
|
Entered-date:
|
||||||
|
Description:
|
||||||
|
Keywords:
|
||||||
|
Author: <N37CR347UR3>
|
||||||
|
Maintained-by: <NetCreature>
|
||||||
|
Primary-site:
|
||||||
|
Home-page: http://proxychains.sourceforge.net
|
||||||
|
Original-site:
|
||||||
|
Platforms: Linux and other Unices
|
||||||
|
Copying-policy: GNU Public License
|
||||||
|
End
|
38
proxychains/Makefile.am
Normal file
38
proxychains/Makefile.am
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
SUBDIRS = docs
|
||||||
|
|
||||||
|
EXTRA_DIST = proxychains.conf core.c core.h libproxychains.c
|
||||||
|
|
||||||
|
sysconf_DATA=$(srcdir)/proxychains.conf
|
||||||
|
|
||||||
|
install-data-local:
|
||||||
|
$(mkinstalldirs) ${DESTDIR}${bindir}
|
||||||
|
${INSTALL} $(srcdir)/proxychains ${DESTDIR}${bindir}/proxychains
|
||||||
|
${INSTALL} $(srcdir)/proxyresolv ${DESTDIR}${bindir}/proxyresolv
|
||||||
|
|
||||||
|
uninstall-local:
|
||||||
|
-rm -f ${DESTDIR}${bindir}/proxychains
|
||||||
|
-rm -f ${DESTDIR}${bindir}/proxyresolv
|
||||||
|
|
||||||
|
#bin_PROGRAMS = proxychains
|
||||||
|
|
||||||
|
#proxychains_SOURCES = main.c
|
||||||
|
|
||||||
|
# set the include path found by configure
|
||||||
|
INCLUDES= $(all_includes)
|
||||||
|
|
||||||
|
#proxychains_LDFLAGS = $(all_libraries)
|
||||||
|
lib_LTLIBRARIES = libproxychains.la
|
||||||
|
libproxychains_la_LDFLAGS = -version-info 3:0:0 $(all_libraries)
|
||||||
|
libproxychains_la_LIBADD= -ldl
|
||||||
|
noinst_HEADERS = core.h
|
||||||
|
libproxychains_la_SOURCES= libproxychains.c core.c
|
||||||
|
libproxychains_la_METASOURCES = USE_AUTOMOC
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#install-private: install
|
||||||
|
# $(mkinstalldirs) $(HOME)/bin
|
||||||
|
# $(INSTALL_DATA) $(srcdir)/proxychains $(HOME)/bin/proxychains
|
||||||
|
#
|
||||||
|
#uninstall-private: uninstall
|
||||||
|
# -rm -f $(HOME)/bin/proxychains
|
496
proxychains/Makefile.in
Normal file
496
proxychains/Makefile.in
Normal file
@ -0,0 +1,496 @@
|
|||||||
|
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = ..
|
||||||
|
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
AR = @AR@
|
||||||
|
AS = @AS@
|
||||||
|
CC = @CC@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
DLLTOOL = @DLLTOOL@
|
||||||
|
ECHO = @ECHO@
|
||||||
|
EGREP = @EGREP@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
F77 = @F77@
|
||||||
|
GCJ = @GCJ@
|
||||||
|
GCJFLAGS = @GCJFLAGS@
|
||||||
|
HAVE_LIB = @HAVE_LIB@
|
||||||
|
LIB = @LIB@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
LTLIB = @LTLIB@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
OBJDUMP = @OBJDUMP@
|
||||||
|
OBJEXT = @OBJEXT@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
RANLIB = @RANLIB@
|
||||||
|
RC = @RC@
|
||||||
|
STRIP = @STRIP@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
|
||||||
|
SUBDIRS = docs
|
||||||
|
|
||||||
|
EXTRA_DIST = proxychains.conf core.c core.h libproxychains.c
|
||||||
|
|
||||||
|
sysconf_DATA = $(srcdir)/proxychains.conf
|
||||||
|
|
||||||
|
#bin_PROGRAMS = proxychains
|
||||||
|
|
||||||
|
#proxychains_SOURCES = main.c
|
||||||
|
|
||||||
|
# set the include path found by configure
|
||||||
|
INCLUDES = $(all_includes)
|
||||||
|
|
||||||
|
#proxychains_LDFLAGS = $(all_libraries)
|
||||||
|
lib_LTLIBRARIES = libproxychains.la
|
||||||
|
libproxychains_la_LDFLAGS = -version-info 3:0:0 $(all_libraries)
|
||||||
|
libproxychains_la_LIBADD = -ldl
|
||||||
|
noinst_HEADERS = core.h
|
||||||
|
libproxychains_la_SOURCES = libproxychains.c core.c
|
||||||
|
libproxychains_la_METASOURCES = USE_AUTOMOC
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_HEADER = ../config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||||
|
|
||||||
|
|
||||||
|
DEFS = @DEFS@ -I. -I$(srcdir) -I..
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
libproxychains_la_DEPENDENCIES =
|
||||||
|
libproxychains_la_OBJECTS = libproxychains.lo core.lo
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
|
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
|
CCLD = $(CC)
|
||||||
|
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||||
|
DATA = $(sysconf_DATA)
|
||||||
|
|
||||||
|
HEADERS = $(noinst_HEADERS)
|
||||||
|
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
DEP_FILES = .deps/core.P .deps/libproxychains.P
|
||||||
|
SOURCES = $(libproxychains_la_SOURCES)
|
||||||
|
OBJECTS = $(libproxychains_la_OBJECTS)
|
||||||
|
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .S .c .lo .o .obj .s
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --gnu proxychains/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-libLTLIBRARIES:
|
||||||
|
|
||||||
|
clean-libLTLIBRARIES:
|
||||||
|
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||||
|
|
||||||
|
distclean-libLTLIBRARIES:
|
||||||
|
|
||||||
|
maintainer-clean-libLTLIBRARIES:
|
||||||
|
|
||||||
|
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
||||||
|
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||||
|
if test -f $$p; then \
|
||||||
|
echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
|
||||||
|
$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
|
||||||
|
else :; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-libLTLIBRARIES:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||||
|
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# FIXME: We should only use cygpath when building on Windows,
|
||||||
|
# and only if it is available.
|
||||||
|
.c.obj:
|
||||||
|
$(COMPILE) -c `cygpath -w $<`
|
||||||
|
|
||||||
|
.s.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
|
.S.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
|
mostlyclean-compile:
|
||||||
|
-rm -f *.o core *.core
|
||||||
|
-rm -f *.$(OBJEXT)
|
||||||
|
|
||||||
|
clean-compile:
|
||||||
|
|
||||||
|
distclean-compile:
|
||||||
|
-rm -f *.tab.c
|
||||||
|
|
||||||
|
maintainer-clean-compile:
|
||||||
|
|
||||||
|
.s.lo:
|
||||||
|
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||||
|
|
||||||
|
.S.lo:
|
||||||
|
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
|
|
||||||
|
distclean-libtool:
|
||||||
|
|
||||||
|
maintainer-clean-libtool:
|
||||||
|
|
||||||
|
libproxychains.la: $(libproxychains_la_OBJECTS) $(libproxychains_la_DEPENDENCIES)
|
||||||
|
$(LINK) -rpath $(libdir) $(libproxychains_la_LDFLAGS) $(libproxychains_la_OBJECTS) $(libproxychains_la_LIBADD) $(LIBS)
|
||||||
|
|
||||||
|
install-sysconfDATA: $(sysconf_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
|
||||||
|
@list='$(sysconf_DATA)'; for p in $$list; do \
|
||||||
|
if test -f $(srcdir)/$$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
|
||||||
|
else if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
|
||||||
|
fi; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-sysconfDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(sysconf_DATA)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(sysconfdir)/$$p; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# This directory's subdirectories are mostly independent; you can cd
|
||||||
|
# into them and run `make' without going through this Makefile.
|
||||||
|
# To change the values of `make' variables: instead of editing Makefiles,
|
||||||
|
# (1) if the variable is set in `config.status', edit `config.status'
|
||||||
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||||
|
# (2) otherwise, pass the desired values on the `make' command line.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
|
all-recursive install-data-recursive install-exec-recursive \
|
||||||
|
installdirs-recursive install-recursive uninstall-recursive \
|
||||||
|
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||||
|
@set fnord $$MAKEFLAGS; amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
dot_seen=yes; \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done; \
|
||||||
|
if test "$$dot_seen" = "no"; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||||
|
fi; test -z "$$fail"
|
||||||
|
|
||||||
|
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||||
|
maintainer-clean-recursive:
|
||||||
|
@set fnord $$MAKEFLAGS; amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
rev="$$subdir $$rev"; \
|
||||||
|
test "$$subdir" != "." || dot_seen=yes; \
|
||||||
|
done; \
|
||||||
|
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
for subdir in $$rev; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done && test -z "$$fail"
|
||||||
|
tags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||||
|
done
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
here=`pwd` && cd $(srcdir) \
|
||||||
|
&& mkid -f$$here/ID $$unique $(LISP)
|
||||||
|
|
||||||
|
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||||
|
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
|
||||||
|
|
||||||
|
mostlyclean-tags:
|
||||||
|
|
||||||
|
clean-tags:
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID
|
||||||
|
|
||||||
|
maintainer-clean-tags:
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = proxychains
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
here=`cd $(top_builddir) && pwd`; \
|
||||||
|
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||||
|
distdir=`cd $(distdir) && pwd`; \
|
||||||
|
cd $(top_srcdir) \
|
||||||
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu proxychains/Makefile
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
for subdir in $(SUBDIRS); do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -d $(distdir)/$$subdir \
|
||||||
|
|| mkdir $(distdir)/$$subdir \
|
||||||
|
|| exit 1; \
|
||||||
|
chmod 777 $(distdir)/$$subdir; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
|
||||||
|
|
||||||
|
-include $(DEP_FILES)
|
||||||
|
|
||||||
|
mostlyclean-depend:
|
||||||
|
|
||||||
|
clean-depend:
|
||||||
|
|
||||||
|
distclean-depend:
|
||||||
|
-rm -rf .deps
|
||||||
|
|
||||||
|
maintainer-clean-depend:
|
||||||
|
|
||||||
|
%.o: %.c
|
||||||
|
@echo '$(COMPILE) -c $<'; \
|
||||||
|
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||||
|
@-cp .deps/$(*F).pp .deps/$(*F).P; \
|
||||||
|
tr ' ' '\012' < .deps/$(*F).pp \
|
||||||
|
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||||
|
>> .deps/$(*F).P; \
|
||||||
|
rm .deps/$(*F).pp
|
||||||
|
|
||||||
|
%.lo: %.c
|
||||||
|
@echo '$(LTCOMPILE) -c $<'; \
|
||||||
|
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||||
|
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
|
||||||
|
< .deps/$(*F).pp > .deps/$(*F).P; \
|
||||||
|
tr ' ' '\012' < .deps/$(*F).pp \
|
||||||
|
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||||
|
>> .deps/$(*F).P; \
|
||||||
|
rm -f .deps/$(*F).pp
|
||||||
|
info-am:
|
||||||
|
info: info-recursive
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-recursive
|
||||||
|
check-am: all-am
|
||||||
|
check: check-recursive
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-recursive
|
||||||
|
install-exec-am: install-libLTLIBRARIES install-sysconfDATA
|
||||||
|
install-exec: install-exec-recursive
|
||||||
|
|
||||||
|
install-data-am: install-data-local
|
||||||
|
install-data: install-data-recursive
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-recursive
|
||||||
|
uninstall-am: uninstall-libLTLIBRARIES uninstall-sysconfDATA \
|
||||||
|
uninstall-local
|
||||||
|
uninstall: uninstall-recursive
|
||||||
|
all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
|
||||||
|
all-redirect: all-recursive
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs: installdirs-recursive
|
||||||
|
installdirs-am:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(sysconfdir)
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
|
||||||
|
mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
|
||||||
|
mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-recursive
|
||||||
|
|
||||||
|
clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
|
||||||
|
clean-depend clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-recursive
|
||||||
|
|
||||||
|
distclean-am: distclean-libLTLIBRARIES distclean-compile \
|
||||||
|
distclean-libtool distclean-tags distclean-depend \
|
||||||
|
distclean-generic clean-am
|
||||||
|
-rm -f libtool
|
||||||
|
|
||||||
|
distclean: distclean-recursive
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
|
||||||
|
maintainer-clean-compile maintainer-clean-libtool \
|
||||||
|
maintainer-clean-tags maintainer-clean-depend \
|
||||||
|
maintainer-clean-generic distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-recursive
|
||||||
|
|
||||||
|
.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
|
||||||
|
clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
|
||||||
|
uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
|
||||||
|
distclean-compile clean-compile maintainer-clean-compile \
|
||||||
|
mostlyclean-libtool distclean-libtool clean-libtool \
|
||||||
|
maintainer-clean-libtool uninstall-sysconfDATA install-sysconfDATA \
|
||||||
|
install-data-recursive uninstall-data-recursive install-exec-recursive \
|
||||||
|
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
|
||||||
|
all-recursive check-recursive installcheck-recursive info-recursive \
|
||||||
|
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
|
||||||
|
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||||
|
distclean-tags clean-tags maintainer-clean-tags distdir \
|
||||||
|
mostlyclean-depend distclean-depend clean-depend \
|
||||||
|
maintainer-clean-depend info-am info dvi-am dvi check check-am \
|
||||||
|
installcheck-am installcheck install-exec-am install-exec \
|
||||||
|
install-data-local install-data-am install-data install-am install \
|
||||||
|
uninstall-local uninstall-am uninstall all-redirect all-am all \
|
||||||
|
installdirs-am installdirs mostlyclean-generic distclean-generic \
|
||||||
|
clean-generic maintainer-clean-generic clean mostlyclean distclean \
|
||||||
|
maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
install-data-local:
|
||||||
|
$(mkinstalldirs) ${DESTDIR}${bindir}
|
||||||
|
${INSTALL} $(srcdir)/proxychains ${DESTDIR}${bindir}/proxychains
|
||||||
|
${INSTALL} $(srcdir)/proxyresolv ${DESTDIR}${bindir}/proxyresolv
|
||||||
|
|
||||||
|
uninstall-local:
|
||||||
|
-rm -f ${DESTDIR}${bindir}/proxychains
|
||||||
|
-rm -f ${DESTDIR}${bindir}/proxyresolv
|
||||||
|
|
||||||
|
#install-private: install
|
||||||
|
# $(mkinstalldirs) $(HOME)/bin
|
||||||
|
# $(INSTALL_DATA) $(srcdir)/proxychains $(HOME)/bin/proxychains
|
||||||
|
#
|
||||||
|
#uninstall-private: uninstall
|
||||||
|
# -rm -f $(HOME)/bin/proxychains
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
733
proxychains/core.c
Normal file
733
proxychains/core.c
Normal file
@ -0,0 +1,733 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
core.c - description
|
||||||
|
-------------------
|
||||||
|
begin : Tue May 14 2002
|
||||||
|
copyright : netcreature (C) 2002
|
||||||
|
email : netcreature@users.sourceforge.net
|
||||||
|
***************************************************************************/
|
||||||
|
/* GPL */
|
||||||
|
/***************************************************************************
|
||||||
|
* *
|
||||||
|
* This program is free software; you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <memory.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <netdb.h>
|
||||||
|
|
||||||
|
#include <sys/utsname.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/poll.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include "core.h"
|
||||||
|
|
||||||
|
extern int tcp_read_time_out;
|
||||||
|
extern int tcp_connect_time_out;
|
||||||
|
extern int proxychains_quiet_mode;
|
||||||
|
|
||||||
|
static const char base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
|
|
||||||
|
static void encode_base_64(char* src,char* dest,int max_len)
|
||||||
|
{
|
||||||
|
int n,l,i;
|
||||||
|
l=strlen(src);
|
||||||
|
max_len=(max_len-1)/4;
|
||||||
|
for ( i=0;i<max_len;i++,src+=3,l-=3)
|
||||||
|
{
|
||||||
|
switch (l) {
|
||||||
|
case 0:
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
n=src[0] << 16;
|
||||||
|
*dest++=base64[(n >> 18) & 077];
|
||||||
|
*dest++=base64[(n >> 12) & 077];
|
||||||
|
*dest++='=';
|
||||||
|
*dest++='=';
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
n=src[0] << 16 | src[1] << 8;
|
||||||
|
*dest++=base64[(n >> 18) & 077];
|
||||||
|
*dest++=base64[(n >> 12) & 077];
|
||||||
|
*dest++=base64[(n >> 6) & 077];
|
||||||
|
*dest++='=';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
n=src[0] << 16 | src[1] << 8 | src[2];
|
||||||
|
*dest++=base64[(n >> 18) & 077];
|
||||||
|
*dest++=base64[(n >> 12) & 077];
|
||||||
|
*dest++=base64[(n >> 6) & 077];
|
||||||
|
*dest++=base64[n & 077];
|
||||||
|
}
|
||||||
|
if (l<3) break;
|
||||||
|
}
|
||||||
|
*dest++=0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LOG_BUFF 1024*20
|
||||||
|
|
||||||
|
int proxychains_write_log(char *str,...)
|
||||||
|
{
|
||||||
|
char buff[LOG_BUFF];
|
||||||
|
va_list arglist;
|
||||||
|
FILE * log_file;
|
||||||
|
log_file=stderr;
|
||||||
|
if (!proxychains_quiet_mode)
|
||||||
|
{
|
||||||
|
va_start(arglist,str);
|
||||||
|
vsprintf(buff,str,arglist);
|
||||||
|
va_end(arglist);
|
||||||
|
fprintf(log_file,"%s",buff);
|
||||||
|
fflush(log_file);
|
||||||
|
}
|
||||||
|
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int write_n_bytes(int fd,char *buff,size_t size)
|
||||||
|
{
|
||||||
|
int i=0,wrote=0;
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
i=write(fd,&buff[wrote],size-wrote);
|
||||||
|
if(i<=0)
|
||||||
|
return i;
|
||||||
|
wrote+=i;
|
||||||
|
if(wrote==size)
|
||||||
|
return wrote;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static int read_line(int fd, char *buff, size_t size)
|
||||||
|
{
|
||||||
|
int i,ready;
|
||||||
|
struct pollfd pfd[1];
|
||||||
|
|
||||||
|
pfd[0].fd=fd;
|
||||||
|
pfd[0].events=POLLIN;
|
||||||
|
for(i=0;i<size-1;i++)
|
||||||
|
{
|
||||||
|
pfd[0].revents=0;
|
||||||
|
ready=poll(pfd,1,tcp_read_time_out);
|
||||||
|
if(ready!=1 || !(pfd[0].revents&POLLIN) || 1!=read(fd,&buff[i],1))
|
||||||
|
return -1;
|
||||||
|
else if(buff[i]=='\n')
|
||||||
|
{
|
||||||
|
buff[i+1]=0;
|
||||||
|
return (i+1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int read_n_bytes(int fd,char *buff, size_t size)
|
||||||
|
{
|
||||||
|
int i,ready;
|
||||||
|
struct pollfd pfd[1];
|
||||||
|
|
||||||
|
pfd[0].fd=fd;
|
||||||
|
pfd[0].events=POLLIN;
|
||||||
|
for(i=0;i<size;i++)
|
||||||
|
{
|
||||||
|
pfd[0].revents=0;
|
||||||
|
ready=poll(pfd,1,tcp_read_time_out);
|
||||||
|
if(ready!=1 || !(pfd[0].revents&POLLIN) || 1!=read(fd,&buff[i],1))
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int timed_connect(int sock, const struct sockaddr *addr, unsigned int len)
|
||||||
|
{
|
||||||
|
int ret,value,value_len;
|
||||||
|
struct pollfd pfd[1];
|
||||||
|
|
||||||
|
pfd[0].fd=sock;
|
||||||
|
pfd[0].events=POLLOUT;
|
||||||
|
fcntl(sock, F_SETFL, O_NONBLOCK);
|
||||||
|
ret=true_connect(sock, addr, len);
|
||||||
|
// printf("\nconnect ret=%d\n",ret);fflush(stdout);
|
||||||
|
if(ret==-1 && errno==EINPROGRESS)
|
||||||
|
{
|
||||||
|
ret=poll(pfd,1,tcp_connect_time_out);
|
||||||
|
// printf("\npoll ret=%d\n",ret);fflush(stdout);
|
||||||
|
if(ret==1)
|
||||||
|
{
|
||||||
|
value_len=sizeof(int);
|
||||||
|
getsockopt(sock,SOL_SOCKET,SO_ERROR,&value,&value_len) ;
|
||||||
|
// printf("\nvalue=%d\n",value);fflush(stdout);
|
||||||
|
if(!value)
|
||||||
|
ret=0;
|
||||||
|
else
|
||||||
|
ret=-1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
ret=-1;
|
||||||
|
}
|
||||||
|
else if (ret==0)
|
||||||
|
;
|
||||||
|
else
|
||||||
|
ret=-1;
|
||||||
|
|
||||||
|
|
||||||
|
fcntl(sock, F_SETFL, !O_NONBLOCK);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int tunnel_to(int sock, unsigned int ip, unsigned short port, proxy_type pt,char *user,char *pass)
|
||||||
|
{
|
||||||
|
int len;
|
||||||
|
char buff[BUFF_SIZE];
|
||||||
|
bzero (buff,sizeof(buff));
|
||||||
|
switch(pt)
|
||||||
|
{
|
||||||
|
case HTTP_TYPE:
|
||||||
|
{
|
||||||
|
sprintf(buff,"CONNECT %s:%d HTTP/1.0\r\n",
|
||||||
|
inet_ntoa( * (struct in_addr *) &ip),
|
||||||
|
ntohs(port));
|
||||||
|
if (user[0])
|
||||||
|
{
|
||||||
|
char src[256];
|
||||||
|
char dst[512];
|
||||||
|
strcpy(src,user);
|
||||||
|
strcat(src,":");
|
||||||
|
strcat(src,pass);
|
||||||
|
encode_base_64(src,dst,512);
|
||||||
|
strcat(buff,"Proxy-Authorization: Basic ");
|
||||||
|
strcat(buff,dst);
|
||||||
|
strcat(buff,"\r\n\r\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
strcat(buff,"\r\n");
|
||||||
|
|
||||||
|
len=strlen(buff);
|
||||||
|
|
||||||
|
if(len!=send(sock,buff,len,0))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
|
||||||
|
bzero(buff,sizeof(buff));
|
||||||
|
len=0 ;
|
||||||
|
// read header byte by byte.
|
||||||
|
while(len<BUFF_SIZE)
|
||||||
|
{
|
||||||
|
if(1==read_n_bytes(sock,buff+len,1))
|
||||||
|
len++;
|
||||||
|
else
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
if ( len > 4 &&
|
||||||
|
buff[len-1]=='\n' &&
|
||||||
|
buff[len-2]=='\r' &&
|
||||||
|
buff[len-3]=='\n' &&
|
||||||
|
buff[len-4]=='\r' )
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// if not ok (200) or response greather than BUFF_SIZE return BLOCKED;
|
||||||
|
if ( (len==BUFF_SIZE) ||
|
||||||
|
! ( buff[9] =='2' &&
|
||||||
|
buff[10]=='0' &&
|
||||||
|
buff[11]=='0' ))
|
||||||
|
return BLOCKED;
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case SOCKS4_TYPE:
|
||||||
|
{
|
||||||
|
memset(buff,0,sizeof(buff));
|
||||||
|
buff[0]=4; // socks version
|
||||||
|
buff[1]=1; // connect command
|
||||||
|
memcpy(&buff[2],&port,2); // dest port
|
||||||
|
memcpy(&buff[4],&ip,4); // dest host
|
||||||
|
len=strlen(user)+1; // username
|
||||||
|
if(len>1)
|
||||||
|
strcpy(&buff[8],user);
|
||||||
|
if((len+8)!=write_n_bytes(sock,buff,(8+len)))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
|
||||||
|
if(8!=read_n_bytes(sock,buff,8))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
|
||||||
|
if (buff[0]!=0||buff[1]!=90)
|
||||||
|
return BLOCKED;
|
||||||
|
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case SOCKS5_TYPE:
|
||||||
|
{
|
||||||
|
if(user)
|
||||||
|
{
|
||||||
|
buff[0]=5; //version
|
||||||
|
buff[1]=2; //nomber of methods
|
||||||
|
buff[2]=0; // no auth method
|
||||||
|
buff[3]=2; /// auth method -> username / password
|
||||||
|
if(4!=write_n_bytes(sock,buff,4))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
buff[0]=5; //version
|
||||||
|
buff[1]=1; //nomber of methods
|
||||||
|
buff[2]=0; // no auth method
|
||||||
|
if(3!=write_n_bytes(sock,buff,3))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
memset(buff,0,sizeof(buff));
|
||||||
|
|
||||||
|
if(2!=read_n_bytes(sock,buff,2))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
|
||||||
|
if (buff[0]!=5||(buff[1]!=0&&buff[1]!=2))
|
||||||
|
{
|
||||||
|
if((buff[0]==0x05)&&(buff[1]==(char)0xFF))
|
||||||
|
return BLOCKED;
|
||||||
|
else
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (buff[1]==2)
|
||||||
|
{
|
||||||
|
// authentication
|
||||||
|
char in[2];
|
||||||
|
char out[515]; char* cur=out;
|
||||||
|
int c;
|
||||||
|
*cur++=1; // version
|
||||||
|
c=strlen(user);
|
||||||
|
*cur++=c;
|
||||||
|
strncpy(cur,user,c);
|
||||||
|
cur+=c;
|
||||||
|
c=strlen(pass);
|
||||||
|
*cur++=c;
|
||||||
|
strncpy(cur,pass,c);
|
||||||
|
cur+=c;
|
||||||
|
|
||||||
|
if((cur-out)!=write_n_bytes(sock,out,cur-out))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
|
||||||
|
|
||||||
|
if(2!=read_n_bytes(sock,in,2))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
if(in[0]!=1||in[1]!=0)
|
||||||
|
{
|
||||||
|
if(in[0]!=1)
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
else
|
||||||
|
return BLOCKED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
buff[0]=5; // version
|
||||||
|
buff[1]=1; // connect
|
||||||
|
buff[2]=0; // reserved
|
||||||
|
buff[3]=1; // ip v4
|
||||||
|
|
||||||
|
memcpy(&buff[4],&ip,4); // dest host
|
||||||
|
memcpy(&buff[8],&port,2); // dest port
|
||||||
|
|
||||||
|
|
||||||
|
if(10!=write_n_bytes(sock,buff,10))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
|
||||||
|
if(4!=read_n_bytes(sock,buff,4))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
|
||||||
|
if (buff[0]!=5||buff[1]!=0)
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
|
||||||
|
switch (buff[3])
|
||||||
|
{
|
||||||
|
case 1: len=4; break;
|
||||||
|
case 4: len=16; break;
|
||||||
|
case 3: len=0;
|
||||||
|
if(1!=read_n_bytes(sock,(char*)&len,1))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
if((len+2)!=read_n_bytes(sock,buff,(len+2)))
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int start_chain(int *fd, proxy_data *pd, char* begin_mark)
|
||||||
|
{
|
||||||
|
struct sockaddr_in addr;
|
||||||
|
|
||||||
|
*fd=socket(PF_INET,SOCK_STREAM,0);
|
||||||
|
if(*fd==-1)
|
||||||
|
goto error;
|
||||||
|
|
||||||
|
proxychains_write_log("%s-<>-%s:%d-",
|
||||||
|
begin_mark,
|
||||||
|
inet_ntoa(*(struct in_addr*)&pd->ip),
|
||||||
|
htons(pd->port));
|
||||||
|
pd->ps=PLAY_STATE;
|
||||||
|
bzero(&addr,sizeof(addr));
|
||||||
|
addr.sin_family = AF_INET;
|
||||||
|
addr.sin_addr.s_addr = pd->ip;
|
||||||
|
addr.sin_port = pd->port;
|
||||||
|
if (timed_connect (*fd ,(struct sockaddr*)&addr,sizeof(addr))) {
|
||||||
|
pd->ps=DOWN_STATE;
|
||||||
|
goto error1;
|
||||||
|
}
|
||||||
|
pd->ps=BUSY_STATE;
|
||||||
|
return SUCCESS;
|
||||||
|
error1:
|
||||||
|
proxychains_write_log("<--timeout\n");
|
||||||
|
error:
|
||||||
|
if(*fd!=-1)
|
||||||
|
close(*fd);
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
static proxy_data * select_proxy(select_type how,
|
||||||
|
proxy_data *pd, int proxy_count, int *offset)
|
||||||
|
{
|
||||||
|
int i=0,k=0;
|
||||||
|
if(*offset>=proxy_count)
|
||||||
|
return NULL;
|
||||||
|
switch(how) {
|
||||||
|
case RANDOMLY:
|
||||||
|
srand(time(NULL));
|
||||||
|
do {
|
||||||
|
k++;
|
||||||
|
i = 0 + (int) (proxy_count*1.0*rand()/
|
||||||
|
(RAND_MAX+1.0));
|
||||||
|
} while (pd[i].ps!=PLAY_STATE && k<proxy_count*100 );
|
||||||
|
break;
|
||||||
|
case FIFOLY:
|
||||||
|
for(i=*offset;i<proxy_count;i++) {
|
||||||
|
if(pd[i].ps==PLAY_STATE) {
|
||||||
|
*offset=i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (i>=proxy_count)
|
||||||
|
i=0;
|
||||||
|
return pd[i].ps==PLAY_STATE?&pd[i]:NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void release_all(proxy_data *pd, int proxy_count)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
for(i=0;i<proxy_count;i++)
|
||||||
|
pd[i].ps=PLAY_STATE;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void release_busy(proxy_data *pd, int proxy_count)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
for(i=0;i<proxy_count;i++)
|
||||||
|
if(pd[i].ps==BUSY_STATE)
|
||||||
|
pd[i].ps=PLAY_STATE;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int calc_alive(proxy_data *pd, int proxy_count)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
int alive_count=0;
|
||||||
|
release_busy(pd,proxy_count);
|
||||||
|
for(i=0;i<proxy_count;i++)
|
||||||
|
if(pd[i].ps==PLAY_STATE)
|
||||||
|
alive_count++;
|
||||||
|
return alive_count;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static int chain_step(int ns, proxy_data *pfrom, proxy_data *pto)
|
||||||
|
{
|
||||||
|
int retcode=-1;
|
||||||
|
|
||||||
|
proxychains_write_log("<>-%s:%d-",
|
||||||
|
inet_ntoa(*(struct in_addr*)&pto->ip),
|
||||||
|
htons(pto->port));
|
||||||
|
retcode =
|
||||||
|
tunnel_to(ns, pto->ip, pto->port, pfrom->pt, pfrom->user,
|
||||||
|
pfrom->pass);
|
||||||
|
switch(retcode) {
|
||||||
|
case SUCCESS:
|
||||||
|
pto->ps=BUSY_STATE;
|
||||||
|
break;
|
||||||
|
case BLOCKED:
|
||||||
|
pto->ps=BLOCKED_STATE;
|
||||||
|
proxychains_write_log("<--denied\n");
|
||||||
|
close(ns);
|
||||||
|
break;
|
||||||
|
case SOCKET_ERROR:
|
||||||
|
pto->ps=DOWN_STATE;
|
||||||
|
proxychains_write_log("<--timeout\n");
|
||||||
|
close(ns);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return retcode;
|
||||||
|
}
|
||||||
|
|
||||||
|
int connect_proxy_chain( int sock, unsigned int target_ip,
|
||||||
|
unsigned short target_port, proxy_data *pd,
|
||||||
|
unsigned int proxy_count, chain_type ct, int max_chain )
|
||||||
|
{
|
||||||
|
proxy_data p4;
|
||||||
|
proxy_data *p1,*p2,*p3;
|
||||||
|
int ns=-1;
|
||||||
|
int offset=0;
|
||||||
|
int alive_count=0;
|
||||||
|
int curr_len=0;
|
||||||
|
|
||||||
|
#define TP "<>"
|
||||||
|
#define DT "|D-chain|"
|
||||||
|
#define ST "|S-chain|"
|
||||||
|
#define RT "|R-chain|"
|
||||||
|
|
||||||
|
p3=&p4;
|
||||||
|
|
||||||
|
again:
|
||||||
|
switch(ct) {
|
||||||
|
case DYNAMIC_TYPE:
|
||||||
|
alive_count=calc_alive(pd,proxy_count);
|
||||||
|
offset=0;
|
||||||
|
do {
|
||||||
|
if(!(p1=select_proxy(FIFOLY,pd,proxy_count,&offset)))
|
||||||
|
goto error_more;
|
||||||
|
} while(SUCCESS!=start_chain(&ns,p1,DT) && offset<proxy_count);
|
||||||
|
for(;;) {
|
||||||
|
p2=select_proxy(FIFOLY,pd,proxy_count,&offset);
|
||||||
|
if(!p2)
|
||||||
|
break;
|
||||||
|
if(SUCCESS!=chain_step(ns,p1,p2))
|
||||||
|
goto again;
|
||||||
|
p1=p2;
|
||||||
|
}
|
||||||
|
proxychains_write_log(TP);
|
||||||
|
p3->ip=target_ip;
|
||||||
|
p3->port=target_port;
|
||||||
|
if(SUCCESS!=chain_step(ns,p1,p3))
|
||||||
|
goto error;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case STRICT_TYPE:
|
||||||
|
alive_count=calc_alive(pd,proxy_count);
|
||||||
|
offset=0;
|
||||||
|
if(!(p1=select_proxy(FIFOLY,pd,proxy_count,&offset)))
|
||||||
|
goto error_strict;
|
||||||
|
if(SUCCESS!=start_chain(&ns,p1,ST))
|
||||||
|
goto error_strict;
|
||||||
|
while(offset<proxy_count) {
|
||||||
|
if(!(p2=select_proxy(FIFOLY,pd,proxy_count,&offset)))
|
||||||
|
break;
|
||||||
|
if(SUCCESS!=chain_step(ns,p1,p2))
|
||||||
|
goto error_strict;
|
||||||
|
p1=p2;
|
||||||
|
}
|
||||||
|
proxychains_write_log(TP);
|
||||||
|
p3->ip=target_ip;
|
||||||
|
p3->port=target_port;
|
||||||
|
if(SUCCESS!=chain_step(ns,p1,p3))
|
||||||
|
goto error;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case RANDOM_TYPE:
|
||||||
|
alive_count=calc_alive(pd,proxy_count);
|
||||||
|
if(alive_count<max_chain)
|
||||||
|
goto error_more;
|
||||||
|
curr_len=offset=0;
|
||||||
|
do {
|
||||||
|
if(!(p1=select_proxy(RANDOMLY,pd,proxy_count,&offset)))
|
||||||
|
goto error_more;
|
||||||
|
} while(SUCCESS!=start_chain(&ns,p1,RT) && offset<max_chain);
|
||||||
|
while(++curr_len<max_chain) {
|
||||||
|
if(!(p2=select_proxy(RANDOMLY,pd,proxy_count,&offset)))
|
||||||
|
goto error_more;
|
||||||
|
if(SUCCESS!=chain_step(ns,p1,p2))
|
||||||
|
goto again;
|
||||||
|
p1=p2;
|
||||||
|
}
|
||||||
|
proxychains_write_log(TP);
|
||||||
|
p3->ip=target_ip;
|
||||||
|
p3->port=target_port;
|
||||||
|
if(SUCCESS!=chain_step(ns,p1,p3))
|
||||||
|
goto error;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
done:
|
||||||
|
proxychains_write_log("<><>-OK\n");
|
||||||
|
dup2(ns,sock);
|
||||||
|
close(ns);
|
||||||
|
return 0;
|
||||||
|
error:
|
||||||
|
if(ns!=-1)
|
||||||
|
close(ns);
|
||||||
|
errno = ECONNREFUSED; // for nmap ;)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
error_more:
|
||||||
|
proxychains_write_log("\n!!!need more proxies!!!\n");
|
||||||
|
error_strict:
|
||||||
|
release_all(pd,proxy_count);
|
||||||
|
if(ns!=-1)
|
||||||
|
close(ns);
|
||||||
|
errno = ETIMEDOUT;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct hostent hostent_space;
|
||||||
|
static in_addr_t resolved_addr;
|
||||||
|
static char* resolved_addr_p;
|
||||||
|
static char addr_name[1024*8];
|
||||||
|
struct hostent* proxy_gethostbyname(const char *name)
|
||||||
|
{
|
||||||
|
int pipe_fd[2];
|
||||||
|
char buff[256];
|
||||||
|
in_addr_t addr;
|
||||||
|
pid_t pid;
|
||||||
|
int status;
|
||||||
|
struct hostent* hp;
|
||||||
|
|
||||||
|
hostent_space.h_addr_list = &resolved_addr_p;
|
||||||
|
*hostent_space.h_addr_list = (char*)&resolved_addr;
|
||||||
|
resolved_addr = 0;
|
||||||
|
|
||||||
|
gethostname(buff,sizeof(buff));
|
||||||
|
if(!strcmp(buff,name))
|
||||||
|
goto got_buff;
|
||||||
|
|
||||||
|
bzero(buff,sizeof(buff));
|
||||||
|
|
||||||
|
// TODO: this works only once, so cache it ...
|
||||||
|
// later
|
||||||
|
while (hp=gethostent())
|
||||||
|
if (!strcmp(hp->h_name,name))
|
||||||
|
return hp;
|
||||||
|
|
||||||
|
if(pipe(pipe_fd))
|
||||||
|
goto err;
|
||||||
|
pid = fork();
|
||||||
|
switch(pid) {
|
||||||
|
|
||||||
|
case 0: // child
|
||||||
|
proxychains_write_log("|DNS-request| %s \n", name);
|
||||||
|
dup2(pipe_fd[1],1);
|
||||||
|
//dup2(pipe_fd[1],2);
|
||||||
|
// putenv("LD_PRELOAD=");
|
||||||
|
execlp("proxyresolv","proxyresolv",name,NULL);
|
||||||
|
perror("can't exec proxyresolv");
|
||||||
|
exit(2);
|
||||||
|
|
||||||
|
case -1: //error
|
||||||
|
close(pipe_fd[0]);
|
||||||
|
close(pipe_fd[1]);
|
||||||
|
perror("can't fork");
|
||||||
|
goto err;
|
||||||
|
|
||||||
|
default:
|
||||||
|
close(pipe_fd[1]);
|
||||||
|
waitpid(pid, &status, 0);
|
||||||
|
read(pipe_fd[0],&buff,sizeof(buff));
|
||||||
|
close(pipe_fd[0]);
|
||||||
|
got_buff:
|
||||||
|
addr = inet_addr(buff);
|
||||||
|
if (addr == -1)
|
||||||
|
goto err_dns;
|
||||||
|
memcpy(*(hostent_space.h_addr_list),
|
||||||
|
&addr ,sizeof(struct in_addr));
|
||||||
|
hostent_space.h_name = addr_name;
|
||||||
|
hostent_space.h_length = sizeof (in_addr_t);
|
||||||
|
}
|
||||||
|
proxychains_write_log("|DNS-response| %s is %s\n",
|
||||||
|
name, inet_ntoa(*(struct in_addr*)&addr));
|
||||||
|
return &hostent_space;
|
||||||
|
err_dns:
|
||||||
|
proxychains_write_log("|DNS-response|: %s is not exist\n", name);
|
||||||
|
err:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
int proxy_getaddrinfo(const char *node, const char *service,
|
||||||
|
const struct addrinfo *hints,
|
||||||
|
struct addrinfo **res)
|
||||||
|
{
|
||||||
|
struct servent *se = NULL;
|
||||||
|
struct hostent *hp = NULL;
|
||||||
|
struct sockaddr* sockaddr_space = NULL;
|
||||||
|
struct addrinfo* addrinfo_space = NULL;
|
||||||
|
|
||||||
|
// printf("proxy_getaddrinfo node %s service %s\n",node,service);
|
||||||
|
addrinfo_space = malloc(sizeof(struct addrinfo));
|
||||||
|
if(!addrinfo_space)
|
||||||
|
goto err1;
|
||||||
|
sockaddr_space = malloc(sizeof(struct sockaddr));
|
||||||
|
if(!sockaddr_space)
|
||||||
|
goto err2;
|
||||||
|
bzero(sockaddr_space, sizeof(*sockaddr_space));
|
||||||
|
bzero(addrinfo_space, sizeof(*addrinfo_space));
|
||||||
|
if (node &&
|
||||||
|
!inet_aton(node,&((struct sockaddr_in*)sockaddr_space)->sin_addr)) {
|
||||||
|
hp = proxy_gethostbyname(node);
|
||||||
|
if (hp)
|
||||||
|
memcpy(&((struct sockaddr_in*)sockaddr_space)->sin_addr,
|
||||||
|
*(hp->h_addr_list),
|
||||||
|
sizeof(in_addr_t));
|
||||||
|
else
|
||||||
|
goto err3;
|
||||||
|
}
|
||||||
|
if (service)
|
||||||
|
se = getservbyname(service, NULL);
|
||||||
|
|
||||||
|
if (!se) {
|
||||||
|
((struct sockaddr_in*)sockaddr_space)->sin_port =
|
||||||
|
htons(atoi(service?:"0"));
|
||||||
|
} else
|
||||||
|
((struct sockaddr_in*)sockaddr_space)->sin_port = se->s_port;
|
||||||
|
|
||||||
|
*res = addrinfo_space;
|
||||||
|
(*res)->ai_addr = sockaddr_space;
|
||||||
|
if (node)
|
||||||
|
strcpy(addr_name, node);
|
||||||
|
(*res)->ai_canonname = addr_name;
|
||||||
|
(*res)->ai_next = NULL;
|
||||||
|
(*res)->ai_family = sockaddr_space->sa_family = AF_INET;
|
||||||
|
(*res)->ai_socktype = hints->ai_socktype;
|
||||||
|
(*res)->ai_flags = hints->ai_flags;
|
||||||
|
(*res)->ai_protocol = hints->ai_protocol;
|
||||||
|
(*res)->ai_addrlen = sizeof(*sockaddr_space);
|
||||||
|
goto out;
|
||||||
|
err3:
|
||||||
|
free(sockaddr_space);
|
||||||
|
err2:
|
||||||
|
free(addrinfo_space);
|
||||||
|
err1:
|
||||||
|
return 1;
|
||||||
|
out:
|
||||||
|
return 0;
|
||||||
|
}
|
105
proxychains/core.h
Normal file
105
proxychains/core.h
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
core.h - description
|
||||||
|
-------------------
|
||||||
|
begin : Tue May 14 2002
|
||||||
|
copyright : netcreature (C) 2002
|
||||||
|
email : netcreature@users.sourceforge.net
|
||||||
|
***************************************************************************/
|
||||||
|
/* GPL */
|
||||||
|
/***************************************************************************
|
||||||
|
* *
|
||||||
|
* This program is free software; you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
#ifndef __CORE_HEADER
|
||||||
|
#define __CORE_HEADER
|
||||||
|
#define BUFF_SIZE 8*1024 // used to read responses from proxies.
|
||||||
|
/*error codes*/
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
SUCCESS=0,
|
||||||
|
MEMORY_FAIL, // malloc failed
|
||||||
|
SOCKET_ERROR, // look errno for more
|
||||||
|
CHAIN_DOWN, // no proxy in chain responds to tcp
|
||||||
|
CHAIN_EMPTY, // if proxy_count = 0
|
||||||
|
BLOCKED // target's port blocked on last proxy in the chain
|
||||||
|
} ERR_CODE;
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum {HTTP_TYPE,SOCKS4_TYPE,SOCKS5_TYPE} proxy_type;
|
||||||
|
typedef enum {DYNAMIC_TYPE,STRICT_TYPE,RANDOM_TYPE} chain_type;
|
||||||
|
typedef enum {PLAY_STATE,DOWN_STATE,BLOCKED_STATE,BUSY_STATE} proxy_state;
|
||||||
|
typedef enum {RANDOMLY,FIFOLY} select_type;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
unsigned int ip;
|
||||||
|
unsigned short port;
|
||||||
|
proxy_type pt;
|
||||||
|
proxy_state ps;
|
||||||
|
char user[256];
|
||||||
|
char pass[256];
|
||||||
|
} proxy_data;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
proxy_data *pd;
|
||||||
|
chain_type ct;
|
||||||
|
unsigned int proxy_count;
|
||||||
|
int sock;
|
||||||
|
struct sockaddr addr;
|
||||||
|
int flags;
|
||||||
|
} thread_arg;
|
||||||
|
|
||||||
|
int connect_proxy_chain (
|
||||||
|
int sock,
|
||||||
|
unsigned int target_ip,
|
||||||
|
unsigned short target_port,
|
||||||
|
proxy_data * pd,
|
||||||
|
unsigned int proxy_count,
|
||||||
|
chain_type ct,
|
||||||
|
int max_chain );
|
||||||
|
|
||||||
|
int proxychains_write_log(char *str,...);
|
||||||
|
struct hostent* proxy_gethostbyname(const char *name);
|
||||||
|
|
||||||
|
|
||||||
|
typedef int (*connect_t)(int, const struct sockaddr *, socklen_t);
|
||||||
|
connect_t true_connect;
|
||||||
|
|
||||||
|
typedef struct hostent* (*gethostbyname_t)(const char *);
|
||||||
|
gethostbyname_t true_gethostbyname;
|
||||||
|
|
||||||
|
typedef int (*getaddrinfo_t)(const char *, const char *,
|
||||||
|
const struct addrinfo *,
|
||||||
|
struct addrinfo **);
|
||||||
|
getaddrinfo_t true_getaddrinfo;
|
||||||
|
|
||||||
|
typedef int (*freeaddrinfo_t)(struct addrinfo *);
|
||||||
|
freeaddrinfo_t true_freeaddrinfo;
|
||||||
|
|
||||||
|
typedef int (*getnameinfo_t) (const struct sockaddr *,
|
||||||
|
socklen_t, char *,
|
||||||
|
socklen_t, char *,
|
||||||
|
socklen_t, unsigned int);
|
||||||
|
getnameinfo_t true_getnameinfo;
|
||||||
|
|
||||||
|
typedef struct hostent *(*gethostbyaddr_t) (const void *, socklen_t, int);
|
||||||
|
gethostbyaddr_t true_gethostbyaddr;
|
||||||
|
|
||||||
|
int proxy_getaddrinfo(const char *node, const char *service,
|
||||||
|
const struct addrinfo *hints,
|
||||||
|
struct addrinfo **res);
|
||||||
|
|
||||||
|
struct hostent* proxy_gethostbyname(const char *name);
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
#define PDEBUG(fmt, args...) fprintf(stderr,"DEBUG:"fmt, ## args)
|
||||||
|
#else
|
||||||
|
#define PDEBUG(fmt, args...)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
5
proxychains/docs/Makefile.am
Normal file
5
proxychains/docs/Makefile.am
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
####### kdevelop will overwrite this part!!! (begin)##########
|
||||||
|
|
||||||
|
SUBDIRS = en
|
||||||
|
|
||||||
|
####### kdevelop will overwrite this part!!! (end)############
|
308
proxychains/docs/Makefile.in
Normal file
308
proxychains/docs/Makefile.in
Normal file
@ -0,0 +1,308 @@
|
|||||||
|
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
####### kdevelop will overwrite this part!!! (begin)##########
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = ../..
|
||||||
|
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
AR = @AR@
|
||||||
|
AS = @AS@
|
||||||
|
CC = @CC@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
DLLTOOL = @DLLTOOL@
|
||||||
|
ECHO = @ECHO@
|
||||||
|
EGREP = @EGREP@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
F77 = @F77@
|
||||||
|
GCJ = @GCJ@
|
||||||
|
GCJFLAGS = @GCJFLAGS@
|
||||||
|
HAVE_LIB = @HAVE_LIB@
|
||||||
|
LIB = @LIB@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
LTLIB = @LTLIB@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
OBJDUMP = @OBJDUMP@
|
||||||
|
OBJEXT = @OBJEXT@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
RANLIB = @RANLIB@
|
||||||
|
RC = @RC@
|
||||||
|
STRIP = @STRIP@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
|
||||||
|
SUBDIRS = en
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_HEADER = ../../config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --gnu proxychains/docs/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
|
||||||
|
# This directory's subdirectories are mostly independent; you can cd
|
||||||
|
# into them and run `make' without going through this Makefile.
|
||||||
|
# To change the values of `make' variables: instead of editing Makefiles,
|
||||||
|
# (1) if the variable is set in `config.status', edit `config.status'
|
||||||
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||||
|
# (2) otherwise, pass the desired values on the `make' command line.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
|
all-recursive install-data-recursive install-exec-recursive \
|
||||||
|
installdirs-recursive install-recursive uninstall-recursive \
|
||||||
|
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||||
|
@set fnord $$MAKEFLAGS; amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
dot_seen=yes; \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done; \
|
||||||
|
if test "$$dot_seen" = "no"; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||||
|
fi; test -z "$$fail"
|
||||||
|
|
||||||
|
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||||
|
maintainer-clean-recursive:
|
||||||
|
@set fnord $$MAKEFLAGS; amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
rev="$$subdir $$rev"; \
|
||||||
|
test "$$subdir" != "." || dot_seen=yes; \
|
||||||
|
done; \
|
||||||
|
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
for subdir in $$rev; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done && test -z "$$fail"
|
||||||
|
tags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||||
|
done
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
here=`pwd` && cd $(srcdir) \
|
||||||
|
&& mkid -f$$here/ID $$unique $(LISP)
|
||||||
|
|
||||||
|
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||||
|
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
|
||||||
|
|
||||||
|
mostlyclean-tags:
|
||||||
|
|
||||||
|
clean-tags:
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID
|
||||||
|
|
||||||
|
maintainer-clean-tags:
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = proxychains/docs
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
here=`cd $(top_builddir) && pwd`; \
|
||||||
|
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||||
|
distdir=`cd $(distdir) && pwd`; \
|
||||||
|
cd $(top_srcdir) \
|
||||||
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu proxychains/docs/Makefile
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
for subdir in $(SUBDIRS); do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -d $(distdir)/$$subdir \
|
||||||
|
|| mkdir $(distdir)/$$subdir \
|
||||||
|
|| exit 1; \
|
||||||
|
chmod 777 $(distdir)/$$subdir; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
info-am:
|
||||||
|
info: info-recursive
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-recursive
|
||||||
|
check-am: all-am
|
||||||
|
check: check-recursive
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-recursive
|
||||||
|
install-exec-am:
|
||||||
|
install-exec: install-exec-recursive
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
install-data: install-data-recursive
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-recursive
|
||||||
|
uninstall-am:
|
||||||
|
uninstall: uninstall-recursive
|
||||||
|
all-am: Makefile
|
||||||
|
all-redirect: all-recursive
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs: installdirs-recursive
|
||||||
|
installdirs-am:
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-tags mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-recursive
|
||||||
|
|
||||||
|
clean-am: clean-tags clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-recursive
|
||||||
|
|
||||||
|
distclean-am: distclean-tags distclean-generic clean-am
|
||||||
|
-rm -f libtool
|
||||||
|
|
||||||
|
distclean: distclean-recursive
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
|
||||||
|
distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-recursive
|
||||||
|
|
||||||
|
.PHONY: install-data-recursive uninstall-data-recursive \
|
||||||
|
install-exec-recursive uninstall-exec-recursive installdirs-recursive \
|
||||||
|
uninstalldirs-recursive all-recursive check-recursive \
|
||||||
|
installcheck-recursive info-recursive dvi-recursive \
|
||||||
|
mostlyclean-recursive distclean-recursive clean-recursive \
|
||||||
|
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||||
|
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
||||||
|
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
|
||||||
|
install-exec install-data-am install-data install-am install \
|
||||||
|
uninstall-am uninstall all-redirect all-am all installdirs-am \
|
||||||
|
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||||
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
####### kdevelop will overwrite this part!!! (end)############
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
4
proxychains/docs/en/Makefile.am
Normal file
4
proxychains/docs/en/Makefile.am
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
####### kdevelop will overwrite this part!!! (begin)##########
|
||||||
|
|
||||||
|
|
||||||
|
####### kdevelop will overwrite this part!!! (end)############
|
202
proxychains/docs/en/Makefile.in
Normal file
202
proxychains/docs/en/Makefile.in
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
####### kdevelop will overwrite this part!!! (begin)##########
|
||||||
|
|
||||||
|
####### kdevelop will overwrite this part!!! (end)############
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = ../../..
|
||||||
|
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
AR = @AR@
|
||||||
|
AS = @AS@
|
||||||
|
CC = @CC@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
DLLTOOL = @DLLTOOL@
|
||||||
|
ECHO = @ECHO@
|
||||||
|
EGREP = @EGREP@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
F77 = @F77@
|
||||||
|
GCJ = @GCJ@
|
||||||
|
GCJFLAGS = @GCJFLAGS@
|
||||||
|
HAVE_LIB = @HAVE_LIB@
|
||||||
|
LIB = @LIB@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
LTLIB = @LTLIB@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
OBJDUMP = @OBJDUMP@
|
||||||
|
OBJEXT = @OBJEXT@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
RANLIB = @RANLIB@
|
||||||
|
RC = @RC@
|
||||||
|
STRIP = @STRIP@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_HEADER = ../../../config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --gnu proxychains/docs/en/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = proxychains/docs/en
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
here=`cd $(top_builddir) && pwd`; \
|
||||||
|
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||||
|
distdir=`cd $(distdir) && pwd`; \
|
||||||
|
cd $(top_srcdir) \
|
||||||
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu proxychains/docs/en/Makefile
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
info-am:
|
||||||
|
info: info-am
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-am
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-exec-am:
|
||||||
|
install-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am:
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
clean-am: clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
distclean-am: distclean-generic clean-am
|
||||||
|
-rm -f libtool
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-generic distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
|
||||||
|
.PHONY: tags distdir info-am info dvi-am dvi check check-am \
|
||||||
|
installcheck-am installcheck install-exec-am install-exec \
|
||||||
|
install-data-am install-data install-am install uninstall-am uninstall \
|
||||||
|
all-redirect all-am all installdirs mostlyclean-generic \
|
||||||
|
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||||
|
mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
321
proxychains/libproxychains.c
Normal file
321
proxychains/libproxychains.c
Normal file
@ -0,0 +1,321 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
libproxychains.c - description
|
||||||
|
-------------------
|
||||||
|
begin : Tue May 14 2002
|
||||||
|
copyright : netcreature (C) 2002
|
||||||
|
email : netcreature@users.sourceforge.net
|
||||||
|
***************************************************************************/
|
||||||
|
/* GPL */
|
||||||
|
/***************************************************************************
|
||||||
|
* *
|
||||||
|
* This program is free software; you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
#define _GNU_SOURCE
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <memory.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <netdb.h>
|
||||||
|
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/fcntl.h>
|
||||||
|
#include <dlfcn.h>
|
||||||
|
|
||||||
|
|
||||||
|
#include "core.h"
|
||||||
|
|
||||||
|
#define satosin(x) ((struct sockaddr_in *) &(x))
|
||||||
|
#define SOCKADDR(x) (satosin(x)->sin_addr.s_addr)
|
||||||
|
#define SOCKADDR_2(x) (satosin(x)->sin_addr)
|
||||||
|
#define SOCKPORT(x) (satosin(x)->sin_port)
|
||||||
|
#define SOCKFAMILY(x) (satosin(x)->sin_family)
|
||||||
|
#define MAX_CHAIN 30*1024
|
||||||
|
|
||||||
|
int tcp_read_time_out;
|
||||||
|
int tcp_connect_time_out;
|
||||||
|
chain_type proxychains_ct;
|
||||||
|
proxy_data proxychains_pd[MAX_CHAIN];
|
||||||
|
int proxychains_proxy_count = 0;
|
||||||
|
int proxychains_got_chain_data = 0;
|
||||||
|
int proxychains_max_chain = 1;
|
||||||
|
int proxychains_quiet_mode = 0;
|
||||||
|
int proxychains_resolver = 0;
|
||||||
|
static int init_l = 0;
|
||||||
|
static inline void get_chain_data(
|
||||||
|
proxy_data *pd,
|
||||||
|
unsigned int *proxy_count,
|
||||||
|
chain_type *ct);
|
||||||
|
|
||||||
|
static void init_lib()
|
||||||
|
{
|
||||||
|
// proxychains_write_log("ProxyChains-"VERSION
|
||||||
|
// " (http://proxychains.sf.net)\n");
|
||||||
|
|
||||||
|
get_chain_data(proxychains_pd,&proxychains_proxy_count,&proxychains_ct);
|
||||||
|
true_connect = (connect_t) dlsym(RTLD_NEXT, "connect");
|
||||||
|
|
||||||
|
if (!true_connect) {
|
||||||
|
fprintf(stderr, "Cannot load symbol 'connect' %s\n", dlerror());
|
||||||
|
exit(1);
|
||||||
|
} else {
|
||||||
|
// PDEBUG( "loaded symbol 'connect'"
|
||||||
|
// " real addr %p wrapped addr %p\n",
|
||||||
|
// true_connect, connect);
|
||||||
|
}
|
||||||
|
true_gethostbyname = (gethostbyname_t)
|
||||||
|
dlsym(RTLD_NEXT, "gethostbyname");
|
||||||
|
|
||||||
|
if (!true_gethostbyname) {
|
||||||
|
fprintf(stderr, "Cannot load symbol 'gethostbyname' %s\n",
|
||||||
|
dlerror());
|
||||||
|
exit(1);
|
||||||
|
} else {
|
||||||
|
// PDEBUG( "loaded symbol 'gethostbyname'"
|
||||||
|
// " real addr %p wrapped addr %p\n",
|
||||||
|
// true_gethostbyname, gethostbyname);
|
||||||
|
}
|
||||||
|
true_getaddrinfo = (getaddrinfo_t)
|
||||||
|
dlsym(RTLD_NEXT, "getaddrinfo");
|
||||||
|
|
||||||
|
if (!true_getaddrinfo) {
|
||||||
|
fprintf(stderr, "Cannot load symbol 'getaddrinfo' %s\n",
|
||||||
|
dlerror());
|
||||||
|
exit(1);
|
||||||
|
} else {
|
||||||
|
// PDEBUG( "loaded symbol 'getaddrinfo'"
|
||||||
|
// " real addr %p wrapped addr %p\n",
|
||||||
|
// true_getaddrinfo, getaddrinfo);
|
||||||
|
}
|
||||||
|
true_freeaddrinfo = (freeaddrinfo_t)
|
||||||
|
dlsym(RTLD_NEXT, "freeaddrinfo");
|
||||||
|
|
||||||
|
if (!true_freeaddrinfo) {
|
||||||
|
fprintf(stderr, "Cannot load symbol 'freeaddrinfo' %s\n",
|
||||||
|
dlerror());
|
||||||
|
exit(1);
|
||||||
|
} else {
|
||||||
|
// PDEBUG( "loaded symbol 'freeaddrinfo'"
|
||||||
|
// " real addr %p wrapped addr %p\n",
|
||||||
|
// true_freeaddrinfo, freeaddrinfo);
|
||||||
|
}
|
||||||
|
true_gethostbyaddr = (gethostbyaddr_t)
|
||||||
|
dlsym(RTLD_NEXT, "gethostbyaddr");
|
||||||
|
|
||||||
|
if (!true_gethostbyaddr) {
|
||||||
|
fprintf(stderr, "Cannot load symbol 'gethostbyaddr' %s\n",
|
||||||
|
dlerror());
|
||||||
|
exit(1);
|
||||||
|
} else {
|
||||||
|
// PDEBUG( "loaded symbol 'gethostbyaddr'"
|
||||||
|
// " real addr %p wrapped addr %p\n",
|
||||||
|
// true_gethostbyaddr, gethostbyaddr);
|
||||||
|
}
|
||||||
|
true_getnameinfo = (getnameinfo_t)
|
||||||
|
dlsym(RTLD_NEXT, "getnameinfo");
|
||||||
|
|
||||||
|
if (!true_getnameinfo) {
|
||||||
|
fprintf(stderr, "Cannot load symbol 'getnameinfo' %s\n",
|
||||||
|
dlerror());
|
||||||
|
exit(1);
|
||||||
|
} else {
|
||||||
|
// PDEBUG( "loaded symbol 'getnameinfo'"
|
||||||
|
// " real addr %p wrapped addr %p\n",
|
||||||
|
// true_getnameinfo, getnameinfo);
|
||||||
|
}
|
||||||
|
init_l = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static inline void get_chain_data(
|
||||||
|
proxy_data *pd,
|
||||||
|
unsigned int *proxy_count,
|
||||||
|
chain_type *ct)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
int count=0,port_n=0,list=0;
|
||||||
|
char buff[1024],type[1024],host[1024],user[1024];
|
||||||
|
FILE* file;
|
||||||
|
|
||||||
|
if(proxychains_got_chain_data)
|
||||||
|
return;
|
||||||
|
|
||||||
|
//Some defaults
|
||||||
|
tcp_read_time_out=4*1000;
|
||||||
|
tcp_connect_time_out=10*1000;
|
||||||
|
*ct=DYNAMIC_TYPE;
|
||||||
|
|
||||||
|
snprintf(buff,256,"%s/.proxychains/proxychains.conf",getenv("HOME"));
|
||||||
|
|
||||||
|
if(!(file=fopen("./proxychains.conf","r")))
|
||||||
|
if(!(file=fopen(buff,"r")))
|
||||||
|
if(!(file=fopen("/etc/proxychains.conf","r")))
|
||||||
|
{
|
||||||
|
perror("Can't locate proxychains.conf");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
while(fgets(buff,sizeof(buff),file)) {
|
||||||
|
if(buff[strspn(buff," ")]!='#') {
|
||||||
|
if(list) {
|
||||||
|
bzero(&pd[count], sizeof(proxy_data));
|
||||||
|
pd[count].ps=PLAY_STATE;
|
||||||
|
port_n=0;
|
||||||
|
sscanf(buff,"%s %s %d %s %s", type,host,&port_n,
|
||||||
|
pd[count].user,pd[count].pass);
|
||||||
|
pd[count].ip=inet_addr(host);
|
||||||
|
pd[count].port=htons((unsigned short)port_n);
|
||||||
|
if(!strcmp(type,"http")) {
|
||||||
|
pd[count].pt=HTTP_TYPE;
|
||||||
|
}else if(!strcmp(type,"socks4")) {
|
||||||
|
pd[count].pt=SOCKS4_TYPE;
|
||||||
|
}else if(!strcmp(type,"socks5")) {
|
||||||
|
pd[count].pt=SOCKS5_TYPE;
|
||||||
|
}else continue;
|
||||||
|
|
||||||
|
if( pd[count].ip && pd[count].ip!=-1 && port_n)
|
||||||
|
if(++count==MAX_CHAIN)
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
if(strstr(buff,"[ProxyList]")) {
|
||||||
|
list=1;
|
||||||
|
} else if(strstr(buff,"random_chain")) {
|
||||||
|
*ct=RANDOM_TYPE;
|
||||||
|
} else if(strstr(buff,"strict_chain")) {
|
||||||
|
*ct=STRICT_TYPE;
|
||||||
|
} else if(strstr(buff,"dynamic_chain")) {
|
||||||
|
*ct=DYNAMIC_TYPE;
|
||||||
|
}else if(strstr(buff,"tcp_read_time_out")){
|
||||||
|
sscanf(buff,"%s %d",user,&tcp_read_time_out) ;
|
||||||
|
}else if(strstr(buff,"tcp_connect_time_out")){
|
||||||
|
sscanf(buff,"%s %d",user,&tcp_connect_time_out) ;
|
||||||
|
}else if(strstr(buff,"chain_len")){
|
||||||
|
char *pc;int len;
|
||||||
|
pc=strchr(buff,'=');
|
||||||
|
len=atoi(++pc);
|
||||||
|
proxychains_max_chain=(len?len:1);
|
||||||
|
}else if(strstr(buff,"quiet_mode")){
|
||||||
|
proxychains_quiet_mode=1;
|
||||||
|
}else if(strstr(buff,"proxy_dns")){
|
||||||
|
proxychains_resolver=1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fclose(file);
|
||||||
|
*proxy_count=count;
|
||||||
|
proxychains_got_chain_data=1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
int connect (int sock, const struct sockaddr *addr, unsigned int len)
|
||||||
|
{
|
||||||
|
int socktype=0,optlen=0,flags=0,ret=0;
|
||||||
|
|
||||||
|
if(!init_l)
|
||||||
|
init_lib();
|
||||||
|
optlen=sizeof(socktype);
|
||||||
|
getsockopt(sock,SOL_SOCKET,SO_TYPE,&socktype,&optlen);
|
||||||
|
if (! (SOCKFAMILY(*addr)==AF_INET && socktype==SOCK_STREAM))
|
||||||
|
return true_connect(sock,addr,len);
|
||||||
|
flags=fcntl(sock, F_GETFL, 0);
|
||||||
|
if(flags & O_NONBLOCK)
|
||||||
|
fcntl(sock, F_SETFL, !O_NONBLOCK);
|
||||||
|
ret=connect_proxy_chain(
|
||||||
|
sock,
|
||||||
|
SOCKADDR(*addr),
|
||||||
|
SOCKPORT(*addr),
|
||||||
|
proxychains_pd,
|
||||||
|
proxychains_proxy_count,
|
||||||
|
proxychains_ct,
|
||||||
|
proxychains_max_chain );
|
||||||
|
fcntl(sock, F_SETFL, flags);
|
||||||
|
if(ret!=SUCCESS)
|
||||||
|
errno=ECONNREFUSED;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct hostent *gethostbyname(const char *name)
|
||||||
|
{
|
||||||
|
PDEBUG("gethostbyname: %s\n",name);
|
||||||
|
if(!init_l)
|
||||||
|
init_lib();
|
||||||
|
if(proxychains_resolver)
|
||||||
|
return proxy_gethostbyname(name);
|
||||||
|
else
|
||||||
|
return true_gethostbyname(name);
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
int getaddrinfo(const char *node, const char *service,
|
||||||
|
const struct addrinfo *hints,
|
||||||
|
struct addrinfo **res)
|
||||||
|
{
|
||||||
|
int ret = 0;
|
||||||
|
PDEBUG("getaddrinfo: %s %s\n",node ,service);
|
||||||
|
if(!init_l)
|
||||||
|
init_lib();
|
||||||
|
if(proxychains_resolver)
|
||||||
|
ret = proxy_getaddrinfo(node, service, hints, res);
|
||||||
|
else
|
||||||
|
ret = true_getaddrinfo(node, service, hints, res);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
void freeaddrinfo(struct addrinfo *res)
|
||||||
|
{
|
||||||
|
PDEBUG("freeaddrinfo %p \n",res);
|
||||||
|
if(!init_l)
|
||||||
|
init_lib();
|
||||||
|
if(!proxychains_resolver)
|
||||||
|
true_freeaddrinfo(res);
|
||||||
|
else {
|
||||||
|
free(res->ai_addr);
|
||||||
|
free(res);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
int getnameinfo (const struct sockaddr * sa,
|
||||||
|
socklen_t salen, char * host,
|
||||||
|
socklen_t hostlen, char * serv,
|
||||||
|
socklen_t servlen, unsigned int flags)
|
||||||
|
{
|
||||||
|
int ret = 0;
|
||||||
|
if(!init_l)
|
||||||
|
init_lib();
|
||||||
|
if(!proxychains_resolver) {
|
||||||
|
ret = true_getnameinfo(sa,salen,host,hostlen,
|
||||||
|
serv,servlen,flags);
|
||||||
|
} else {
|
||||||
|
if(hostlen)
|
||||||
|
strncpy(host, inet_ntoa(SOCKADDR_2(*sa)),hostlen);
|
||||||
|
if(servlen)
|
||||||
|
snprintf(serv, servlen,"%d",ntohs(SOCKPORT(*sa)));
|
||||||
|
}
|
||||||
|
PDEBUG("getnameinfo: %s %s\n", host, serv);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
struct hostent *gethostbyaddr (const void *addr, socklen_t len,
|
||||||
|
int type)
|
||||||
|
{
|
||||||
|
PDEBUG("TODO: gethostbyaddr hook\n");
|
||||||
|
if(!init_l)
|
||||||
|
init_lib();
|
||||||
|
if(!proxychains_resolver)
|
||||||
|
return true_gethostbyaddr(addr,len,type);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
48
proxychains/main.c
Normal file
48
proxychains/main.c
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
main.c - description
|
||||||
|
-------------------
|
||||||
|
begin : Tue May 14 2002
|
||||||
|
copyright : netcreature (C) 2002
|
||||||
|
email : netcreature@users.sourceforge.net
|
||||||
|
***************************************************************************/
|
||||||
|
/* GPL */
|
||||||
|
/***************************************************************************
|
||||||
|
* *
|
||||||
|
* This program is free software; you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* well ... actually this file could be a shell script ... but C rulez :).
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <memory.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
if(argc<2)
|
||||||
|
{
|
||||||
|
printf("\nUsage: proxychains program_name [arguments]\n"
|
||||||
|
"\t for example : proxychains telnet somehost.com\n"
|
||||||
|
"More help in README file\n");
|
||||||
|
return 0 ;
|
||||||
|
}
|
||||||
|
putenv("LD_PRELOAD=/usr/lib/libproxychains.so");
|
||||||
|
execvp(argv[1],&argv[1]);
|
||||||
|
perror("proxychains can't load process....");
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
9
proxychains/proxychains
Executable file
9
proxychains/proxychains
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "ProxyChains-3.1 (http://proxychains.sf.net)"
|
||||||
|
if [ $# = 0 ] ; then
|
||||||
|
echo " usage:"
|
||||||
|
echo " proxychains <prog> [args]"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
export LD_PRELOAD=libproxychains.so
|
||||||
|
exec "$@"
|
65
proxychains/proxychains.conf
Normal file
65
proxychains/proxychains.conf
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
# proxychains.conf VER 3.1
|
||||||
|
#
|
||||||
|
# HTTP, SOCKS4, SOCKS5 tunneling proxifier with DNS.
|
||||||
|
#
|
||||||
|
|
||||||
|
# The option below identifies how the ProxyList is treated.
|
||||||
|
# only one option should be uncommented at time,
|
||||||
|
# otherwise the last appearing option will be accepted
|
||||||
|
#
|
||||||
|
#dynamic_chain
|
||||||
|
#
|
||||||
|
# Dynamic - Each connection will be done via chained proxies
|
||||||
|
# all proxies chained in the order as they appear in the list
|
||||||
|
# at least one proxy must be online to play in chain
|
||||||
|
# (dead proxies are skipped)
|
||||||
|
# otherwise EINTR is returned to the app
|
||||||
|
#
|
||||||
|
strict_chain
|
||||||
|
#
|
||||||
|
# Strict - Each connection will be done via chained proxies
|
||||||
|
# all proxies chained in the order as they appear in the list
|
||||||
|
# all proxies must be online to play in chain
|
||||||
|
# otherwise EINTR is returned to the app
|
||||||
|
#
|
||||||
|
#random_chain
|
||||||
|
#
|
||||||
|
# Random - Each connection will be done via random proxy
|
||||||
|
# (or proxy chain, see chain_len) from the list.
|
||||||
|
# this option is good to test your IDS :)
|
||||||
|
|
||||||
|
# Make sense only if random_chain
|
||||||
|
#chain_len = 2
|
||||||
|
|
||||||
|
# Quiet mode (no output from library)
|
||||||
|
#quiet_mode
|
||||||
|
|
||||||
|
# Proxy DNS requests - no leak for DNS data
|
||||||
|
proxy_dns
|
||||||
|
|
||||||
|
# Some timeouts in milliseconds
|
||||||
|
tcp_read_time_out 15000
|
||||||
|
tcp_connect_time_out 8000
|
||||||
|
|
||||||
|
# ProxyList format
|
||||||
|
# type host port [user pass]
|
||||||
|
# (values separated by 'tab' or 'blank')
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Examples:
|
||||||
|
#
|
||||||
|
# socks5 192.168.67.78 1080 lamer secret
|
||||||
|
# http 192.168.89.3 8080 justu hidden
|
||||||
|
# socks4 192.168.1.49 1080
|
||||||
|
# http 192.168.39.93 8080
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# proxy types: http, socks4, socks5
|
||||||
|
# ( auth types supported: "basic"-http "user/pass"-socks )
|
||||||
|
#
|
||||||
|
[ProxyList]
|
||||||
|
# add proxy here ...
|
||||||
|
# meanwile
|
||||||
|
# defaults set to "tor"
|
||||||
|
socks4 127.0.0.1 9050
|
||||||
|
|
16
proxychains/proxyresolv
Executable file
16
proxychains/proxyresolv
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# This script is called by proxychains to resolve DNS names
|
||||||
|
|
||||||
|
# DNS server used to resolve names
|
||||||
|
DNS_SERVER=4.2.2.2
|
||||||
|
|
||||||
|
|
||||||
|
if [ $# = 0 ] ; then
|
||||||
|
echo " usage:"
|
||||||
|
echo " proxyresolv <hostname> "
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
export LD_PRELOAD=libproxychains.so
|
||||||
|
dig $1 @$DNS_SERVER +tcp | awk '/A.+[0-9]+\.[0-9]+\.[0-9]/{print $5;}'
|
1
stamp-h.in
Normal file
1
stamp-h.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
timestamp
|
Loading…
Reference in New Issue
Block a user