Leak Society - The Home Of Nulled Resources.
Forum Beta v1 Now Live!
Challenges
Thead Owner : QueenStrike, Category : General Hacking, 3 Comment, 1132 Read
Viewers: 1 Guest(s)
Member
***
92
Messages
6
Threads
0
Rep
4 Years of Service
08-02-2021, 07:06 PM
#4
Challenge 3 Binary Patching

Scenario: You have a program which you need to find the license key to use it, luckily the key is somewhere in the binary.

Binary patching

Find the license key compile on your own machine :


Source:
Code:
#include <string.h>
#include <stdio.h>
int main(int argc, char *argv[]) {
if(argc==2) {
printf("Checking License: %s\n", argv[1]);
if(strcmp(argv[1], "AAAA-Z10N-42-OK")==0) {
printf("Access Granted!\n");
} else {
printf("WRONG!\n");
}
} else {
printf("Usage: <key>\n");
}
return 0;
}

Tools:
nano (text editor)
gcc
Ghidra/Cutter or any debugger

OS-Linux(Ubuntu)

Compile: gcc -o license license.c
(compiles fine to warnings)


Messages In This Thread
Challenges - by QueenStrike - 06-06-2021, 01:22 AM
Challenges - by QueenStrike - 06-11-2021, 01:28 AM
Challenges - by QueenStrike - 06-29-2021, 05:40 AM
Challenges - by QueenStrike - 08-02-2021, 07:06 PM

Forum Jump: