Skip to content

Commit

Permalink
Merge pull request #8 from s1204IT/main
Browse files Browse the repository at this point in the history
Add build workflow
  • Loading branch information
YuriiCrimson authored Apr 11, 2024
2 parents 0cc21d2 + 08c885d commit e415f9a
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text=auto
*.docx binary
*.pdf binary
*.png binary
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build

on:
push:
paths:
- '.github/workflows/build.yml'
- 'ExploitGSM_5_15_to_6_1/**'
- 'ExploitGSM_6_5/**'
- 'OffsetGenerator/**'
workflow_dispatch:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Install libcap-dev
run: sudo apt-get install -y libcap-dev

- name: Compile ExploitGSM_5_15_to_6_1
run: |
cmake ExploitGSM_5_15_to_6_1 -B ExploitGSM_5_15_to_6_1
cmake --build ExploitGSM_5_15_to_6_1
- name: Compile ExploitGSM_6_5
run: |
cmake ExploitGSM_6_5 -B ExploitGSM_6_5
cmake --build ExploitGSM_6_5
- name: Compile OffsetGenerator
run: |
cmake OffsetGenerator -B OffsetGenerator
cmake --build OffsetGenerator
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ExploitGSM
path: |
ExploitGSM_5_15_to_6_1/ExploitGSM
ExploitGSM_6_5/ExploitGSM
OffsetGenerator/OffsetGenerator
10 changes: 10 additions & 0 deletions ExploitGSM_6_5/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@
#define HEAP_SPRAY_SIZE 1024
#define BITS_PER_LONG 64

struct gsm_dlci_config {
__u32 channel; /* DLCI (0 for the associated DLCI) */
__u32 adaption; /* Convergence layer type */
__u32 mtu; /* Maximum transfer unit */
__u32 priority; /* Priority (0 for default value) */
__u32 i; /* Frame type (1 = UIH, 2 = UI) */
__u32 k; /* Window size (0 for default value) */
__u32 reserved[8]; /* For future use, must be initialized to zero */
};

#define GSMIOC_GETCONF_DLCI _IOWR('G', 7, struct gsm_dlci_config)
#define GSMIOC_SETCONF_DLCI _IOW('G', 8, struct gsm_dlci_config)

Expand Down
4 changes: 2 additions & 2 deletions README.md → docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ Exploit for 6.4 - 6.5 kernels and another exploit for 5.15 - 6.5

Перший експлоїт 5.15 до 6.5
Результат <br />
![alt text](https://github.com/YuriiCrimson/ExploitGSM/blob/main/debian12.png?raw=true)
![alt text](debian12.png)
Debian 12 6.1 kernel Dekstop <br />

Експлоїт не працює на всіх ядрах, наприклад на убунту. Але на Debian і Fedora
працює.

Другий експлоїт 6.4 до 6.5
Результат <br />
![alt text](https://github.com/YuriiCrimson/ExploitGSM/blob/main/result.png?raw=true)
![alt text](result.png)

Ubuntu 22.04 6.5 kernel Dekstop <br />

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.

0 comments on commit e415f9a

Please sign in to comment.