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 65b82a4

Browse files
add gdb scripts
1 parent cb627b0 commit 65b82a4

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

‎docker-compose.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ services:
88
- ./exp:/root/exp
99
- ./corescripts:/root/corescripts
1010
- ./pwn:/root/pwn
11+
- ./gdb_internal.sh:/gdb_internal.sh
1112
environment:
1213
- LC_CTYPE=C.UTF-8
14+
- WORKDIR=/root/pwn
1315
network_mode: host
1416
privileged: true
1517
restart: unless-stopped

‎gdb.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#! /bin/env bash
2+
docker exec -it kernel_debug "/gdb_internal.sh"

‎gdb_internal.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/env bash
2+
gdb \
3+
--ex "target remote :1234" \
4+
$WORKDIR/linux-5.10.116/vmlinux

0 commit comments

Comments
(0)

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