GithubHelp home page GithubHelp logo

jamestiotio / usbfluxd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from corellium/usbfluxd

0.0 1.0 0.0 2.08 MB

Redirects the standard usbmuxd socket to allow connections to local and remote usbmuxd instances so remote devices appear connected locally.

License: GNU General Public License v2.0

Shell 1.39% C 50.46% Objective-C 45.92% Makefile 0.32% M4 1.92%

usbfluxd's Introduction

About

Redirects the standard usbmuxd socket to allow connections to local and remote usbmuxd instances so remote devices appear connected locally.

Installation

Copy usbfluxd binary to a location included in $PATH, for example /usr/local/sbin:

sudo cp usbfluxd /usr/local/sbin/
export PATH=/usr/local/sbin:${PATH}

Usage

Note: usbfluxd requires root permissions to run.

To start usbfluxd, run:

sudo usbfluxd

It will log to syslog by default. Usbfluxd can be run in foreground using -f, and also with increased verbosity by adding -v to the command line. Multiple -v can be passed.

Please be aware that all usbmuxd-aware apps like Xcode or iTunes need to be restarted so they will talk to usbfluxd instead of the original usbmuxd.

To stop usbfluxd immediately, run:

sudo killall usbfluxd

Also after stopping usbfluxd, remember to restart any app that relies on usbmuxd so it returns to the original state.

On Linux you may need to sudo systemctl restart usbmuxd.

Build Requirements

Development Packages of: libplist-2.0 libavahi-client-dev

Software: make autoheader automake autoconf libtool pkg-config gcc

Installation From Source

To compile run:

# brew install make automake autoconf libtool pkg-config gcc libimobiledevice usbmuxd

git clone https://github.com/corellium/usbfluxd.git
cd usbfluxd

./autogen.sh
make
sudo make install

Also available from the Arch User Repository for Linux hosts: https://aur.archlinux.org/packages/usbfluxd/

Linux Usage

Connecting your device over USB on Linux allows you to expose usbfluxd on port 5000 to another system on the same network.

Ensure usbmuxd, socat and usbfluxd are installed.

Start the usbmuxd daemon on Linux

sudo systemctl start usbmuxd

Start avahi-daemon for small-scale mDNS

sudo avahi-daemon

Start usbfluxd in the foreground

sudo usbfluxd -f -n

Expose /var/run/usbmuxd on port 5000

sudo socat tcp-listen:5000,fork unix-connect:/var/run/usbmuxd

Choose any IP address from ip addr as the source.

Connect to a host running usbfluxd

From the remote host (catch the remote usbfluxd and make it appear local).

# on the destination
export PATH=/usr/local/sbin:${PATH}
sudo usbfluxd -f -r 10.0.0.2:5000

usbfluxd's People

Contributors

bdougsand avatar cmwdotme avatar nikias avatar planetbeing avatar sickcodes avatar strazzere avatar tbodt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.