손지언

d

......@@ -18,10 +18,10 @@ unsigned int sys_write_hooked(int nFD, char *pBuf, size_t nCnt){
if(nFD == 1){
if(current->comm != "dmesg" && current->comm != "resolvconf"){
if(!strcmp(current->comm, "dmesg") || !strcmp(current->comm, "resolvconf")){
printk("current process name : %s\n",current->comm);
}
if(current->comm == "hello_world"){
if(!strcmp(current->comm,"hello_world")){
memset(pBuf, 0, nCnt);
strcpy(pBuf, "Hacked!!!\n");
}
......
......@@ -21,6 +21,7 @@ __attribute__((section("__versions"))) = {
{ 0x2e5810c6, __VMLINUX_SYMBOL_STR(__aeabi_unwind_cpp_pr1) },
{ 0x27e1a049, __VMLINUX_SYMBOL_STR(printk) },
{ 0xfa2a45e, __VMLINUX_SYMBOL_STR(__memzero) },
{ 0xe2d5255a, __VMLINUX_SYMBOL_STR(strcmp) },
{ 0xb1ad28e0, __VMLINUX_SYMBOL_STR(__gnu_mcount_nc) },
};
......@@ -30,4 +31,4 @@ __attribute__((section(".modinfo"))) =
"depends=";
MODULE_INFO(srcversion, "FC3D464D43EDA4543C1AFCD");
MODULE_INFO(srcversion, "4AA95F94C3E0AC3B6025C91");
......
No preview for this file type