إجراء MemoryPatch لعمل Loader
#4
بنفس الطريقة يمكن التعديل على Process بتمرير مقبض يؤشر عليه:
PHP كود :
procedure MemoryPatch(WindowName: HWND; PokeValue: Byte; Address: Integer; NumberOfBytes: Cardinal);
var
  
ProcessId: Integer;
  
buf: PChar;
  
HandleWindow: Integer;
  
Write: Cardinal;
begin
  
if WindowName = 0 then
  begin
    MessageBox
(0, 'Program not running.', 'ERROR', MB_OK + MB_ICONWARNING);
    Exit;
  
end;

  
GetWindowThreadProcessId(WindowName, @ProcessId);

  
HandleWindow := OpenProcess(PROCESS_ALL_ACCESS, False, ProcessId);

  
GetMem(buf, 1);
  
buf^ := Chr(PokeValue);
  if 
WriteProcessMemory(HandleWindow, ptr(Address), buf, NumberOfBytes, Write) then
  MessageBox
(0, 'Process successfully patched!.', 'iNFO', MB_OK + MB_ICONINFORMATION);

  
FreeMem(buf);
  
CloseHandle(HandleWindow);
end; 
البحث عن المقبض بالدوال المعروفة... مثل FindWindow.
مثال لتجاوز الـ Password في برامج التثبيت InnoSetup للإصدار 5.3.8.


الملفات المرفقة
.rar   PssingInnoSetupPW.rar (الحجم : 10.11 ك ب / التحميلات : 50)
اللهم احقن دماء المسلمين، لا تنسوهم بالدعاء...
الرد


الردود في هذا الموضوع
إجراء MemoryPatch لعمل Loader - بواسطة kachwahed - 10-02-2010, 11:06 PM
إجراء MemoryPatch لعمل Loader - بواسطة Ahmed18 - 11-02-2010, 03:57 AM
إجراء MemoryPatch لعمل Loader - بواسطة kachwahed - 11-02-2010, 07:20 AM
إجراء MemoryPatch لعمل Loader - بواسطة kachwahed - 19-03-2010, 02:24 PM
إجراء MemoryPatch لعمل Loader - بواسطة kachwahed - 10-10-2010, 02:43 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم