-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.h
More file actions
38 lines (34 loc) · 1.03 KB
/
main.h
File metadata and controls
38 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include <getopt.h>
#include <iostream>
#include "antidbg.h"
#include "config.h"
#include "event_monitor.h"
#include "file_scanner.h"
#include "firewall.h"
#include "logfile_manager.h"
#include "options_info.h"
#include "packet_generator.h"
#include "packet_handler.h"
#include "usage_collector.h"
#include "user_program.h"
#include "email_sender.h"
#define CONFIGPATH "./config.ini"
#define ENCRYPTION_KEY "./encryption_key.dat"
// 인자값 필요로 한다면 no_argument -> required_argument
struct option options[] = {
{"help", no_argument, 0, 'h'},
{"info", no_argument, 0, 'i'},
{"detect", no_argument, 0, 'd'},
{"scan", no_argument, 0,'s'},
{"usage", no_argument, 0, 'u'},
{"log", no_argument, 0, 'l'},
{"monitor", no_argument, 0, 'm'},
{"network", no_argument, 0, 'n'},
{"config", required_argument, 0, 'c'},
{"firewall", no_argument, 0, 'f'},
{"email", no_argument, 0, 'e'},
{0,0,0,0}
};
void CheckOption(int &argc, char** &argv);
void LoadConfig(const std::string& configPath);