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
7extern 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
32bool get_current_color(int descriptor, WORD& color);
33
34WORD set_color(WORD color);
35
36// sets a color and returns the previous color:
37void print_in_color(WORD color, const std::string &text);
void print_in_color(WORD color, const std::string &text)
Definition term_util.cpp:33
WORD set_color(WORD color)
Definition term_util.cpp:20
std::mutex g_stdOutMutex
Definition term_util.cpp:9
bool get_current_color(int descriptor, WORD &color)
Definition term_util.cpp:11