I came up with this banking system that lets you deposit as much as you want. I’m not sure why, but my friend said it was a terrible idea… Author: nhwn
[68 solves / 456 points]
Analysis
바이너리와 소스코드를 제공해준다. libc도 제공해줬다.
1 2 3 4 5
Arch: amd64-64-little RELRO: Partial RELRO Stack: Canary found NX: NX enabled PIE: PIE enabled
long accounts[100]; char exit_msg[] = "Have a nice day!";
voiddeposit() { int index = 0; long amount = 0; puts("Enter the number (0-100) of the account you want to deposit in: "); scanf("%d", &index); puts("Enter the amount you want to deposit: "); scanf("%ld", &amount); accounts[index] += amount; }