Skip to content

Instantly share code, notes, and snippets.

@liyihuang
Created March 26, 2024 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liyihuang/72d97c79cbc7d1e726de538985261a20 to your computer and use it in GitHub Desktop.
Save liyihuang/72d97c79cbc7d1e726de538985261a20 to your computer and use it in GitHub Desktop.
pwru with a HTTP connection
(⎈|N/A:default)~ more /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
python3 -m http.server 8080 &
curl 192.168.2.201:8080
sudo pwru --output-meta --all-kmods --output-stack 'dst port 8080 and host 192.168.2.201'
SKB CPU PROCESS FUNC
0xffff98be4422c000 3 [<empty>(0)] inet_gro_receive netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp4_gro_receive netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp_gro_receive netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] skb_defer_rx_timestamp netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] ip_rcv_core netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_hook_slow netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] ip_sabotage_in [br_netfilter] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] ipv4_conntrack_defrag [nf_defrag_ipv4] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] ipv4_conntrack_in [nf_conntrack] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_conntrack_in [nf_conntrack] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] resolve_normal_ct [nf_conntrack] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_conntrack_handle_packet [nf_conntrack] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_conntrack_tcp_packet [nf_conntrack] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_checksum netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_ip_checksum netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_nat_ipv4_pre_routing [nf_nat] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_nat_inet_fn [nf_nat] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nft_nat_do_chain [nft_chain_nat] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp_v4_early_demux netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] ip_route_input_noref netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] ip_route_input_rcu netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] ip_route_input_slow netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] fib_validate_source netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] __fib_validate_source netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] ip_local_deliver netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_hook_slow netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nft_do_chain_ipv4 [nf_tables] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_nat_ipv4_local_in [nf_nat] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_nat_inet_fn [nf_nat] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] ipv4_confirm [nf_conntrack] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] nf_confirm [nf_conntrack] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] __nf_conntrack_confirm [nf_conntrack] netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] ip_local_deliver_finish netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=64 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] ip_protocol_deliver_rcu netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] raw_local_deliver netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp_v4_rcv netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] __inet_lookup_listener netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] inet_lhash2_lookup netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] inet_lhash2_lookup netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp_filter netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] sk_filter_trim_cap netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] __cgroup_bpf_run_filter_skb netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] security_sock_rcv_skb netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] apparmor_socket_sock_rcv_skb netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp_v4_fill_cb netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp_v4_do_rcv netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp_rcv_state_process netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp_v4_conn_request netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp_conn_request netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp_v4_route_req netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] security_inet_conn_request netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] apparmor_inet_conn_request netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] tcp_try_fastopen netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] consume_skb netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] skb_release_head_state netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] skb_release_data netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] skb_free_head netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c000 3 [<empty>(0)] kfree_skbmem netns=0 mark=0x0 iface=0 proto=0x0800 mtu=0 len=44 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c300 3 [sh(90779)] inet_gro_receive netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=52 192.168.2.28:50672->192.168.2.201:8080(tcp)
0xffff98be4422c300 3 [sh(90779)] tcp4_gro_receive netns=4026531840 mark=0x0 iface=2(ens18) proto=0x0800 mtu=1500 len=52 192.168.2.28:50672->192.168.2.201:8080(tcp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment