天天看點

Linux 實作網頁劫持,Linux下實作劫持系統調用的總結(上)--代碼及實作

godbach2015-04-07 19:03

yzh07137:你好,我看了你的這篇關于linux劫持open調用的文章[url]http://bbs.chinaunix.net/thread-1946913-1-1.html[/url](有點久遠了)

我在ubuntu12.04.5(核心是3.13.0.20-32-generic)上試驗了,結果編譯報錯了,那個Makefile不能成功執行,提示下面這個錯誤:

error:'struct pt_regs' has no member named 'ebx';

error:'struct pt_regs' has no member named 'ecx';

error:'struct pt_regs' has no member named 'edx';

error:'TIF_IRET' undeclared(first used in this function);

這是error,還有一些警告,請問是什麼原因啊,是因為核心版本的問題嗎?

估計應該是版本問題。Linux kernel code 你可以直接看啊,查一下愛對資料局結構是否還有相關成員。