added ws202425 courses

This commit is contained in:
2024-11-14 13:11:04 +01:00
parent 800282c2e8
commit beb31897b1
461 changed files with 20368 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
int main(int argc, char *argv[])
{
int BLOCK_SIZE = 512;
typedef uint8_t BYTE;
BYTE buffer[BLOCK_SIZE];
FILE *file = fopen("card.raw", "r");
if (argc != 2)
{
printf("Usage: ./recover card.raw\n");
return 1;
}
while (fread(&buffer, 1, BLOCK_SIZE, file) == BLOCK_SIZE)
{
if (buffer[0] == 0xff && buffer[1] == 0xd8 && buffer[2] == 0xff && (buffer[3] & 0xf0) == 0xe0)
{
printf("%i",buffer)
}
}
fclose(file);
return 0;
}