-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use in Android? #86
Comments
An Android app developer would need to develop an app using chisel
…On Wed, 13 Mar 2019 at 18:25, simonho234 ***@***.***> wrote:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#86>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAmr8xCES0bzheCeG4FOLbLwXr3GAwWVks5vWKflgaJpZM4bsj3f>
.
|
You can take chisel binary for android arm from here. Copy it to your device, e.g.:
Then, make it executable there and run as a commandline utility like in any other OS (using adb, if android device is connected to your desktop or laptop, or with the help of terminal emulator app, if it is not). Of course, to make it more comfortable, you'll need a wrapper android app with appropriate UI. |
@Meteorite Do you know any way to use chisel as VPN, to make all traffic flow through it? |
How about using Terminal app like TERMUX on Android ?? Can you explain how to do it ?? |
@Meteorite can you create a mini tutorial or the commands line to use Chisel on Android , maybe using the Terminal Termux app , please. Do you have a telegram account I can contact you ?. |
@ingnelson That should work as long as you have the terminal. Either compile it yourself for ARM or download precompiled executables from releases page. Then cd in terminal to where executable is and run it. |
@0xbkt On rooted device you can use ProxyDroid, like I do (it is not a VPN, just traffic redirection via iptables). On non rooted device you can try smth, that intercepts traffic with the help of VpnService like this (I have not tried it though). |
@Meteorite Meteorite can you give me the commands to try it on Android using the Terminal Termux , please. |
I forked a recent fork of socksdroid and added chisel client support https://github.com/kawaiiDango/chiselsocksdroid (download link in readme). The apk size is large because it contains 4 copies of chisel, one for for each architecture. |
@kawaiiDango I just try the chisel app for Android and works very very well ! |
I wonder whom you mailed to, since I didn't receive any and I dont have a publicly visible email address on my profile. Create an issue on my repo if this is related to the app and we will discuss there. |
@kawaiiDango look that GitHub do not let create an issue on your repo maybe because it is a for of a fork , and if I try to create a request it send me to sockdroid repo so I create it there . |
That is an unmerged pull request. I tried with --header "Foo: Bar" and it just gave the help text. The current version of chisel doesn't support headers except the host header through --host but I don't see a common use case for that, so I didn't implement a UI for it |
@kawaiiDango if the app has "http header" option I can add a "host" header that is not block by the firewall and the firewall think I am visiting the websites allowed . By the way if the app has a "server name indication" (SNI) option , I can add a host that the firewall allowed me to visit to bypass it, otherwise the firewall block me because it doesn't recognize the "server URL" from Chisel. |
It works perfectly even on a non-rooted android in Termux. Absolutely no issues. I used |
@Meteorite Hello how do you use chisel with proxy droid? It's working with chiselsocks proxy but with this solution I don't use local dns on my network despite I have create a remote port in chisel client on local dns so I would test another solution |
I tried to run chisel_arm64 binary in termux on my android but it did't recognize it. Update: Do i need to build (with go build) with the source files again on my anroid? I wonder if maybe the file names are wrong here because he added somehow a _ infront... |
I had a similar issue. |
Thats nice .. do you have a little guidance for a non android Developer? 😉 Thanks! |
Hello, I don't know if this can help but on my Android I have used |
Honestly, I wouldn't claim to be a developer, let alone an android one, but, I believe this is how I did it running on an Ubuntu box, so the various package names may be different on a different OS... sudo apt install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386 Good luck... (Having said that, as @vincentDcmps suggests, it may be easier to use something prebuilt like chiselsocksdroid). |
@vetch101 Thanks, will try! |
The build seems sucessfull but the chisel file that comes out still wasn't recognized as command in termux...maybe a hard computer science problem D: ... Or i missed something important here.. |
Sorry to hear that; if you want to try it, here's the version that I built which is working on Termux my phone... https://drive.google.com/file/d/1C3EmYhrhnMvFhnL9ENWNEMMdXwi0fU3d/view |
Thanks bur in termux i hit a hard wall any way i try...will try chiselsocksdroid maybe also |
Fair enough; good luck |
Solved my problem now with the required commands and syntax 😉 chmod +x chisel |
Ah yeah; makes sense. Glad it's working for you now. |
i got server running with, chisel server -p 4449 --socks5 --auth xxx:yyy but couldnt get chiselsocksdroid to work // Ama complete noob. can anyone help to get android app running. thanks all |
Compile chisel with ENV If you have Root PermissionJust copy the Binary to your phone and give executable permission. else NO Root PermissionInstall Termux from F-Droid (!!!! NOT !!!!! FROM GOOGLE PLAY STORE because Google hosting very old Version!) Copy the Binary to your phone and then move the binary to your Termux Home Directory. You are only allowed to assign executbale Permission in the Termux Directory Structure. The only Trick is to fix DNS Resolution because Go Applications looking for File /etc/resolv.cfg to resolv Domain Names. With #Fix2 you can map the /etc/resolv.cinf file from $PREFIX/etc/resolv.conf -> /etc/resolv.conf so Go will find the file! :-) The #Fix1 is kind of emulator and might leak performance of your running application. Fix#1 You can use the Application termux-chroot this is kind of emulation and will intercept every system call and would make your Application run slower. But on fast phone CPU it doesn't matter. Fix#2 You can install PROOT and run your command like |
Thank you for your response, I appreciate. I ran the proot command and fix2 threw up this error: can't sanitize binding "/data/data/com.termux/files/usr/etc/resolv.conf": No such file or directory Am a complete noob, hopefully you can help here too Thank you |
The ultimate solution to run Chisel on Android using Termux (thanks to @essoojay) Download the ARM64 version of Chisel for GNU/Linux and make it executable. File content should be: Then save the file and use: |
termux/termux-packages#9721 (comment):
|
No description provided.
The text was updated successfully, but these errors were encountered: