Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
Functions
scan.cpp File Reference
#include <iostream>
#include <vector>
#include "scanner_ipc.hpp"
#include <Windows.h>

Go to the source code of this file.

Functions

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
 

Function Documentation

◆ WinMain()

int WINAPI WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nCmdShow 
)

Definition at line 6 of file scan.cpp.

6 {
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}
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.

References PanoptesServiceClient::QueuePeScan().