-
Notifications
You must be signed in to change notification settings - Fork 379
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
Will it work for android os? #71
Comments
Good question. I guess it should, since android OS is Linux based. Of course you'd need to either compile inside an android OS, or cross-compile, but I guess it should work. |
The answer is yes, but there are a couple of things that need to be done.
|
Will libpcap work for non rooted devices in android? |
It should be enough to add only pcap.h and pcap/bpf.h include files. That are the only includes that libtins is using*, and you don't actually need the libpcap.so binaries. Otherwise you need to build and install the library. I'm not sure if you can do that on a non-rooted android. |
Thanks, I try. |
I just added those fixes to the code, so you shouldn't need to touch anything besides including the ifaddrs files. Thanks @einarjon for the instructions! I'm going to add some tutorial on the website on how to compile it on android soon based on them. Closing since it should compile on android now. |
I know this issue is closed but I figured I would add another comment because I know many people will be frustrated with the information given. It will compile for android but it wont run. Android does not have the proper drivers installed to do monitor mode on their devices and thus you need to get drivers that can do that work for you. You should look into the work being done on bcmon. |
But instead of monitoring can I craft and send packets in Android and iOS? |
We used this to modify packets sent between Linux and Android years ago.
It works the same way on both OSes.
I have no iOS experience, but it should not be any different.
Best regards,
Einar Jón
…On Fri, 29 Nov 2019 at 05:32, Lucas Zanela ***@***.***> wrote:
But instead of monitoring can I craft and send packets in Android and iOS?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#71?email_source=notifications&email_token=AAJNGSI4VNUIDLZXAYAIB2TQWCSO7A5CNFSM4BAXH6AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFN44XA#issuecomment-559664732>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJNGSIZFCPZGFS7CNT3273QWCSO7ANCNFSM4BAXH6AA>
.
--
Regards
Einar Jón
+31 610 957234
|
Are the modifications still needed? https://github.com/kmackay/android-ifaddrs does not exists anymore |
@lattice0 any updates? |
I made a PR and now it works on Android
…-------- Mensagem Original --------
Em 21 de nov. de 2022 18:20, ILYAS KERBAL escreveu:
***@***.***(https://github.com/lattice0) any updates?
—
Reply to this email directly, [view it on GitHub](#71 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ABSTHAIDZKIYN6TOD6AVKT3WJPRTFANCNFSM4BAXH6AA).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I don't have the code right now but you should be able to do it with
add_subdirectory(...)
To the libtins directory, but following android's cmake way of calling a lib using CMakeLists.txt
…-------- Mensagem Original --------
Em 21 de nov. de 2022 20:33, ILYAS KERBAL escreveu:
Thanks ***@***.***(https://github.com/lattice0) [#471](#471)
Can you share the steps to setup?
—
Reply to this email directly, [view it on GitHub](#71 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ABSTHAMA5DNZGJOXLREKPETWJQBFBANCNFSM4BAXH6AA).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
For some reason I get the following error:
|
You can disable https://github.com/mfontanini/libtins/blob/master/CMakeLists.txt#L60 maybe |
Thank you so much @lattice0 I just solved the problem. Your guidance helped a lot. |
If i compile this as .so then it'll work in ip packet parsing?
The text was updated successfully, but these errors were encountered: