Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d3de65b

Browse files
FIX: Added information about need of GDB with python 2.7 support
1 parent e9609ab commit d3de65b

File tree

2 files changed

+53
-14
lines changed

2 files changed

+53
-14
lines changed

‎gitbook/SUMMARY.md‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
* [Introduction](README.md)
44
* [Environment Setup](chapters/environment-setup.md)
55
* [Hardware Requirements](chapters/environment-setup.md#hardware-requirements)
6-
* [Workshop Repository](chapters/environment-setup.md#workshop-repository)
7-
* [Android Studio](chapters/environment-setup.md#android-studio)
8-
* [Android NDK](chapters/environment-setup.md#android-ndk)
9-
* [Android Virtual Device](chapters/environment-setup.md#android-virtual-device)
10-
* [Android Kernel Source Code](chapters/environment-setup.md#android-kernel-source-code)
6+
* [Software Requirements](chapters/environment-setup.md#software-requirements)
7+
* [GDB](chapters/environment-setup.md#gdb)
8+
* [Workshop Repository](chapters/environment-setup.md#workshop-repository)
9+
* [Android Studio](chapters/environment-setup.md#android-studio)
10+
* [Android NDK](chapters/environment-setup.md#android-ndk)
11+
* [Android Virtual Device](chapters/environment-setup.md#android-virtual-device)
12+
* [Android Kernel Source Code](chapters/environment-setup.md#android-kernel-source-code)
1113
* [Linux Privilege Escalation](chapters/linux-privilege-escalation.md)
1214
* [Light Weight Process](chapters/linux-privilege-escalation.md#light-weight-process)
1315
* [Process Credentials](chapters/linux-privilege-escalation.md#process-credentials)

‎gitbook/chapters/environment-setup.md‎

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,60 @@
22

33
The whole analysis and exploitation will been done in a *virtual* environment for the ease of access and debugging.
44

5+
6+
## Hardware Requirements {#hardware-requirements}
7+
8+
* **40 GB free hard drive space**
9+
* **8 GB+ of RAM**
10+
* **Multi-core processor**
11+
12+
13+
## Software Requirements {#software-requirements}
14+
515
For this workshop, we will need to install the below given items in **Ubuntu 18.04 LTS** host machine. However, **Windows**, **Mac OSX** and **other OS** are also supported.
616

17+
* **GDB**
718
* **Workshop Repository**
819
* **Android Studio**
920
* **Android NDK**
1021
* **Android Virtual Device**
1122
* **Android Kernel Source Code**
1223

1324

14-
## Hardware Requirements {#hardware-requirements}
25+
## GDB {#gdb}
1526

16-
* **40 GB free hard drive space**
17-
* **8 GB+ of RAM**
18-
* **Multi-core processor**
27+
Open a terminal window and type the below given command to verify if **GDB** is installed. We will need **GDB** compiled with **python 2.7** support.
28+
29+
```bash
30+
ashfaq@hacksys:~$ gdb --version
31+
GNU gdb (GDB) 8.2
32+
Copyright (C) 2018 Free Software Foundation, Inc.
33+
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
34+
This is free software: you are free to change and redistribute it.
35+
There is NO WARRANTY, to the extent permitted by law.
36+
37+
ashfaq@hacksys:~$ gdb -quiet
38+
GEF for linux ready, type `gef' to start, `gef config' to configure
39+
77 commands loaded for GDB 8.2 using Python engine 2.7
40+
[*] 3 commands could not be loaded, run `gef missing` to know why.
41+
gef> py
42+
>import sys
43+
>print sys.version_info
44+
>end
45+
sys.version_info(major=2, minor=7, micro=17, releaselevel='final', serial=0)
46+
gef> q
47+
48+
ashfaq@hacksys:~$ readelf -d $(which gdb) | grep python
49+
0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1.0]
50+
51+
ashfaq@hacksys:~$ python --version
52+
Python 2.7.17
53+
```
54+
55+
If **GDB** is not installed in your system, please make sure to install it with **python 2.7** support.
1956

2057

21-
## Workshop Repository {#workshop-repository}
58+
### Workshop Repository {#workshop-repository}
2259

2360
Open a terminal window and type the below given command to **clone** the **workshop** repository.
2461

@@ -27,14 +64,14 @@ ashfaq@hacksys:~$ git clone https://github.com/cloudfuzz/android-kernel-exploita
2764
```
2865

2966

30-
## Android Studio {#android-studio}
67+
### Android Studio {#android-studio}
3168

3269
Installation instruction for **Android Studio** can be found here https://developer.android.com/studio/install
3370

3471
Once **Android Studio** is installed, make sure to add `~/Android/Sdk/platform-tools` and `~/Android/Sdk/emulator` to your `PATH` environment variable. This will allow as to access `adb` and `emulator` command without specifying the complete path.
3572

3673

37-
## Android NDK {#android-ndk}
74+
### Android NDK {#android-ndk}
3875

3976
Installation instruction for **Android NDK** can be found here https://developer.android.com/studio/projects/install-ndk
4077

@@ -53,7 +90,7 @@ Installation instruction for **Android NDK** can be found here https://developer
5390
> I'm currently using **Android NDK** version: **21.0.6113669**. However, the latest version of the **Android NDK** should be fine.
5491
5592
56-
## Android Virtual Device {#android-virtual-device}
93+
### Android Virtual Device {#android-virtual-device}
5794
5895
For this workshop, we are going to use **Android 10.0 (Q)** `Google Play Intel x86 Atom_64 System Image`.
5996
@@ -94,7 +131,7 @@ ashfaq@hacksys:~/workshop$ emulator -avd CVE-2019-2215
94131
```
95132
96133
97-
## Android Kernel Source Code {#android-kernel-source-code}
134+
### Android Kernel Source Code {#android-kernel-source-code}
98135
99136
**Android** is powered by **Linux** kernel. For this workshop, we are going to use `q-goldfish-android-goldfish-4.14-dev` branch of the Android kernel source repository.
100137

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /