가오좀 살릴려고 폼 없애고 콘솔로 했습니다.
웹통신도 감지하는거같아서 다 빼고 핫키로 했어요.
쓰레드하이재킹 + 매뉴얼매핑 + dll 기록 제거 요 밑에 소스 첨부해드립니다.
function GetPebAddress: Pointer;
var
hNtDll: THandle;
NtQueryInfo: function(ProcessHandle: THandle; ProcessInfoClass: Integer;
ProcessInfo: Pointer; ProcessInfoLen: ULONG; RetLen: PULONG): LongInt; stdcall;
pbi: record
ExitStatus: LongInt;
PebBaseAddress: Pointer;
others: array[0..3] of NativeUInt;
end;
ReturnLength: ULONG;
begin
Result := nil;
hNtDll := GetModuleHandle('ntdll.dll');
@NtQueryInfo := GetProcAddress(hNtDll, 'NtQueryInformationProcess');
if Assigned(NtQueryInfo) then
begin
if NtQueryInfo(GetCurrentProcess, 0, @pbi, SizeOf(pbi), @ReturnLength) = 0 then
Result := pbi.PebBaseAddress;
end;
end;
procedure EraseDllFromSystem(const DllName: string);
var
Peb, Ldr: Pointer;
Head, Curr: PListEntry;
Entry: PLdrDataTableEntry;
ModuleBase: NativeUInt;
OldProtect: DWORD;
begin
ModuleBase := GetModuleHandle(PChar(DllName));
if ModuleBase = 0 then Exit;
Peb := GetPebAddress;
if Peb = nil then Exit;
Ldr := PPointer(NativeInt(Peb) + $18)^;
Head := PListEntry(NativeInt(Ldr) + $10);
Curr := Head^.Flink;
while Curr <> Head do
begin
Entry := PLdrDataTableEntry(Curr);
if (Entry^.BaseDllName.Buffer <> nil) and
SameText(Entry^.BaseDllName.Buffer, DllName) then
begin
Curr^.Blink^.Flink := Curr^.Flink;
Curr^.Flink^.Blink := Curr^.Blink;
Entry^.InMemoryOrderLinks.Blink^.Flink := Entry^.InMemoryOrderLinks.Flink;
Entry^.InMemoryOrderLinks.Flink^.Blink := Entry^.InMemoryOrderLinks.Blink;
Break;
end;
Curr := Curr^.Flink;
end;
if VirtualProtect(Pointer(ModuleBase), 4096, PAGE_EXECUTE_READWRITE, @OldProtect) then
begin
FillChar(Pointer(ModuleBase)^, 4096, 0);
VirtualProtect(Pointer(ModuleBase), 4096, OldProtect, @OldProtect);
end;
end;
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+64 | 10-20 | 8936 | |
| 9796 | 13:59 | 3 | ||
| 9795 | 13:59 | 3 | ||
| 9794 | 01-31 | 78 | ||
| 9793 | 01-30 | 108 | ||
| 9792 | dma 구해용+1 | 01-30 | 132 | |
| 9791 | 01-30 | 129 | ||
| 9790 | 01-29 | 98 | ||
| 9789 | 01-28 | 256 | ||
| 9788 | 01-28 | 63 | ||
| 9787 | 01-27 | 226 | ||
| 9786 | 01-26 | 108 | ||
| 9785 | 01-26 | 214 | ||
| 9784 | 01-23 | 311 | ||
| 9783 | dma쓰시는분?+3 | 01-22 | 350 | |
| 9782 | 원격클린 나는거+1 | 01-22 | 288 | |
| 9781 | ESP월 소수정+2 | 01-21 | 324 | |
| 9780 | 01-21 | 150 | ||
| 9779 | 01-19 | 246 | ||
| 9778 | 01-17 | 351 |
댓글1
멋있네요 진짜.. 저는 구해서 쓰는 것 밖에 못하는데 직접 개발하시는건 리스펙합니다