Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/taviso/loadlibrary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCube <alessandro.devito91@gmail.com>2021-01-13 22:33:58 +0300
committerCube <alessandro.devito91@gmail.com>2021-01-13 22:33:58 +0300
commite53fc8b68a436e5247b3b30b34bb123543251334 (patch)
tree3cf4c6aad81eef376f6d0beeb40832c8f7d92fb2
parent827eaae276a609431c8725cef49c2bbb58e3b55b (diff)
Added IsDebuggerPresent Win API
-rw-r--r--peloader/winapi/Debugger.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/peloader/winapi/Debugger.c b/peloader/winapi/Debugger.c
new file mode 100644
index 0000000..0ea89a5
--- /dev/null
+++ b/peloader/winapi/Debugger.c
@@ -0,0 +1,27 @@
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <stddef.h>
+#include <string.h>
+#include <stdbool.h>
+#include <search.h>
+#include <assert.h>
+#include <unistd.h>
+#include <fcntl.h>
+
+#include "winnt_types.h"
+#include "pe_linker.h"
+#include "ntoskernel.h"
+#include "log.h"
+#include "winexports.h"
+#include "util.h"
+#include "winstrings.h"
+
+static BOOL WINAPI IsDebuggerPresent()
+{
+ DebugLog("");
+ return false;
+}
+
+DECLARE_CRT_EXPORT("IsDebuggerPresent", IsDebuggerPresent); \ No newline at end of file