Skip to content

Commit

Permalink
add bypass anti-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lasting-yang committed Dec 7, 2018
1 parent 91a2acf commit 99ad140
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions fs/proc/array.c
Expand Up @@ -136,8 +136,8 @@ static const char * const task_state_array[] = {
"R (running)", /* 0 */
"S (sleeping)", /* 1 */
"D (disk sleep)", /* 2 */
"T (stopped)", /* 4 */
"t (tracing stop)", /* 8 */
"S (sleeping)", /* 4 */
"S (sleeping)", /* 8 */
"X (dead)", /* 16 */
"Z (zombie)", /* 32 */
};
Expand Down Expand Up @@ -176,14 +176,14 @@ static inline void task_state(struct seq_file *m, struct pid_namespace *ns,
"Tgid:\t%d\n"
"Pid:\t%d\n"
"PPid:\t%d\n"
"TracerPid:\t%d\n"
"TracerPid:\t0\n"
"Uid:\t%d\t%d\t%d\t%d\n"
"Gid:\t%d\t%d\t%d\t%d\n"
"Ngid:\t%d\n",
get_task_state(p),
leader ? task_pid_nr_ns(leader, ns) : 0,
pid_nr_ns(pid, ns),
ppid, tpid,
ppid, /*tpid,*/
from_kuid_munged(user_ns, cred->uid),
from_kuid_munged(user_ns, cred->euid),
from_kuid_munged(user_ns, cred->suid),
Expand Down
6 changes: 5 additions & 1 deletion fs/proc/base.c
Expand Up @@ -244,8 +244,12 @@ static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns,
return 0;
else
return seq_printf(m, "%lu", wchan);
else
else {
if (strstr(symname, "trace")) {
return seq_printf(m, "%s", "sys_epoll_wait");
}
return seq_printf(m, "%s", symname);
}
}
#endif /* CONFIG_KALLSYMS */

Expand Down

0 comments on commit 99ad140

Please sign in to comment.