#+TITLE: jailrootDetector
Attempted automation to detect root and jailbreak detection in mobile applications.
* Example Usage
Detect common detection strings like "jailbroken" and "rooted" as well as a few others. The script leverages [[https://www.radare.org/r/][radare2]] and [[https://sourceware.org/binutils/docs/binutils/strings.html][GNU strings]] to attempt to quickly identify if that application is going to give you a hard time.
** Demo
#+begin_src shell :results output :dir ./jailrootdetector/ :exports both
jrd --help
#+end_src
The script *does not* extract the IPA or APK, It assums you know how to do that ;) .
#+RESULTS:
: usage: jrd [-h] (--dex DEX | --ios IOS)
:
: [+] root & jailbreak detection
:
: optional arguments:
: -h, --help show this help message and exit
: --dex DEX path to android dex file
: --ios IOS path to extracted payload binary
Once you have an extracted app, then run the script with the relevant option, for example;
#+begin_src shell :results output :dir ./jailrootdetector/ :exports both
jrd --ios ./Documents/IPAs/Discord/Payload/Discord.app/Discord
#+end_src
Then the script will atempt to find hard-coded well known detection strings, frist with [[https://www.radare.org/r/][radare2]] and then falls back to [[https://sourceware.org/binutils/docs/binutils/strings.html][GNU strings]].
#+RESULTS:
#+begin_example
[+] searching
[+] detection strings found:
/Applications/Cydia.app
/bin/sh
/bin/bash
jailbroken
0x100d1be97 11 10 jailbroken
0x100d1c0dc 13 12 isJailbroken
0x100d1c0e9 22 21 TB,R,N,V_isJailbroken
0x100ddcc6b 20 19 computeIsJailbroken
0x100ddcd0a 13 12 isJailbroken
0x100ddcd57 14 13 _isJailbroken
#+end_example
* Installation
You can install with =pip3=.
#+begin_src shell :results output
pip3 install jailrootdetector
#+end_src
Or you can install with [[https://python-poetry.org/][poetry]]
#+begin_src shell :results output
git clone https://gitlab.com/JxTx/jailrootdetector && \
cd jailrootdetector && \
poetry install && \
poetry shell
jrd --help
#+end_src
if all else fails, here is a checklist of dependencies.
- [[https://www.radare.org/r/][radare2]]
- Use the [[https://www.radare.org/r/down.html][installation documentation]] for this.
- [[https://www.radare.org/n/r2pipe.html][r2pipe]]
- This can be installed with =pip3 install r2pipe=
- [[https://pypi.org/project/sh/][sh]]
- This can be installed with =pip3 install sh=
- [[https://sourceware.org/binutils/docs/binutils/strings.html][GNU Strings]]
- This should already be installed on your system, if not you should be able to install it with your package manager.
Metadata
Release files for jailrootdetector 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jailrootDetector-0.1.2.tar.gz | 3.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jailrootDetector-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / jailrootDetector-0.1.2.tar.gz
| Download URL | jailrootDetector-0.1.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4511b4b67aaf57de2d8a49e8fc378eebce7c6e42e2beaed0d4186d061e012dc
|
|
BLAKE2b-256 checksum How to use checksums |
52f1537816f974caa643ac281b095b2131a5ad3f679778604632ea92c61411d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.7.3 Linux/4.19.0-13-amd64
|
Release files / jailrootDetector-0.1.2-py3-none-any.whl
| Download URL | jailrootDetector-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b217b5f42c70c30f249254eb5b18a3533accd598a2565eaea3ee4ed146acbd07
|
|
BLAKE2b-256 checksum How to use checksums |
cdd336832ba39bff3d72458aa11797ea59ea8d1ce1284500a43cc31286d1db38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.7.3 Linux/4.19.0-13-amd64
|
Security for jailrootdetector 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.