Skip to content

Commit

Permalink
fix: wrong message length
Browse files Browse the repository at this point in the history
  • Loading branch information
rphang committed Jun 4, 2024
1 parent 5bae343 commit 647f618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssl_sniffer/ebpf/main.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static __always_inline int handle_rw_exit(struct pt_regs *ctx, int is_write)
bpf_get_current_comm(&msg->comm, TASK_COMM_LEN);
bpf_core_read(&msg->ts, sizeof(msg->ts), &ts);
msg->op = is_write ? SSL_OP_WRITE : SSL_OP_READ;
msg->len = resp;
msg->len = read_len;

//if (!is_write)
// bpf_probe_write_user((void *)*buf, "HTTP/1.1 200 OK\nContent-Length: 12\n\nHello World\n\00", 50);
Expand Down

0 comments on commit 647f618

Please sign in to comment.