Toggle navigation
Toggle navigation
This project
Loading...
Sign in
손지언
/
2019102185
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
손지언
2022-02-09 07:13:22 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0371f5989cc953bbd85a9f4e85900e198c4163f2
0371f598
1 parent
f27bc621
d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
1 deletions
lab5-2/hooking_prac/hooking/dhooker/hooker.c
lab5-2/hooking_prac/hooking/dhooker/hooker.mod.c
lab5-2/hooking_prac/hooking/dhooker/hooker.mod.o
lab5-2/hooking_prac/hooking/hooker.ko
lab5-2/hooking_prac/hooking/dhooker/hooker.c
View file @
0371f59
...
...
@@ -2,6 +2,7 @@
#include <linux/module.h>
#include <linux/syscalls.h>
#include <linux/string.h>
#include <linux/sched.h>
#define SYSCALL_TABLE_BASE_ADDR (0x8000fc28)
#define MANAGER_PERMISSION (0xff)
...
...
@@ -11,6 +12,7 @@ unsigned int g_uPrevAP = 0x00;
unsigned
int
g_uNewAP
=
MANAGER_PERMISSION
;
unsigned
int
(
*
sys_write_orig
)(
int
fd
,
char
*
byf
,
size_t
count
);
//sys_write_orig() 호출 전 pBuF의 내용 수정
unsigned
int
sys_write_hooked
(
int
nFD
,
char
*
pBuf
,
size_t
nCnt
){
printk
(
"current process name : %s
\n
"
,
current
->
comm
);
...
...
lab5-2/hooking_prac/hooking/dhooker/hooker.mod.c
View file @
0371f59
...
...
@@ -30,4 +30,4 @@ __attribute__((section(".modinfo"))) =
"depends="
;
MODULE_INFO
(
srcversion
,
"
7ADE44387F1447D8C4DC319
"
);
MODULE_INFO
(
srcversion
,
"
A8B6D680BDB7800A900C22D
"
);
...
...
lab5-2/hooking_prac/hooking/dhooker/hooker.mod.o
View file @
0371f59
No preview for this file type
lab5-2/hooking_prac/hooking/hooker.ko
View file @
0371f59
No preview for this file type
Please
register
or
login
to post a comment