1
0

Added data for week1 chals

This commit is contained in:
h3xduck 2025-10-13 00:04:54 +00:00
parent e3a5d4f9cb
commit 1c978c70c3
4 changed files with 23881 additions and 0 deletions

11921
templab/data/.gef-2025.01.py Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

BIN
templab/data/week1/prog Executable file

Binary file not shown.

39
templab/data/week1/prog.c Normal file
View File

@ -0,0 +1,39 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void greet(const char *name) {
printf("Hello, %s!\n", name);
}
int stack_frame() {
int arr[30];
size_t index;
arr[0] = 0xbeef;
for(index = 1; index < 30; index++) {
arr[index] = rand() % 0x1337 + arr[index - 1];
}
return arr[29];
}
void vuln() {
char letter[100];
read(0, letter, 350 * sizeof(char));
}
int main() {
greet("World");
int ret_val = stack_frame();
vuln();
return 0;
}