Код:
library okda;
uses SysUtils, Classes, Windows, advApiHook;
var lib_NWindow:THandle;
lib:integer; p:pointer;
OldPageProtection: Cardinal;
begin
lib_NWindow := LoadLibrary('NWindow.dll');
lib := lib_NWindow + $138895;
VirtualProtect(pointer(lib), 6, PAGE_EXECUTE_READWRITE, OldPageProtection);
p := pointer(lib);
byte(p^) := $e9;
byte(pointer(dword(p) + 1)^) := $eb;
byte(pointer(dword(p) + 2)^) := $00;
byte(pointer(dword(p) + 3)^) := $00;
byte(pointer(dword(p) + 4)^) := $00;
byte(pointer(dword(p) + 5)^) := $90;
VirtualProtect(pointer(lib), 6, OldPageProtection, OldPageProtection);
end.
Захожу на сервер[Interlude] делаю инжект.
Ввожу сообщение нажимаю ENTER получаю:
Код:
General protection fault!
History: NCChatMark::UpdateMark <- NCChatWnd::ProcessNonCommandChatString <- NCChatWnd::ProcessChatLine <- UUIScript::execProcessChatMessage <- UObject::ProcessEvent <- (ChatWnd Transient.ChatWnd0, Function Interface.ChatWnd.OnCompleteEditBox) <- NCEditBox::OnKeyDown <- NCVirtualWndMain::PassToFocusedWindow <- NCVirtualWndMain::PassToFocusedWindow <- NCVirtualWndMain::PassToFocusedWindow <- NCVirtualWndMain::DispatchWndMsg <- NConsoleWnd::DispatchWndMsgX <- NConsoleWnd::DispatchWndMsg <- UWindowsViewport::ViewportWndProc <- WWindow::StaticProc <- DispatchMessage <- 002D11A8 256 <- MessagePump <- MainLoop