Skip to content

Commit 9ba4e27

Browse files
committed
improving the doc
1 parent 69db4ce commit 9ba4e27

File tree

1 file changed

+76
-9
lines changed

1 file changed

+76
-9
lines changed

README.md

Lines changed: 76 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
# What's this?
2+
3+
This is a _docker_ image for reverse engineering of _Android_ applications.
4+
5+
16
# Disclaimer
27

38
Please use responsibly.
49

510
# Description
611

712
This container contains many tools to reverse engineer Android applications.
13+
814
- Android emulators 4.4.2 and 5.1
915
- androguard
1016
- apkid
@@ -23,35 +29,96 @@ This container contains many tools to reverse engineer Android applications.
2329
- procyon
2430
- radare2
2531

26-
Those are free tools, or free demos.
32+
Those are open source tools, or free demos.
33+
34+
# How to use this
35+
36+
There are three steps:
37+
38+
0. Install docker ;)
39+
1. Download docker image
40+
2. Run the container on your host
41+
3. Log into the container and use it ;)
42+
43+
## Retrieve the image
44+
45+
Normally, you just need to do:
2746

28-
# Usage
47+
```
48+
$ docker pull cryptax/android-re
49+
```
50+
51+
Unless you want to build your own image - then see below the _Customization_ section.
2952

30-
You are expected to ssh into the container, using -X to forward X window.
53+
## Running the container
3154

3255
Run the container:
3356
```
3457
$ docker run -d --name androidre -p 5022:22 -p 5900:5900 cryptax/android-re
3558
```
3659

37-
Connect. Default password for root is **rootpass**. Modify Dockerfile to change this.
60+
where:
61+
- NAME is the name you wish to give to this container. You may start several different instances.
62+
- SSH_PORT is the port number the container will listen on for SSH connections. As the standard SSH port (22) is often already used, you may want to use another port here.
63+
- VNC_PORT is the port number the container will listen on for VNC connections.
64+
65+
For other options in `docker run`, [please go to docker's documentation](https://docs.docker.com/engine/reference/run/). For example, you may want to mount a given directory of your network and make it accessible to the container using `-v` option.
66+
67+
68+
Typically, I run (but you may have to modify to suit your own needs):
3869
```
39-
$ ssh -X -p 5022 [email protected]
70+
$ docker run -d --name androidre -p 5022:22 -p 5900:5900 cryptax/android-re
4071
```
4172

42-
Alternative to ssh login: vnc, with **rootpass** as default password.
73+
74+
## Connecting
75+
76+
Once a container is running, it's basically like a virtual Linux host. You need to connect to it.
77+
You are expected to log in using either **ssh** or **vncviewer**.
78+
The default root password is **rootpass**.
79+
80+
### Logging in with SSH
81+
82+
Use `-X` to forward X window.
83+
4384
```
44-
$ vncviewer host::5900
85+
$ ssh -X -p SSH_PORT [email protected]
4586
```
4687

88+
where SSH_PORT is the SSH port the container listens on. In my docker run personal example, it's 5022.
89+
90+
Note that X forwarding is known to have issues on Macs.
91+
92+
### Logging in with VNC
93+
94+
Please use `vncviewer`
95+
96+
```
97+
$ vncviewer host::VNC_PORT
98+
```
99+
100+
where VNC_PORT is the VNC port the container forwards. In my docker run example, it's 5900.
101+
102+
103+
## Misc info
104+
47105
Android reverse engineering tools are installed in **/opt**.
48106

49107
To run an Android emulator (5.1):
50108
```
51109
$ emulator &
52110
```
53111

54-
# Hack.lu Workshop
112+
# Customization
113+
114+
To change the default password, or for any other changes, modify the `Dockerfile` and re-build your own image.
115+
116+
You are welcome to post issues or suggestions.
117+
118+
119+
# Hack.lu 2016 Workshop
55120

56-
Workshop samples will be provided by other means. The image does not provide any Android sample.
121+
This docker image was used for a free workshop at [Hack.lu](http://2016.hack.lu).
122+
Workshop samples were provided to participants by other means.
123+
This image **does not provide any Android sample**.
57124

0 commit comments

Comments
 (0)