FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ShellcodeCompiler/ShellcodeCompiler/Utils.h at master · dnangle/ShellcodeCompiler · GitHub
dnangle
ShellcodeCompiler
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ShellcodeCompiler
/
ShellcodeCompiler
/
Utils.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (26 loc) · 904 Bytes
Breadcrumbs
ShellcodeCompiler
/
ShellcodeCompiler
/
Utils.h
Copy path
File metadata and controls
35 lines (26 loc) · 904 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
ifndef
UTILS_H
#
define
UTILS_H
#
define
_CRT_SECURE_NO_WARNINGS
#
include
<
cstdio
>
#
include
<
string
>
#
include
<
iostream
>
#
include
<
sstream
>
using
namespace
std
;
//
A class containing functions for access to files and conversions
class
Utils
{
public:
//
All utilities
static
bool
FileExists
(string p_sPath);
static
bool
DeleteSourceFile
(string p_sFile);
static
string
ReadSourceFile
(string p_sFilename);
static
size_t
GetSize
(string p_sFilename);
static
unsigned
char
*
ReadBinaryFile
(string p_sFilename,
size_t
*p_rSize);
static
size_t
WriteBinaryFile
(string p_sOutputFile,
unsigned
char
*p_pcData,
size_t
p_nSize);
static
void
WriteToFile
(string p_sOutputFile, string p_sData);
static
string
CharToHexString
(
char
p_cChar);
static
string
IntToHexString
(
size_t
p_iNumber);
static
bool
IsString
(
char
p_cCharacter);
static
string
ToLower
(string p_sString);
};
#
endif
//
!UTILS_H
Back
|
FazBrowse Home
|
New Git URL