How to compile C

Thugscub

Executive Member
Joined
Dec 3, 2008
Messages
8,236
Reaction score
7,207
Location
Lost
Hi guys I've lost me pip. Can anyone please give me a step by step how to do this.
Huawei Bootloader Unlocker
This tool let you unlock the bootloader of your Huawei / Honor Device even if the code can't be found.

After closing the official EMUI website, which allowed to retrieve the code to unlock the bootloader of Huawei/Honor phones, here's the fastest free way to retrieve it by yourself.

How To use it
Compile the .C file
gcc source.c -o exec
chmod +x exec
Install Android Developer Tools
Enable USB Debug on your device
Enable OEM Unlock
Connect your device to your computer
Use adb reboot bootloader to reboot your device in bootloader mode
Run the program
./exec
Wait

Here is the code.

/*
Bruteforce Bootloader Unlocker for HUAWEI Related smartphones
This is intended to be the fastest ever created bootloader unlocker
*/
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>

#define LEN 37

long long base_start = 1000000000000000;

void resumer(){
printf("\n\nLast used code was: %lld", base_start);
}

int main( int argc, char **argv) {
if ( argc > 1 ) {
char *base = argv[1];
base_start = atoll( base );
}
signal(SIGINT, resumer);
char fou[LEN] = {'f', 'a', 's', 't', 'b', 'o', 'o', 't', ' ',
'o', 'e', 'm', ' ', 'u', 'n', 'l', 'o', 'c', 'k', ' '};
char TOTAL[LEN];

while (sprintf( TOTAL, "%s%lld", fou, base_start++) && system( TOTAL ));

printf("Your unlock code is: %llu", base_start);

return 1;
}
 
Thanks very much Johnatan. It all comes back.
 
Top
Sign up to the MyBroadband newsletter
X