HollowsHunter
Scans all running processes. Recognizes and dumps a variety of potentially malicious implants (replaced/implanted PEs, shellcodes, hooks, in-memory patches).
Loading...
Searching...
No Matches
term_util.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <iostream>
4
#include <windows.h>
5
#include <mutex>
6
7
extern
std::mutex
g_stdOutMutex
;
8
9
#define BLACK 0
10
#define DARK_BLUE 1
11
#define DARK_GREEN 2
12
#define DARK_CYAN 3
13
#define DARK_RED 4
14
#define DARK_MAGENTA 5
15
#define BROWN 6
16
#define SILVER 7
17
#define GRAY 8
18
#define BLUE 9
19
#define LIME 0xA
20
#define CYAN 0xB
21
#define RED 0xC
22
#define MAGENTA 0xD
23
#define YELLOW 0xE
24
#define WHITE 0xF
25
26
#define MAKE_COLOR(fg_color, bg_color) (fg_color | (bg_color << 4))
27
#define GET_BG_COLOR(color) (color >> 4)
28
29
#define YELLOW_ON_BLACK MAKE_COLOR(YELLOW, BLACK)
30
#define RED_ON_BLACK MAKE_COLOR(RED, BLACK)
31
32
bool
get_current_color
(
int
descriptor, WORD& color);
33
34
WORD
set_color
(WORD color);
35
36
// sets a color and returns the previous color:
37
void
print_in_color
(WORD color,
const
std::string &text);
print_in_color
void print_in_color(WORD color, const std::string &text)
Definition
term_util.cpp:33
set_color
WORD set_color(WORD color)
Definition
term_util.cpp:20
g_stdOutMutex
std::mutex g_stdOutMutex
Definition
term_util.cpp:9
get_current_color
bool get_current_color(int descriptor, WORD &color)
Definition
term_util.cpp:11
Generated by
1.12.0