24 lines
No EOL
528 B
C++
24 lines
No EOL
528 B
C++
#include "stdafx.h" // IWYU pragma: keep
|
|
#include <cstdio>
|
|
#include "functions.h"
|
|
#ifdef _WIN32
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
bool verify_signature(unsigned char* signature, unsigned char* starting_loc){
|
|
for(int i = 0; i < 12; i++){
|
|
if (signature[i] != starting_loc[i]){
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void print_signature(unsigned char* loc){\
|
|
printf("{");
|
|
for(int i = 0; i < 5; i++){
|
|
printf("0x%x",loc[i]);
|
|
if (i != 11) printf(", ");
|
|
}
|
|
printf("}\n");
|
|
} |