Skip to content

Commit

Permalink
xx
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jul 27, 2024
1 parent bad407e commit 6db6784
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 71 deletions.
3 changes: 3 additions & 0 deletions push.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
git add .
git commit -m "xx"
git push
63 changes: 2 additions & 61 deletions sysBug/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,7 @@

#ifndef HYPERDBG_KERNEL_MODE

const unsigned char BuildDateTime[] = {
BUILD_YEAR_CH0,
BUILD_YEAR_CH1,
BUILD_YEAR_CH2,
BUILD_YEAR_CH3,
'-',
BUILD_MONTH_CH0,
BUILD_MONTH_CH1,
'-',
BUILD_DAY_CH0,
BUILD_DAY_CH1,
' ',
BUILD_HOUR_CH0,
BUILD_HOUR_CH1,
':',
BUILD_MIN_CH0,
BUILD_MIN_CH1,
':',
BUILD_SEC_CH0,
BUILD_SEC_CH1,

'\0'};


// Macro to convert a number to a string
# define STRINGIFY(x) #x
Expand All @@ -110,45 +89,7 @@ const unsigned char BuildDateTime[] = {

const unsigned char CompleteVersion[] = HYPERDBG_COMPLETE_VERSION;

const unsigned char BuildVersion[] = {
BUILD_YEAR_CH0,
BUILD_YEAR_CH1,
BUILD_YEAR_CH2,
BUILD_YEAR_CH3,
BUILD_MONTH_CH0,
BUILD_MONTH_CH1,
BUILD_DAY_CH0,
BUILD_DAY_CH1,
'.',
BUILD_HOUR_CH0,
BUILD_HOUR_CH1,
BUILD_MIN_CH0,
BUILD_MIN_CH1,

'\0'};

const unsigned char BuildSignature[] = {
TOSTRING(VERSION_MAJOR)[0],
'.',
TOSTRING(VERSION_MINOR)[0],
'.',
TOSTRING(VERSION_PATCH)[0],
'-',
BUILD_YEAR_CH0,
BUILD_YEAR_CH1,
BUILD_YEAR_CH2,
BUILD_YEAR_CH3,
BUILD_MONTH_CH0,
BUILD_MONTH_CH1,
BUILD_DAY_CH0,
BUILD_DAY_CH1,
'.',
BUILD_HOUR_CH0,
BUILD_HOUR_CH1,
BUILD_MIN_CH0,
BUILD_MIN_CH1,

'\0'};


#endif // SCRIPT_ENGINE_KERNEL_MODE

Expand Down
32 changes: 23 additions & 9 deletions sysBug/HyperDbgHyperLogIntrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ typedef enum _LOG_TYPE
*/
# define LogInfo(format, ...) \
LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_INFO_MESSAGE, \
UseImmediateMessaging, \
ShowSystemTimeOnDebugMessages, \
TRUE, \
TRUE, \
FALSE, \
"[+] Information (%s:%d) | " format "\n", \
__func__, \
Expand All @@ -86,7 +86,7 @@ typedef enum _LOG_TYPE
# define LogInfoPriority(format, ...) \
LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_INFO_MESSAGE, \
TRUE, \
ShowSystemTimeOnDebugMessages, \
TRUE, \
TRUE, \
"[+] Information (%s:%d) | " format "\n", \
__func__, \
Expand All @@ -99,8 +99,8 @@ typedef enum _LOG_TYPE
*/
# define LogWarning(format, ...) \
LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_WARNING_MESSAGE, \
UseImmediateMessaging, \
ShowSystemTimeOnDebugMessages, \
TRUE, \
TRUE, \
TRUE, \
"[-] Warning (%s:%d) | " format "\n", \
__func__, \
Expand All @@ -113,8 +113,8 @@ typedef enum _LOG_TYPE
*/
# define LogError(format, ...) \
LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_ERROR_MESSAGE, \
UseImmediateMessaging, \
ShowSystemTimeOnDebugMessages, \
TRUE, \
TRUE, \
TRUE, \
"[!] Error (%s:%d) | " format "\n", \
__func__, \
Expand Down Expand Up @@ -156,10 +156,24 @@ typedef enum _LOG_TYPE
#define LogDebugInfo(format, ...) \
if (DebugMode) \
LogCallbackPrepareAndSendMessageToQueue(OPERATION_LOG_INFO_MESSAGE, \
UseImmediateMessaging, \
ShowSystemTimeOnDebugMessages, \
TRUE, \
TRUE, \
FALSE, \
"[+] Information (%s:%d) | " format "\n", \
__func__, \
__LINE__, \
__VA_ARGS__)


BOOLEAN
LogCallbackPrepareAndSendMessageToQueue(UINT32 OperationCode,
BOOLEAN IsImmediateMessage,
BOOLEAN ShowCurrentSystemTime,
BOOLEAN Priority,
const char * Fmt,
...)
{
va_list ArgList;
BOOLEAN Result=FALSE;
return Result;
}
2 changes: 1 addition & 1 deletion sysBug/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ VOID DriverUnload(PDRIVER_OBJECT DriverObject) {
}

NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) {
// LogInfo("DriverEntry");
LogInfo("DriverEntry");
DriverObject->DriverUnload = DriverUnload;
DbgPrint("111 DriverEntry\n");
return STATUS_SUCCESS;
Expand Down

0 comments on commit 6db6784

Please sign in to comment.