Results 1 to 5 of 5
  1. #1
    xlolxapplex's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    31
    Reputation
    10
    Thanks
    101
    My Mood
    Tired

    BF4 Attachment Unlocker

    0x1421968A8 and 0x54

    thats all...

    Warning: Do not use DICE skins! Attachments only. Using guns you haven't unlocked will spawn you without gun.

    Quote Originally Posted by Cultist Turtleist View Post
    Is-is this a fucking joke? Can we get more than this?
    lel fine F10-Unlock F11-Disable F12-Quit
    C++
    Code:
    #include "stdafx.h"
    
    #include <windows.h>
    #include <psapi.h>
    #include <tlhelp32.h>
    
    
    BOOL Unlock( HANDLE hProcess, BOOL status )
    {
        // Dereference static pointer
    
        uintptr_t SyncedSettings = NULL;
    
        if ( !ReadProcessMemory( hProcess, reinterpret_cast<LPCVOID>( 0x1421968A8 ), &SyncedSettings, sizeof( PVOID ), NULL ) )
        {
            printf( "[!] Failed to call ReadProcessMemory( ), GetLastError( )=%d\n", GetLastError( ) );
            return FALSE;
        }
    
        // Add offset
    
        uintptr_t UnlockOffset = SyncedSettings + 0x54;
        byte enabled;
    
        if ( status )
            enabled = 1;
        else
            enabled = 0;
    
        if ( !WriteProcessMemory( hProcess, reinterpret_cast<LPVOID>( UnlockOffset ), &enabled, sizeof( enabled ), NULL ) )
        {
            printf( "[!] Failed to call WriteProcessMemory( ), GetLastError( )=%d\n", GetLastError( ) );
            return FALSE;
        }
    
        printf( "[+] Unlock flag has been set to: %d\n", status );
    
        return TRUE;
    }
    
    DWORD GetProcessByName( LPTSTR lpExeName )
    {
        HANDLE hSnapShot = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
    
        if ( hSnapShot == INVALID_HANDLE_VALUE )
        {
            printf( "[!] Failed to call CreateToolhelp32Snapshot, GetLastError( ) = %d\n", GetLastError( ) );    
            return NULL;
        }
    
        PROCESSENTRY32 pe = { 0 };
        pe.dwSize = sizeof( PROCESSENTRY32 );
    
        for ( BOOL success = Process32First( hSnapShot, &pe ); success == TRUE; success = Process32Next( hSnapShot, &pe ) )
        {
            if ( wcscmp( lpExeName, pe.szExeFile ) == 0 )
            {
                CloseHandle( hSnapShot );
                return pe.th32ProcessID;
            }
        }
    
        CloseHandle( hSnapShot );
        return NULL;
    }
    
    int _tmain( int argc, _TCHAR* argv[] )
    {
        printf( "[+] BF4 Unlocker\n" );
        printf( "[+] Waiting for BF4.exe...\n" );
    
        // Find BF4 in the process list
            
        DWORD dwPid = NULL;
    
        while( !dwPid )
            dwPid = GetProcessByName( L"bf4.exe" );
    
        printf( "[+] BF4.exe 0x%X\n", dwPid );
        
        HANDLE hProcess = OpenProcess( PROCESS_ALL_ACCESS, FALSE, dwPid );
    
        if ( !hProcess )
            printf( "[!] Failed to call OpenProcess( ), GetLastError( )=%d\n", hProcess );
    
        while( 1 )
        {
            if ( GetAsyncKeyState( VK_F10 ) )
                Unlock( hProcess, TRUE );
    
            if ( GetAsyncKeyState( VK_F11 ) )
                Unlock( hProcess, FALSE );
    
            if ( GetAsyncKeyState( VK_F12 ) )
                break;
    
            Sleep( 100 );
        }
    
        return 0;
    }
    Last edited by xlolxapplex; 07-16-2015 at 12:51 AM.

  2. #2
    Cultist Turtleist's Avatar
    Join Date
    Feb 2015
    Gender
    female
    Location
    Miami Bound
    Posts
    141
    Reputation
    10
    Thanks
    59
    Is-is this a fucking joke? Can we get more than this?

  3. #3
    Zumorio's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Netherlands
    Posts
    54
    Reputation
    10
    Thanks
    7
    My Mood
    Amazed


    Any idea what's wrong?
    Professional programmer and coder.
    PHP - HTML - CSS - C++ - PAWN - JS - SQF - SQL - PDO - OOC.

  4. #4
    xlolxapplex's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    31
    Reputation
    10
    Thanks
    101
    My Mood
    Tired
    Quote Originally Posted by Zumorio View Post


    Any idea what's wrong?
    Try

  5. #5
    Cultist Turtleist's Avatar
    Join Date
    Feb 2015
    Gender
    female
    Location
    Miami Bound
    Posts
    141
    Reputation
    10
    Thanks
    59
    I appreciate you adding more, I will try this out and post feedback.

Similar Threads

  1. [script] Changing Weapon Attachment Unlock Requirements
    By lolocauster in forum Crysis 2 Hacks / Cheats
    Replies: 13
    Last Post: 05-05-2011, 04:08 AM
  2. K-Volt attachment unlocks!!!
    By Cezad in forum Crysis 2 Help
    Replies: 3
    Last Post: 04-30-2011, 03:07 AM
  3. [SOLVED]Attachment unlock
    By dobrique24 in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 06-10-2010, 07:10 PM
  4. Attachment Unlocker
    By Asianator in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 02-07-2010, 09:29 PM
  5. need like a all the attachments unlocked
    By urmoms in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 01-19-2010, 09:40 PM

Tags for this Thread