uk
Feedback

Не попадись на ботовода! Telemetrio знаходить і позначає такі канали мітками 👉 Хочеш бачити мітку, оформляй підписку

ReverseEngineering

ReverseEngineering

Відкрити в Telegram
1 730
Підписники
-124 години
-67 днів
+28130 днів
Архів дописів
19 вер 2025, 17:01

پچ داینامیک با hook (Frida) چالش: آنالیز و مانیتور یک فانکشن در زمان اجرا روی نمونه مجاز بدون تغییر فایل ابزار Frida برای پیدا کردن آدرس نام تابع Ghidra IDA روش ادرس یا نام تابع هدف رو داخل IDA/Ghidra پیدا کنید با Frida به پروسس attach یا اونو اجرا کنید تابع رو hook کنید و پارامترهاشو مقدار بازگشتیشون رو لاگ کنید لاگ‌ها را بررسی و منطق تابع رو مستندسازی کنید دستور اجرا
frida -f "C:\path\sample.exe" -l hook.js --no-pause
Dynamic Patching with Hooking Using Frida Challenge: Analyze and monitor a function at runtime on a legitimate sample without modifying the file itself Tools: Frida for hooking and runtime inspection IDA or Ghidra for locating function addresses or names Workflow Identify the target function Use IDA or Ghidra to find the address or name of the function you want to monitor Attach or launch the process with Frida You can attach to a running process or start it under Frida’s control Hook the function Use Frida to intercept the function call capture its parameters and log its return value Analyze the logs Check the captured input and output to understand the functions behavior and document its logic Example Frida command:
frida -f "C:\path\sample.exe" -l hook.js --no-pause
19 вер 2025, 16:59

شناخت توابع کتابخونه‌ای Standard Library در باینری چرا این مهمه؟ بیشتر برنامه‌ها پر از صدا زدن تابع‌ های استاندارد هستن مثل:
strcmp, strncmp, strcpy memcpy, memset printf, scanf malloc, free
وقتی دارید یه باینری رو آنالیز میکنید اگه سریع بتونید تشخیص بدید که فلان کد داره strcmp اجرا میکنه کلی از وقتتون صرفه‌ جویی میشه وقتی Import Table وجود داره خیلی ساده‌ست: توی IDA/Ghidra یا هر ابزار دیگه اسم توابع رو تو Import Table میبینید مثلا:
call _strcmp
اینجا هیچ کاری لازم نیست اسمش مشخصه وقتی Import Table خراب یا پاک شده اینجا دیگه اسم‌ ها رو نداریم باید از روی الگوی رفتاری Pattern بفهمیم تابع چیه مثال – strcmp:
mov al, [esi]     ; str1 کاراکتر از mov cl, [edi]     ; str2 کاراکتر از cmp al, cl        ; مقایسه jne not_equal test al, al       ;   به صفر رسیدیم؟ jne loop
این الگو مقایسه بایت‌ به‌ بایت توقف وقتی کاراکتر صفر شد نشونه‌ی یه strcmp یا شبیهشه مثال  memcpy:
mov al, [esi]     ;  src اپلود از mov [edi], al     ;  deast ذخیره در inc esi inc edi dec ecx jnz loop
این یعنی یه کپی ساده از حافظه  همون memcpy Inline خیلی وقتا مخصوصا با Optimization این توابع مستقیم توی کد ظاهر میشن اون موقع باید حواستون باشه که از روی الگو تشخیص بدید تکنیک کمکی در RE: توی IDA/Ghidra میتونی یه تابع بدون اسم رو پیدا کنید و بعد از روی رفتارش مثلا همین حلقه کپی حافظه بهش Label بدید:
sub_401000 → memcpy_like
اینجوری دفعه بعد که دیدینش راحت‌ تر تشخیص میدید خیلی مهمه! چون خیلی از CrackMe ها و حتی باینری‌های واقعی از همین توابع برای چک کردن پسورد یا مقایسه داده استفاده میکنن سریع تشخیص بدید strcmp هست مستقیم میرید دنبال آرگومان‌هاش که پسورد اونجاست تمرین پیشنهادی: یه کد C با strcmp و memcpy بنویسید خروجی اسمبلی رو ببینید بعد همون کد رو با Optimization (-O2) بسازید و دوباره ببینید سعی کنید چشمی تشخیص بدید که الگوی strcmp هست یا memcpy Identifying Standard Library Functions in Binary Why is this important? Most programs are full of calling standard functions like:
strcmp, strncmp, strcpy memcpy, memset printf, scanf malloc, free
When you are analyzing a binary if you can quickly recognize that a certain code is executing strcmp it will save you a lot of time When there is an Import Table It is very simple: in IDA/Ghidra or any other tool you will see the names of the functions in the Import Table For example:
call _strcmp
Nothing is needed here, the name is specific When the Import Table is corrupted or deleted Here we no longer have the names we have to figure out what the function is from the Pattern behavior Example – strcmp:
mov al, [esi] ; str1 character from mov cl, [edi] ; str2 character from cmp al, cl ; compare jne not_equal test al, al ; did we reach zero? jne loop
This pattern compares byte by byte stops when the character is zero which is a sign of a strcmp or similar Example memcpy:
mov al, [esi] ; src upload from mov [edi], al ; deast save to inc esi inc edi dec ecx jnz loop
This means a simple copy of the memory the same as memcpy Inline Many times especially with Optimization, these functions appear directly in the code, then you should be careful to recognize them by the pattern Helpful technique in RE: In IDA/Ghidra you can find an unnamed function and then label it based on its behavior for example this memory copy loop:
sub_401000 → memcpy_like
This way, you will recognize it more easily the next time you see it Very important! Since many CrackMes and even real binaries use these functions to check passwords or compare data you can quickly identify strcmp by going straight to its arguments where the password is Suggested exercise: Write some C code with strcmp and memcpy See the assembly output Then build the same code with Optimization (-O2) and see it again Try to visually identify whether the pattern is strcmp or memcpy
18 вер 2025, 18:33

Dynamic Code Mutation  Anti-Debug Evasion سطح متوسط تا پیشرفته چالش: نرم‌افزارهایی که کدشون به‌صورت داینامیک تغییر میکنه و چند لایه Anti-Debug پیچیده دارن فانکشن‌ها یا چک‌ها داخل runtime درست میشن یا رمزگذاری میشن روش‌ های معمول مهندسی معکوس جواب نمیدن ابزارها x64dbg یا WinDbg برای trace سطح پایین و بررسی memory Frida یا Python برای hook و دستکاری runtime IDA یا Ghidra برای استخراج الگوریتم‌های رمزگذاری و ساختار باینری تکنیک‌ها گرفتن snapshot از memory قبل و بعد از اجرای هر بخش و تشخیص تغییرات کد یا داده‌ ها هوک کردن فانکشن‌ های runtime-generated یا رمزگذاری شده بایپس چک‌ها با patch یا تغییر مقادیر در memory بدون تغییر فایل اصلی مقابله با Anti-Debug پیچیده مانند timing check، ptracing یا self-debug detection تمرین عملی برنامه‌ای با runtime-generated code اجرا بشه و snapshot از memory گرفته شه تفاوت‌ ها تحلیل و فانکشن‌ های runtime-generated یا رمزگذاری شده hook باید بشن بایپس چک‌ها با patch یا تغییر مقادیر داخل memory انجام میشه اثر bypass بررسی و داده ها یا رشته‌ ها استخراج باید بشن ترکیبruntime code generation ، dynamic patching و automation روش‌ های معمول RE رو شکست میده تمرین واقعی نزدیک به نرم‌افزار های صنعتی و محافظت‌ شده امکان ساخت یک framework کوچیک semi-automated RE برای bypass چند برنامه Dynamic Code Mutation Anti-Debug Evasion Challenge: Applications modify their code dynamically and have multiple layers of complex Anti-Debug techniques Functions or checks are generated or encrypted at runtime Traditional reverse engineering methods often fail Tools x64dbg or WinDbg for low-level tracing and memory inspection Frida or Python for runtime hooking and manipulation IDA or Ghidra for extracting encryption algorithms and binary structure Techniques Take snapshots of memory before and after executing each section to detect code or data changes Hook runtime-generated or encrypted functions Bypass checks by patching or modifying memory values without touching the original file Counter complex Anti-Debug mechanisms such as timing checks ptracing or self-debug detection Practical Exercise Run a program with runtime-generated code and take memory snapshots Analyze differences and identify runtime-generated or encrypted functions Hook identified functions Bypass checks using memory patches or value modifications Verify the effect of bypass and extract relevant data or strings Combination of runtime code generation dynamic patching and automation defeats standard RE methods Realistic Exercise Simulate an industrial-level protected software Optionally build a small semi-automated RE framework for bypassing multiple programs
18 вер 2025, 17:46

نگاهی به گزارشی از فعالیت های جهانی علیه حملات باج افزاری سال گذشته A look at a report on global counter-ransomware activity last year https://blog.bushidotoken.net/2025/01/analysis-of-counter-ransomware.html @FUZZ0x https://blog.bushidotoken.net/2025/01/analysis-of-counter-ransomware.html @FUZZ0X
18 вер 2025, 08:44

از اینکه تا اینجا از من حمایت کردید بسیار سپاسگزارم من سعی می‌کنم تمام مطالبی که ارائه میدم بهترین باشن و امیدوارم که از اونها خوشتان بیاد و احساس خوبی داشته باشید همه تون رو دوست دارم. الون🩶 Thank you so much for supporting me so far. I try to make all the content I provide the best and I hope you like it and feel good I love you all. Alone🖤
17 вер 2025, 19:23

خیلی ممنونم ازتون تا اینجا که حمایت کردید از من منم سعی میکنم تمام محتوایی که ارائه میدم بهترین باشه و امیدوارم شما هم خوشتون بیاد دمتون گرم. الون🩶 Thank you very much for supporting me so far. I try to make all the content I provide the best and I hope you like it and feel good Alone🖤
17 вер 2025, 19:19
17 вер 2025, ~19:20

پچ چند فانکشن و بایپس چندمرحله‌ ای چالش: نرم‌افزاری که چند تا چک مختلف داره مثلا سریال محدودیت زمانی و یک چک چند لایه‌ ای دیگه هدف حذف یا بی‌ اثر کردن همه چک‌ ها با کمترین تغییر ممکن ابزارها: IDA یا Ghidra برای مشاهده فانکشن‌ها و cross-reference ها x64dbg برای دیباگ و trace چند مرحله‌ای Hex Editor یا پلاگین پچ مثلا IDA patch برای اعمال تغییرات (اختیاری) Python برای اتومات کردن پچ‌ های تکراری روش کار: 1 فهرست کامل چک‌ها تهیه بشه با جستجوی رشته ها cross-reference ها و بررسی فانکشن ها 2 ترتیب اجرای چک‌ ها مشخص بشه با اجرای برنامه و trace در x64dbg 3 برای هر چک کمترین و کم‌ ریسک‌ ترین تغییر طراحی بشه تغییر شرط یا مقدار بازگشتی 4 پچ‌ها مرحله‌ای اعمال شن و بعد از هر پچ برنامه اجرا و تست شه 5 مسیرهای گزارش یا لاگ که اثرات پچ ها رو افشا میکنن بررسی و در صورت نیاز بی‌ اثر بشن تمرین عملی: برنامه‌ای با دو یا سه تا چک مختلف انتخاب کنید تمام فانکشن‌های مربوط به چک در IDA/Ghidra فهرستشون کنید breakpoint x64db روی هر چک قرار بگیره و به ترتیب اجرا بررسی بشه یکی‌یکی پچ‌ ها رو اعمال کنید بعدش از هر پچ تست کلی انجام بدید در اخر نسخه بکاپ جدید با نسخه پچ‌ شده مقایسش کنید نکات عملی و احتیاط: همیشه قبل از هر تغییر نسخه بکاپ جدا داشته باشید حذف یا تغییر یک چک ممکنه رفتار چک‌ های دیگه رو تغییر بده بعد از هر پچ حتما تست کنید تغییرات حداقلی احتمال شکستن منطق برنامه رو کاهش میدن اگر نیاز به پچ‌های شبیه به هم داشتید از اسکریپت برای جلوگیری از خطا استفاده کنید اگر باینری checksum یا signature داخلی داشت مکانیزمش رو اول شناسایی کنید  و بعد درستش کنید یا تغییرها رو طوری اعمال کنید که checksum رو مخفی نکنه Multi-Function Patching & Multi-Stage Bypass Challenge: An application that has multiple different checks a serial check a time limit and another multi-layered check The goal is to remove or neutralize all checks with the minimum possible changes Tools: IDA or Ghidra to view functions and cross-references x64dbg for multi-stage debugging and tracing Hex Editor or patch plugin (IDA patch) to apply changes (optional) Python to automate repetitive patches Method 1 Enumerate all checks build a complete list by searching for strings following cross-references, and inspecting functions 2 Determine execution order run the program and trace it in x64dbg to see the order in which checks execute 3 Design the smallest lowest-risk change for each check change a conditional or a return value 4 Apply patches in stages after each patch, run and test the program 5 Inspect reporting/log paths that might reveal your patches and neutralize them if necessary Practical Exercise Pick a program that implements two or three different checks List all check-related functions in IDA/Ghidra Place breakpoints in x64dbg on each check and examine them in order Apply patches one by one after each patch perform a full test At the end compare the backed-up original with the patched binary Practical Notes & Precautions Always keep a separate backup of the original binary before any change Removing or modifying one check can change the behavior of other checks test after every patch Make minimal changes to reduce the chance of breaking program logic If you need to apply similar patches repeatedly use a script to avoid mistakes If the binary uses an internal checksum or signature identify that mechanism first and then fix it properly or apply your changes so they don’t invalidate the checksum
17 вер 2025, 19:05

Akira Ransomware Attack Analysis with SEO Poisoning and Trapping Victims with a Search 🤝
15 вер 2025, 14:03

Repost from Fuzzing ZONE
تحلیل حمله باج افزار akira با SEO poisoning و به دام انداختن قربانی با یک سرچ🤝 https://thedfirreport.com/2025/08/05/from-bing-search-to-ransomware-bumblebee-and-adaptixc2-deliver-akira/ @FUZZ0x
15 вер 2025, 14:03

13 вер 2025, 19:50

LockBit attack analysis using cobalt strike and socks
13 вер 2025, 13:16

Repost from Fuzzing ZONE
تحلیل حمله LockBit با استفاده از cobalt strike و socks https://thedfirreport.com/2025/01/27/cobalt-strike-and-a-pair-of-socks-lead-to-lockbit-ransomware/ @FUZZ0x
13 вер 2025, 13:16

LockBit attack analysis using cobalt strike and socks
13 вер 2025, 13:16
13 вер 2025, ~13:16

پچ کردن و بایپس نرم‌افزار یک برنامه ساده با چک سریال یا محدودیت زمانی وجود داره هدف دور زدن چک بدون دسترسی به کد اصلیه ابزارها: IDA یا Ghidra برای بررسی باینری و پیدا کردن فانکشن‌ها x64dbg برای اجرای برنامه و مشاهده مسیر اجرای کد Hex Editor برای اعمال تغییرات مستقیم در باینری روش کار: 1 شناسایی فانکشن چک و بررسی مسیر اجراش 2 اجرای برنامه در x64dbg و دنبال کردن مسیر اجرای چک 3 تغییر یک دستور شرطی یا مقدار ثابت برای bypass کردن چک 4 تست برنامه بعد از تغییر برای اطمینان از عملکرد صحیح تمرین عملی: دانلود یک CrackMe ساده با check serial شناسایی فانکشن چک در IDA یا Ghidra trace کردن مسیر اجرای چک در x64dbg اعمال patch با Hex Editor مثلا تغییر je→ jmp اجرای برنامه و بررسی bypass شدن چک نکات مهم: همیشه قبل از تغییر از برنامه backup داشته باشید کمترین تغییر ممکن اعمال بشه تا برنامه سالم بمونه مسیر اجرای کد به دقت بررسی بشه تا bypass صحیح انجام بشه Software Patching & Bypass A simple program with a serial check or time restriction can be bypassed without access to the original source code Tools: IDA / Ghidra – to analyze the binary and locate functions x64dbg – to run the program and trace execution Hex Editor - to make direct changes in the binary Method : 1 Identify the check function and examine its execution path 2 Run the program in x64dbg and trace the serial/time check logic 3 Modify a conditional instruction or constant to bypass the check 4 Test the modified program to ensure it still works correctly Practical Exercise : 1 Download a simple CrackMe with a serial check 2 Locate the check function in IDA or Ghidra 3 Trace the execution path of the check in x64dbg 4 Apply a patch in a Hex Editor change je jmp 5 Run the program to verify the check is bypassed Key Notes : Always backup the original binary before patching Make minimal changes to preserve program stability Carefully analyze the execution path to ensure the bypass works correctly
12 вер 2025, 14:34

از کانال راضی هستید ؟ Are you satisfied with the channel ?
Anonymous voting
11 вер 2025, 17:46

Ми використовуємо файли cookie для покращення вашого досвіду перегляду.
Натиснувши «Прийняти все», ви погоджуєтеся на політику використання файлів cookie.