rofl0r / rofl0r/proxychains-ng

Cannot run iOS Simulator is proxychains

Open
#104 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
10.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I cannot run iOS Simulator with proxychains-ng. I use proxychains-ng build from sources.

Here is what I did:

git clone https://github.com/rofl0r/proxychains-ng.git
cd ./proxychains-ng
./configure --prefix=/usr --sysconfdir=/etc --fat-binary
make
sudo make install

I checked architecture of the library:

lipo -info ./libproxychains4.dylib 
Architectures in the fat file: ./libproxychains4.dylib are: i386 x86_64 

Then I configured and checked SOCKS proxy:

./proxychains4 -f src/proxychains.conf curl ipinfo.io
[proxychains] config file found: src/proxychains.conf
[proxychains] preloading ./libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.10-git-20-g672bf76
[proxychains] Strict chain  ...  127.0.0.1:8888  ...  ipinfo.io:80  ...  OK
...

So far everything seems to be just fine. Now about the problem. When I tty to run iOS Simulator I get an error. Here is a command I use to run Simulator:

./proxychains4 -f src/proxychains.conf /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator

Here is the error:

Process:               Simulator [9568]
Path:                  /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator
Identifier:            Simulator
Version:               9.2 (643)
Code Type:             X86-64 (Native)
Parent Process:        bash [8880]
Responsible:           Terminal [317]
User ID:               501

Date/Time:             2016-01-26 14:57:08.045 +0100
OS Version:            Mac OS X 10.11.2 (15C50)
Report Version:        11
Anonymous UUID:        A7A163E5-5585-26AF-F4EF-3FEF20B0B226

Sleep/Wake UUID:       03B6382A-7234-4E01-A498-4916200A4573

Time Awake Since Boot: 10000 seconds

System Integrity Protection: disabled

Crashed Thread:        0

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000

Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_FORCE_FLAT_NAMESPACE=1
DYLD_INSERT_LIBRARIES=./libproxychains4.dylib

Dyld Error Message:
  could not load inserted library './libproxychains4.dylib' because no suitable image found.  Did find:
    ./libproxychains4.dylib: mmap() error 1 at address=0x10E7F3000, size=0x00008000 segment=__TEXT in Segment::map() mapping ./libproxychains4.dylib

Binary Images:
       0x10e7a7000 -        0x10e7d3ff7  com.apple.iphonesimulator (9.2 - 643) <2A577F90-517C-3363-A980-EEB79D21FEBF> /Applications/Xcode.app/Contents/Developer/    Applications/Simulator.app/Contents/MacOS/Simulator
    0x7fff6af66000 -     0x7fff6af9cfa7  dyld (360.18) <1A7F8274-FC32-3B86-9979-66B8F2B7B5E2> /usr/lib/dyld

Any ideas how to fix it?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the build commands and the generated libproxychains4.dylib, then inspect the dyld error from launching /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator. Compare the reported i386/x86_64 library architectures with the Simulator process and verify whether the Simulator can launch through proxychains-ng without the inserted-library failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.