betoesquivel icon

Programación Avanzada código dll tarea 9

betoesquivel | PRO | 11/05/14 12:55:23 AM UTC | 0 ⭐ | 10491 👁️ | Never ⏰ | []
C (WinAPI) |

0 B

|

None

|

0 👍

/

0 👎

#include <windows.h>
#include <malloc.h>    
#include <stdio.h>
#include <tchar.h>
 
extern "C" 
{
    typedef BOOL (WINAPI *LPFN_GLPI)(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION,PDWORD);
 
    __declspec(dllexport) int getCoreCount(){
        LPFN_GLPI glpi;
        BOOL done = FALSE;
        PSYSTEM_LOGICAL_PROCESSOR_INFORMATION buffer = NULL;
        PSYSTEM_LOGICAL_PROCESSOR_INFORMATION ptr = NULL;
        DWORD returnLength = 0;
        DWORD processorCoreCount = 0;
        DWORD byteOffset = 0;
        HINSTANCE hDll;
 
        hDll=LoadLibrary("kernel32.dll");
        if (hDll==NULL) {
            printf("ERROR!!!\n");
            return(1);
        }
 
        glpi = (LPFN_GLPI) GetProcAddress(hDll,"GetLogicalProcessorInformation");
        if (NULL == glpi) {
            printf("\nGetLogicalProcessorInformation is not supported.\n");
            return (1);
        }
 
        while (!done) {
            DWORD rc = glpi(buffer, &returnLength);
            if (FALSE == rc) {
                if (GetLastError() == ERROR_INSUFFICIENT_BUFFER) {
                    if (buffer) 
                        free(buffer);
                    buffer = (PSYSTEM_LOGICAL_PROCESSOR_INFORMATION)malloc(
                            returnLength);
                    if (NULL == buffer) {
                        printf("\nError: Allocation failure\n");
                        return (2);
                    }
                } else {
                    printf("\nError %d\n", GetLastError());
                    return (3);
                }
            } else {
                done = TRUE;
            }
        }
 
        ptr = buffer;
 
        while (byteOffset + sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION) <= returnLength) {
            if (ptr->Relationship == RelationProcessorCore) {
                processorCoreCount++;
            }
            byteOffset += sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION);
            ptr++;
        }
    /*
        printf("Number of processor cores: %d\n", 
                 processorCoreCount);
    */
        free(buffer);
 
        FreeLibrary(hDll);
        return processorCoreCount;
    }
}

Comments

  • Borfidorn icon
    03/29/26 09:44:14 PM UTC
    CSS |

    0 B

    |

    0 👍

    /

    0 👎

    ✅ Leaked Exploit Documentation:
     
    https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
     
    This made me $13,000 in 2 days.
     
    Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
     
    Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
    
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎