KUJUNTI.ID MINISH3LL
Path : /proc/thread-self/root/usr/share/doc/bpfcc-tools/examples/lua/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : //proc/thread-self/root/usr/share/doc/bpfcc-tools/examples/lua/bashreadline.c


#include <uapi/linux/ptrace.h>

struct str_t {
	u64 pid;
	char str[80];
};

BPF_PERF_OUTPUT(events);

int printret(struct pt_regs *ctx)
{
	struct str_t data  = {};
	u32 pid;
        if (!PT_REGS_RC(ctx))
          return 0;
        pid = bpf_get_current_pid_tgid();
        data.pid = pid;
        bpf_probe_read_user(&data.str, sizeof(data.str),
                            (void *)PT_REGS_RC(ctx));
        events.perf_submit(ctx, &data, sizeof(data));
        return 0;
};

© KUJUNTI.ID