25-11-2010, 08:24 PM
GamingMasteR كتب :1- الترتيب صحيح ، الترتيب المعروض في الصورة بالنظام العشري ، في الـdisassembler ستجده بالنظام الست عشري .1- نعم هذا ما قصدته بالرغم من أن طريقة جلب الـ Ntxxx من الـ Ntdll تعطي ترتيب يختلف
2- لم افهم المقصود .
عن الذي يعرضه KD إنطلاقا من NTyieldExecution ؟؟
كود دلفي :
كود :
type
TDWordArray = array [0..$FFFFF] of DWORD;
var
imageinfo: LoadedImage;
pExportDirectory: PImageExportDirectory;
dirsize: Cardinal;
pDummy: PImageSectionHeader;
i: Cardinal;
pNameRVAs: ^TDWordArray;
Name: string;
_index: Word;
begin
ListFdLL.Clear; _index:= 0;
if MapAndLoad(PChar('ntdll.dll'), nil, @imageinfo, True, True) then
begin
try
pExportDirectory := ImageDirectoryEntryToData(imageinfo.MappedAddress,
False, IMAGE_DIRECTORY_ENTRY_EXPORT, dirsize);
if (pExportDirectory <> nil) then
begin
pNameRVAs := ImageRvaToVa(imageinfo.FileHeader, imageinfo.MappedAddress,
DWORD(pExportDirectory^.AddressOfNames), pDummy);
for i := 0 to pExportDirectory^.NumberOfNames - 1 do
begin
Name := PChar(ImageRvaToVa(imageinfo.FileHeader, imageinfo.MappedAddress,
pNameRVAs^[i], pDummy));
If Pos('Nt',Name)=1 Then
Begin
ListFdLL.Items.Add;
ListFdLL.Items.Item[_index].Caption:= IntToStr(_index);
ListFdLL.Items.Item[_index].SubItems.Add(Name);
ListFdLL.Items.Item[_index].SubItems.Add('');
ListFdLL.Items.Item[_index].SubItems.Add('');
ListFdLL.Items.Item[_index].SubItems.Add('-');
ListFdLL.Items.Item[_index].SubItems.Add('%SystemDirectory%\ntkrnlpa.exe');
Inc(_index);
End;
end;
end;
finally
UnMapAndLoad(@imageinfo);
Label2.Caption:= IntToStr(ListFdLL.Items.Count -1 );
ListFdLL.Items.Add;
end;
end;
End;PHP كود :
KiSystem
Service() knows that it is handling a win32k.sys API call by examining bits #12
and 13 of the function index in register EAX. If both bits are zero, it is a Native API
call handled by ntoskrnl.exe, so KiSystemService() uses the first SDT slot. If bit
#12 is set and bit #13 is zero, KiSystemService() uses the second slot.
I'M Fly Like A G6

