summaryrefslogtreecommitdiff
path: root/md/writeup/linux_antidebug_1.md
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2021-05-27 09:01:12 +0100
committerFreeArtMan <dos21h@gmail.com>2021-05-27 09:01:12 +0100
commit9b9586b559edb387af804c52d2b593b711ce98be (patch)
treeafff99aea85e450c7824192f38be74bfd9e8f567 /md/writeup/linux_antidebug_1.md
parente8de8442cecce54fc4f372dc2dacecc7abca23ae (diff)
downloadmd-content-9b9586b559edb387af804c52d2b593b711ce98be.tar.gz
md-content-9b9586b559edb387af804c52d2b593b711ce98be.zip
Updated 6 more articles from html to md
Diffstat (limited to 'md/writeup/linux_antidebug_1.md')
-rw-r--r--md/writeup/linux_antidebug_1.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/md/writeup/linux_antidebug_1.md b/md/writeup/linux_antidebug_1.md
new file mode 100644
index 0000000..2f17195
--- /dev/null
+++ b/md/writeup/linux_antidebug_1.md
@@ -0,0 +1,35 @@
+title:Linux antidebug 1
+keywords:linux,debug,antidebug
+
+# Linux antidebug 1
+
+
+
+Content: When ptrace is used for programm debugin then only
+one ptrace can be attached to programmwhen we trying run ptrace
+with PTRACE_TRACEME then we get -1. I tested with gdb,ald.
+Also this method should work with IDApro
+
+```c
+#include <stdlib.h>
+#include <stdio.h>
+#include <sys/ptrace.h>
+
+long int ptraced()
+{
+ return (ptrace(PTRACE_TRACEME, 0, 0, 0) == -1);
+}
+
+int main()
+{
+ if ( ptraced() )
+ {
+ printf("Ptraced!\n");
+ }
+ return 0;
+}
+```
+
+## Downloads
+http://archive.main.lv/files/writeup/linux_antidebug_1/antidebug1.tar.gz
+