손지언

d

...@@ -18,9 +18,6 @@ unsigned int sys_write_hooked(int nFD, char *pBuf, size_t nCnt){ ...@@ -18,9 +18,6 @@ unsigned int sys_write_hooked(int nFD, char *pBuf, size_t nCnt){
18 18
19 if(nFD == 1){ 19 if(nFD == 1){
20 20
21 - if(!strcmp(current->comm, "dmesg") || !strcmp(current->comm, "resolvconf")){
22 - printk("current process name : %s\n",current->comm);
23 - }
24 if(!strcmp(current->comm,"hello_world")){ 21 if(!strcmp(current->comm,"hello_world")){
25 memset(pBuf, 0, nCnt); 22 memset(pBuf, 0, nCnt);
26 strcpy(pBuf, "Hacked!!!\n"); 23 strcpy(pBuf, "Hacked!!!\n");
......
...@@ -18,8 +18,8 @@ static const struct modversion_info ____versions[] ...@@ -18,8 +18,8 @@ static const struct modversion_info ____versions[]
18 __used 18 __used
19 __attribute__((section("__versions"))) = { 19 __attribute__((section("__versions"))) = {
20 { 0xb344870e, __VMLINUX_SYMBOL_STR(module_layout) }, 20 { 0xb344870e, __VMLINUX_SYMBOL_STR(module_layout) },
21 - { 0x2e5810c6, __VMLINUX_SYMBOL_STR(__aeabi_unwind_cpp_pr1) },
22 { 0x27e1a049, __VMLINUX_SYMBOL_STR(printk) }, 21 { 0x27e1a049, __VMLINUX_SYMBOL_STR(printk) },
22 + { 0x2e5810c6, __VMLINUX_SYMBOL_STR(__aeabi_unwind_cpp_pr1) },
23 { 0xfa2a45e, __VMLINUX_SYMBOL_STR(__memzero) }, 23 { 0xfa2a45e, __VMLINUX_SYMBOL_STR(__memzero) },
24 { 0xe2d5255a, __VMLINUX_SYMBOL_STR(strcmp) }, 24 { 0xe2d5255a, __VMLINUX_SYMBOL_STR(strcmp) },
25 { 0xb1ad28e0, __VMLINUX_SYMBOL_STR(__gnu_mcount_nc) }, 25 { 0xb1ad28e0, __VMLINUX_SYMBOL_STR(__gnu_mcount_nc) },
...@@ -31,4 +31,4 @@ __attribute__((section(".modinfo"))) = ...@@ -31,4 +31,4 @@ __attribute__((section(".modinfo"))) =
31 "depends="; 31 "depends=";
32 32
33 33
34 -MODULE_INFO(srcversion, "4AA95F94C3E0AC3B6025C91"); 34 +MODULE_INFO(srcversion, "41DBD0D0A44067D769467DB");
......
No preview for this file type