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
32
33namespace hh {
34 namespace util {
35 bool get_current_color(int descriptor, WORD& color);
36
37 WORD set_color(WORD color);
38
39 // sets a color and returns the previous color:
40 void print_in_color(WORD color, const std::string& text);
41
42 }; // util
43}; //hh
44
bool get_current_color(int descriptor, WORD &color)
Definition term_util.cpp:12
void print_in_color(WORD color, const std::string &text)
Definition term_util.cpp:34
WORD set_color(WORD color)
Definition term_util.cpp:21
Definition term_util.h:33
std::mutex g_stdOutMutex
Definition term_util.cpp:10