__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
#!/usr/bin/python
#
# stacksnoop    Trace a kernel function and print all kernel stack traces.
#               For Linux, uses BCC, eBPF, and currently x86_64 only. Inline C.
#
# USAGE: stacksnoop [-h] [-p PID] [-s] [-v] function
#
# Copyright 2016 Netflix, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
#
# 12-Jan-2016   Brendan Gregg   Created this.

from __future__ import print_function
from bcc import BPF
import argparse
import time

# arguments
examples = """examples:
    ./stacksnoop ext4_sync_fs           # print kernel stack traces for ext4_sync_fs
    ./stacksnoop -s ext4_sync_fs        # ... also show symbol offsets
    ./stacksnoop -v ext4_sync_fs        # ... show extra columns
    ./stacksnoop -p 185 ext4_sync_fs    # ... only when PID 185 is on-CPU
"""
parser = argparse.ArgumentParser(
    description="Trace and print kernel stack traces for a kernel function",
    formatter_class=argparse.RawDescriptionHelpFormatter,
    epilog=examples)
parser.add_argument("-p", "--pid",
    help="trace this PID only")
parser.add_argument("-s", "--offset", action="store_true",
    help="show address offsets")
parser.add_argument("-v", "--verbose", action="store_true",
    help="print more fields")
parser.add_argument("function",
    help="kernel function name")
args = parser.parse_args()
function = args.function
offset = args.offset
verbose = args.verbose
debug = 0

# define BPF program
bpf_text = """
#include <uapi/linux/ptrace.h>
#include <linux/sched.h>

struct data_t {
    u64 stack_id;
    u32 pid;
    char comm[TASK_COMM_LEN];
};

BPF_STACK_TRACE(stack_traces, 128);
BPF_PERF_OUTPUT(events);

void trace_stack(struct pt_regs *ctx) {
    u32 pid = bpf_get_current_pid_tgid() >> 32;
    FILTER
    struct data_t data = {};
    data.stack_id = stack_traces.get_stackid(ctx, 0),
    data.pid = pid;
    bpf_get_current_comm(&data.comm, sizeof(data.comm));
    events.perf_submit(ctx, &data, sizeof(data));
}
"""
if args.pid:
    bpf_text = bpf_text.replace('FILTER',
        'if (pid != %s) { return; }' % args.pid)
else:
    bpf_text = bpf_text.replace('FILTER', '')
if debug:
    print(bpf_text)

# initialize BPF
b = BPF(text=bpf_text)
b.attach_kprobe(event=function, fn_name="trace_stack")

TASK_COMM_LEN = 16  # linux/sched.h

matched = b.num_open_kprobes()
if matched == 0:
    print("Function \"%s\" not found. Exiting." % function)
    exit()

stack_traces = b.get_table("stack_traces")
start_ts = time.time()

# header
if verbose:
    print("%-18s %-12s %-6s %-3s %s" %
            ("TIME(s)", "COMM", "PID", "CPU", "FUNCTION"))
else:
    print("%-18s %s" % ("TIME(s)", "FUNCTION"))

def print_event(cpu, data, size):
    event = b["events"].event(data)

    ts = time.time() - start_ts

    if verbose:
        print("%-18.9f %-12.12s %-6d %-3d %s" %
              (ts, event.comm.decode('utf-8', 'replace'), event.pid, cpu, function))
    else:
        print("%-18.9f %s" % (ts, function))

    for addr in stack_traces.walk(event.stack_id):
        sym = b.ksym(addr, show_offset=offset).decode('utf-8', 'replace')
        print("\t%s" % sym)

    print()

b["events"].open_perf_buffer(print_event)
while 1:
    try:
        b.perf_buffer_poll()
    except KeyboardInterrupt:
        exit()

Filemanager

Name Type Size Permission Actions
CMakeLists.txt File 276 B 0644
biolatpcts.py File 3.23 KB 0755
biolatpcts_example.txt File 650 B 0644
bitehist.py File 1.36 KB 0755
bitehist_example.txt File 1.18 KB 0644
dddos.py File 3.73 KB 0755
dddos_example.txt File 2.06 KB 0644
disksnoop.py File 1.9 KB 0755
disksnoop_example.txt File 1.55 KB 0644
hello_fields.py File 679 B 0755
hello_perf_output.py File 1.24 KB 0755
hello_perf_output_using_ns.py File 1.8 KB 0755
kvm_hypercall.py File 1.48 KB 0755
kvm_hypercall.txt File 1.74 KB 0644
mallocstacks.py File 1.9 KB 0755
mysqld_query.py File 1.66 KB 0755
mysqld_query_example.txt File 499 B 0644
nflatency.py File 6.07 KB 0755
nodejs_http_server.py File 1.34 KB 0755
nodejs_http_server_example.txt File 276 B 0644
stack_buildid_example.py File 3.03 KB 0755
stacksnoop.py File 3.18 KB 0755
stacksnoop_example.txt File 2.8 KB 0644
strlen_count.py File 1.3 KB 0755
strlen_hist.py File 1.81 KB 0755
strlen_hist_ifunc.py File 3.71 KB 0755
strlen_snoop.py File 1.35 KB 0755
sync_timing.py File 1.36 KB 0755
task_switch.c File 499 B 0644
task_switch.py File 486 B 0755
tcpv4connect.py File 2.36 KB 0755
tcpv4connect_example.txt File 1.04 KB 0644
trace_fields.py File 589 B 0755
trace_perf_output.py File 1.56 KB 0755
undump.py File 3.52 KB 0755
undump_example.txt File 886 B 0644
urandomread-explicit.py File 1.48 KB 0755
urandomread.py File 1.01 KB 0755
urandomread_example.txt File 675 B 0644
vfsreadlat.c File 896 B 0644
vfsreadlat.py File 1.3 KB 0755
vfsreadlat_example.txt File 3.53 KB 0644
Filemanager