updated some files

did some more testing and added the yara.h header
This commit is contained in:
jakani24
2023-09-24 10:01:36 +02:00
parent 62f156d0b6
commit 89e911488e
33 changed files with 121 additions and 16 deletions

View File

@@ -1,23 +1,20 @@
#pragma warning(disable:4996)
#include <iostream>
#include <curl/curl.h>
#include <openssl/md5.h>
#include <yara.h>
#include "md5hash.h"
#include "connect.h"
#include "scan.h"
int main() {
printf("welcome to the jakach security tool\n");
char md5Hash[2 * MD5_DIGEST_LENGTH + 1]; // +1 for null-terminator
printf("Hash of the executable: ");
md5_file("C:\\Users\\janis\\Documents\\Projekte_mit_c\\ma\\ma\\src\\client_backend\\x64\\Debug\\client_backend.exe", md5Hash);
printf("%s", md5Hash);
CURL* curl = curl_easy_init();
if (!curl) {
std::cerr << "Failed to initialize libcurl." << std::endl;
return 1;
}
std::cout << "libcurl is correctly installed and initialized." << std::endl;
// Clean up libcurl
curl_easy_cleanup(curl);
char a[2000];
printf("\nerror:%d\n",connect_to_srv("https://self-signed.badssl.com/", a, 2000,1)); //error 60: self signed => option f<>r self-signed ignorieren aktivieren (bool ignore_invalid=true)
printf("%s", a); //error 6: not reachable
return 0;
}
}