Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
scan.cpp
Go to the documentation of this file.
1#include <iostream>
2#include <vector>
3#include "scanner_ipc.hpp"
4#include <Windows.h>
5
6int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
7 std::string fileToScan = __argv[1];
9 std::string results;
10 if (!client.QueuePeScan(fileToScan, "", results)) {
11 MessageBoxA(NULL, results.c_str(), "Panoptes Scan", MB_OK | MB_ICONERROR);
12 }
13
14 return 0;
15}
16
Panoptes Service Client that is used to communicate with the Panoptes Service via.
bool QueuePeScan(std::string PePath, std::string FileHash, std::string &message)
Send a request to the Panoptes Service to scan a PE file.
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
Definition scan.cpp:6