Comments (11)
ah i understand. yes, not adding the second C file causes miscompilation.
the easiest thing to do is delete your proxychains dir
then
git clone https://github.com/rofl0r/proxychains
and build again
alternatively you can re-extract the 4.3 version tarball, and then change line 386 in libproxychains.c from
#if defined(__GLIBC__) && (__GLIBC__ < 3) && (__GLIBC_MINOR__ < 14)
to
#if 0
from proxychains-ng.
thanks for your report!
can you paste the declaration of getnameinfo on line 677 of your /usr/include/netdb.h ?
and please tell me which version of glibc you use.
you can get this information by executing libc.so (location of libc.so.6 may differ on your system) directly like this:
$ /lib64/libc.so.6
GNU C Library stable release version 2.11.3 (20110203), by Roland McGrath et al.
from proxychains-ng.
extern int getnameinfo (__const struct sockaddr *__restrict __sa,
socklen_t __salen, char *__restrict __host,
socklen_t __hostlen, char *__restrict __serv,
socklen_t __servlen, int __flags);
root@iceland:~/proxychains-4.3# /lib64/libc.so.6
Compiled by GNU CC version 4.4.5.
Compiled on a Linux 2.6.32 system on 2012-06-06.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
from proxychains-ng.
the version number is missing from your output
if it is missing from your libc.so output, try this c program
#include <stdio.h>
int main() { printf("glibc v %d.%d\n", __GLIBC__, __GLIBC_MINOR__); }
from proxychains-ng.
this here is the relevant code
https://github.com/rofl0r/proxychains/blob/master/src/libproxychains.c#L384
old glibc versions had a wrong prototype (should be int instead of unsigned int), this should fix it for all affected versions
(according to my knowlegde up to 2.14)
from proxychains-ng.
this is the commit that fixed it in glibc.git
http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=e4ecafe004b3d4270b3a9dace8f970047400ed38
from proxychains-ng.
Thank you very much for the epic support.
I changed the libproxychains.c to the one that you supplied and the make worked fine.
I dont know if its normal though but when i try to execute it i always get:
root@iceland:~/proxychains-4.3# ./proxychains4 -f /etc/proxychains.conf irssi
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading ./libproxychains4.so
[proxychains] DLL init
Aborted
root@iceland:~/proxychains-4.3# ./proxychains4 telnet google.com 80
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading ./libproxychains4.so
[proxychains] DLL init
Aborted
Do i just miss the proxychains.conf or this is not normal ? Thanks rofl0r, and keep up the good work.
from proxychains-ng.
did you change only libproxychains.c or did you add the second .c file (nameinfo.c) and makefile changes as well ?
you should make the changes to all 3 files, then make clean && make again. does that fix it?
if not:
which version of debian is this (so that i can download and test)
can you execute:
gdb --args ./proxychains4 telnet google.com 80
then press "r" and enter, and when the message "aborted" appears, enter "bt" and paste the backtrace information here ?
from proxychains-ng.
This is what i get:
Program received signal SIGABRT, Aborted.
0x00007ffff6e701b5 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00007ffff6e701b5 in raise () from /lib/libc.so.6
#1 0x00007ffff6e72fc0 in abort () from /lib/libc.so.6
#2 0x00007ffff7b970f9 in load_sym (symname=0x7ffff7b992c1 "getnameinfo",
proxyfunc=0x7ffff6f294c0) at src/libproxychains.c:86
#3 0x00007ffff7b97221 in do_init () at src/libproxychains.c:115
#4 0x00007ffff6a2a7a3 in pthread_once () from /lib/libpthread.so.0
#5 0x00007ffff7b9725c in init_lib_wrapper (caller=0x7ffff7b994d6 "gcc_init")
at src/libproxychains.c:136
#6 0x00007ffff7b9726e in gcc_init () at src/libproxychains.c:147
#7 0x00007ffff7b98f86 in __do_global_ctors_aux () from ./libproxychains4.so
#8 0x00007ffff7b9482b in _init () from ./libproxychains4.so
#9 0x00007fffffffec28 in ?? ()
#10 0x00007ffff7decc69 in ?? () from /lib64/ld-linux-x86-64.so.2
#11 0x00007ffff7decda7 in ?? () from /lib64/ld-linux-x86-64.so.2
#12 0x00007ffff7ddfb2a in ?? () from /lib64/ld-linux-x86-64.so.2
#13 0x0000000000000003 in ?? ()
#14 0x00007fffffffee2b in ?? ()
#15 0x00007fffffffee32 in ?? ()
#16 0x00007fffffffee3d in ?? ()
#17 0x0000000000000000 in ?? ()
(gdb)
I ony changed the libproxychains.c with the one you provided, i didnt understand that i had to change other files.
Do i have to modify /usr/include/netdb.h at line 677?
from proxychains-ng.
I re-extract the 4.3 from tarball and changed the line 386 as you said. Now everything works perfect.
<3
Is there a way to make proxychains keep on changing proxies on each connection attempt?
Do you hang around some irc chan by any chance?
Take care.
from proxychains-ng.
nice!
you can find me momentarily in #proxychains @ irc.oftc.net
i think the mode you want is "random_chain" (see proxychains.conf file)
from proxychains-ng.
Related Issues (20)
- Q: Is there a way to list the Tor proxies that are being used? HOT 2
- Feature request: SPNEGO Authentication HOT 5
- How to prevent WebRTC IP leaks? HOT 2
- what should I do if I encountered something like below? I'm working with MacOS m1 pro silicon. HOT 1
- can't access local vpn with proxychains: "curl: (52) Empty reply from server" HOT 1
- proxychains4 error HOT 7
- proxychains4 fail on curl check while proxychains-ng successfully installed on macOS with Homebrew `brew` and config looks good HOT 1
- How m2 chip should use proxychains4 HOT 3
- dnsleak with brave browser HOT 9
- Request: use proxy list / import HOT 1
- FFmpeg hangs when with proxychain HOT 4
- How to let an application that started or enabled by "systemctl " use proxychains-ng on Linux? HOT 1
- Incompatible architecture error on macOS 13.5 with proxychains-ng and Ruby HOT 6
- New requirement: Need all purpose ACL in configuration HOT 10
- Problem with UDP in proxychains-ng fork hc-syn/proxychains-ng branch "udp-associate": Segmentation fault when dealing with sendto(*) HOT 4
- proxychains does not work with firefox HOT 16
- Firefox canβt establish a connection to the server at wss:// (<--socket error or timeout!) with proxychains-ng 4.17 HOT 4
- Couldn't connect to server using proxychains-ng, but works fine with curl -x HOT 5
- Build error on macOS: `core.c: error: macro "memcpy" passed 6 arguments, but takes just 3`
- Build fails on Sonoma with clang: `libproxychains.c: error: incompatible function pointer types assigning to 'freeaddrinfo_t' (aka 'int (*)(struct addrinfo *)') from 'void (*)(struct addrinfo *)' [-Wincompatible-function-pointer-types]` HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxychains-ng.