السلام عليكم أخواني...
كما هو واضح من العنوان فإني أسأل عن حجم مقدمة dos في الملفات التنفيذية pe ...
طبعا 32 بت
لأني وجدت أخي أحمد غريب في كتابه عن هذه البنية يقول التالي

ولما استخدمت stud PE وجدتها قرابة 64 بايت .. انضرو الشكل...

فما قول الخبراء
السلام عليكم أخواني...
كما هو واضح من العنوان فإني أسأل عن حجم مقدمة dos في الملفات التنفيذية pe ...
طبعا 32 بت
لأني وجدت أخي أحمد غريب في كتابه عن هذه البنية يقول التالي

ولما استخدمت stud PE وجدتها قرابة 64 بايت .. انضرو الشكل...

فما قول الخبراء
" إن الله كتب الإحسان على كل شيء"
::
الإرادة ... تحقق السيادة.
اقتباسطبعا 32 بت
اخي الكريم الdos header بشغل مساحة 64 بايت وليس 32 بايت
وبالنسبة ليش 64 بايت شوف الstruct هذه طبعا لل#c كنت مستعملها
في c وc++ ما بعرف هذة بالc#
حيت UINt16 مثل الword
public struct IMAGE_DOS_HEADER
{ // DOS .EXE header
public UInt16 e_magic; // Magic number
public UInt16 e_cblp; // Bytes on last page of file
public UInt16 e_cp; // Pages in file
public UInt16 e_crlc; // Relocations
public UInt16 e_cparhdr; // Size of header in paragraphs
public UInt16 e_minalloc; // Minimum extra paragraphs needed
public UInt16 e_maxalloc; // Maximum extra paragraphs needed
public UInt16 e_ss; // Initial (relative) SS value
public UInt16 e_sp; // Initial SP value
public UInt16 e_csum; // Checksum
public UInt16 e_ip; // Initial IP value
public UInt16 e_cs; // Initial (relative) CS value
public UInt16 e_lfarlc; // File address of relocation table
public UInt16 e_ovno; // Overlay number
public UInt16 e_res_0; // Reserved words
public UInt16 e_res_1; // Reserved words
public UInt16 e_res_2; // Reserved words
public UInt16 e_res_3; // Reserved words
public UInt16 e_oemid; // OEM identifier (for e_oeminfo)
public UInt16 e_oeminfo; // OEM information; e_oemid specific
public UInt16 e_res2_0; // Reserved words
public UInt16 e_res2_1; // Reserved words
public UInt16 e_res2_2; // Reserved words
public UInt16 e_res2_3; // Reserved words
public UInt16 e_res2_4; // Reserved words
public UInt16 e_res2_5; // Reserved words
public UInt16 e_res2_6; // Reserved words
public UInt16 e_res2_7; // Reserved words
public UInt16 e_res2_8; // Reserved words
public UInt16 e_res2_9; // Reserved words
public UInt32 e_lfanew; // File address of new exe header
}تم تعديل هذه المشاركة بواسطة ayash في 7 أغسطس 2010 في 20:44

اللهم إني أعوذ بك من علم لا ينفع ، ومن قلب لا يخشع ، ومن نفس لا تشبع ، ومن دعوة لا يستجاب لها
A.S Hack كتب:ولما استخدمت stud PE وجدتها قرابة 64 بايت .. انضرو الشكل...
64 بايت = 40h بايت
:cool:
Do as I say, not as I do
We are Anonymous. We are Legion. We don't forgive. We don't forget
شكرا لكما أخوي... تأكدت فعلا أن الحجم هو 64 بايتا...
أخي ayash ال 32 بت التي قصدتها هي بنية الملف... وليس حجم الترويسة أي أني أتحدث عن
PE 32 bit
شكرا لك أيضا Xacker ... ملاحضة لطيفة منك ههه لكن لماذا كتبها أخونا أحمد غريب بالستعشري!!
بالمناسبة هل يوجد شرح لبنية
PE32+ ...
" إن الله كتب الإحسان على كل شيء"
::
الإرادة ... تحقق السيادة.
A.S Hack كتب:بالمناسبة هل يوجد شرح لبنية
PE32+ ...
An In-Depth Look into the Win32 Portable Executable File Format - Part 1
An In-Depth Look into the Win32 Portable Executable File Format - Part 2
ولا تنسى مراجعة الروابط التي ستجدها ضمن المقال أساساً.
أيضاً المراجع في نهاية الصفحة:
http://en.wikipedia.org/wiki/Portable_Executable
بالعربية، من مقالات The Cracker
/index.php?showtopic=126486&st=0
A.S Hack كتب:لكن لماذا كتبها أخونا أحمد غريب بالستعشري!!
ربما هذا اسلوبه في أن يكتب بعض الأرقام الخاصة بالهكس وليس بالعشري.
تم تعديل هذه المشاركة بواسطة Xacker في 9 أغسطس 2010 في 14:39
Do as I say, not as I do
We are Anonymous. We are Legion. We don't forgive. We don't forget
بورك مسعاك أخي Xacker
جلبت روابط شيقة جدا
مع أني كنت قد سألت عن
PE32+
:happy:
اقتباسa 64-bit version called PE32+ (sometimes PE+)
" إن الله كتب الإحسان على كل شيء"
::
الإرادة ... تحقق السيادة.
http://www.kutub.info/library/book/566
شوف الرابط ممكن افيدك

اللهم إني أعوذ بك من علم لا ينفع ، ومن قلب لا يخشع ، ومن نفس لا تشبع ، ومن دعوة لا يستجاب لها
A.S Hack كتب:بورك مسعاك أخي Xacker
جلبت روابط شيقة جدا
مع أني كنت قد سألت عن
PE32+
:happy:
عذراً، لم أنتبه.
لم أبحث في بنية ملفات Win 64bit من قبل، سأفعل مساء إذا شاء المولى.
ayash كتب:http://www.kutub.info/library/book/566
شوف الرابط ممكن افيدك
هو ذاته مقالات The Cracker
فالكاتب هو أشرف (أو The Cracker أو Ashraf The Cracker :))
Do as I say, not as I do
We are Anonymous. We are Legion. We don't forgive. We don't forget
Xacker كتب:لم أبحث في بنية ملفات Win 64bit من قبل، سأفعل مساء إذا شاء المولى.
لم أستطع البحث البارحة لأني غرقت في النوم على الكرسي من التعب بعد عودتي من السفر مباشرة إلى العمل :sleep:
Do as I say, not as I do
We are Anonymous. We are Legion. We don't forgive. We don't forget