-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safety version keeps crashing #2
Comments
Here are some more details on the exception. This is super important. Faulting application name: APM 08279+5255.exe, version: 6.6.6.6, time stamp: 0x657d88a9 |
I ran it a second time, but it suffered the exact same exception. This is really important. @pankoza2-pl really needs to patch this out! Faulting application name: APM 08279+5255.exe, version: 6.6.6.6, time stamp: 0x657d88a9 More details, and where the crash happens in the code: |
@pankoza2-pl this is very serious! The graphical payloads stop a few seconds into the 18th payload, and the malware crashes at the 20th payload, The problem is, the malware crashes here every time I run it. I have crash reports from the last two attempts. The malware is uing 287.1 MB (according to the Task Manager) at the time of crashing. You really have to integrate patches into this malware! Ccmputer specifications: This crash also happened on a VM running Windows 7 SP1 (6.1.7601). Here's a patch I attempted for this malware, replace .txt with .cpp. |
Just did another debugging session, and identified where the program is crashing the most.
ChatGPT's reccomendations: Uninitialized rgbquad pointer: You declare RGBQUAD* rgbquad = NULL; but you need to allocate memory for it before using it. The line bmp = CreateDIBSection(hdc, &bmpi, DIB_RGB_COLORS, (void**)&rgbquad, NULL, 0); allocates memory for rgbquad as part of creating the DIB section. However, you should verify that this call to CreateDIBSection is successful and that rgbquad is indeed pointing to valid memory. Memory access bounds: Ensure that index (calculated as y * w + x) does not exceed the allocated size of rgbquad. This calculation assumes that rgbquad is properly allocated and w and h are correct dimensions. Proper handling of device contexts (DC): You're managing hdc and hdcCopy but ensure you are correctly releasing them (ReleaseDC and DeleteDC) when done using them. Improper management can lead to resource leaks or undefined behavior. Infinite loop: The while (1) loop suggests an infinite loop, which might be intentional for your application. However, ensure you have mechanisms in place to break out of it properly during debugging to avoid hanging your application indefinitely. Check CreateDIBSection return value: Verify that CreateDIBSection returns a valid HBITMAP and initializes rgbquad correctly. Debugging pointers: Use a debugger to inspect the values of rgbquad and ensure it is not null and is properly initialized. Bounds checking: Add checks to ensure index is within bounds before accessing rgbquad[index]. Resource management: Ensure you release all resources (hdc, hdcCopy, etc.) properly to prevent resource leaks. |
This is a big problem. On my Windows 10 x64 computer, the x86 safety version of this malware crashes every time it reaches a certain payload. It usually stops graphical payloads during the 18th payload, and crashes completely with an access violation at the 19th or 20th payload. The program, according to Task Manager, is using 287.1 MB at the time of this crash. I haven't seen anyone else crash this early while running this malware on Windows 10 or 11. When debugging, the crash is shown in one of the graphical payloads around that time.
My computer is running Windows 10 22H2 x64 with 32GB RAM and 1TB storage.
This also happened on a Windows 7 x64 VM with 4GB RAM and 64GB storage.
In the video linked here (https://www.youtube.com/watch?v=KEfUYxk8AXY), the malware crashes a little bit later.
Due to this, you should patch your malwares to fix these problems.
The text was updated successfully, but these errors were encountered: