From 2b76da0df5f8c8ebd103bdd1d41eb4b5189d7e53 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 11 Jan 2023 15:48:12 +0000 Subject: deploy: 0c50a95dc93471cf69f522adfc31ff4c56c53e9d --- 404.html | 2 +- arch/arm64.html | 2 +- arch/armv7.html | 2 +- arch/index.html | 2 +- arch/riscv.html | 2 +- arch/x86_64.html | 6 +- assets/g.svg | 94 -------------- binary/index.html | 2 +- binary/nm.html | 2 +- binary/objdump.html | 2 +- binary/od.html | 2 +- binary/readelf.html | 2 +- binary/xxd.html | 2 +- development/c++.html | 2 +- development/c++filt.html | 2 +- development/gcc.html | 2 +- development/glibc.html | 2 +- development/index.html | 2 +- development/ld.so.html | 2 +- development/make.html | 2 +- development/python.html | 2 +- development/symbolver.html | 2 +- index.html | 2 +- intro.html | 2 +- linux/coredump.html | 2 +- linux/cryptsetup.html | 2 +- linux/index.html | 2 +- linux/input.html | 2 +- linux/ptrace_scope.html | 2 +- linux/swap.html | 2 +- linux/systemd.html | 2 +- monitor/index.html | 2 +- monitor/lsof.html | 2 +- monitor/pgrep.html | 2 +- monitor/pidstat.html | 2 +- monitor/pmap.html | 2 +- monitor/pstack.html | 2 +- monitor/ss.html | 2 +- network/assets/nf_pkt_flow.ora | Bin 0 -> 2306553 bytes network/assets/nf_pkt_flow.png | Bin 0 -> 774896 bytes network/firewall-cmd.html | 10 +- network/index.html | 3 +- network/nftables.html | 289 +++++++++++++++++++++++++++++++++++++++++ network/tcpdump.html | 2 +- print.html | 105 ++++++++++++++- searchindex.js | 2 +- searchindex.json | 2 +- tools/assets/g.svg | 94 ++++++++++++++ tools/awk.html | 2 +- tools/bash.html | 2 +- tools/dot.html | 4 +- tools/emacs.html | 2 +- tools/fish.html | 2 +- tools/gdb.html | 2 +- tools/gdbserver.html | 2 +- tools/git.html | 2 +- tools/gpg.html | 2 +- tools/index.html | 2 +- tools/pacman.html | 2 +- tools/qemu.html | 2 +- tools/radare2.html | 2 +- tools/tmux.html | 2 +- tools/zsh.html | 2 +- trace_profile/index.html | 2 +- trace_profile/ltrace.html | 2 +- trace_profile/oprofile.html | 2 +- trace_profile/perf.html | 2 +- trace_profile/strace.html | 2 +- trace_profile/time.html | 2 +- web/chartjs.html | 2 +- web/html.html | 2 +- web/index.html | 6 +- 72 files changed, 566 insertions(+), 167 deletions(-) delete mode 100644 assets/g.svg create mode 100644 network/assets/nf_pkt_flow.ora create mode 100644 network/assets/nf_pkt_flow.png create mode 100644 network/nftables.html create mode 100644 tools/assets/g.svg diff --git a/404.html b/404.html index eb50f89..66a2b1d 100644 --- a/404.html +++ b/404.html @@ -81,7 +81,7 @@ diff --git a/arch/arm64.html b/arch/arm64.html index 809ca21..5087fcd 100644 --- a/arch/arm64.html +++ b/arch/arm64.html @@ -80,7 +80,7 @@ diff --git a/arch/armv7.html b/arch/armv7.html index bfd6a84..ab536ae 100644 --- a/arch/armv7.html +++ b/arch/armv7.html @@ -80,7 +80,7 @@ diff --git a/arch/index.html b/arch/index.html index 49df812..bbc62ca 100644 --- a/arch/index.html +++ b/arch/index.html @@ -80,7 +80,7 @@ diff --git a/arch/riscv.html b/arch/riscv.html index 9f549d7..c856b38 100644 --- a/arch/riscv.html +++ b/arch/riscv.html @@ -80,7 +80,7 @@ diff --git a/arch/x86_64.html b/arch/x86_64.html index 4f3c6ce..94de965 100644 --- a/arch/x86_64.html +++ b/arch/x86_64.html @@ -80,7 +80,7 @@ @@ -220,6 +220,10 @@ mov rax, qword ptr [rbx+4*rcx] // load val at [rbx+4*rcx] into rax .my_str: .asciz "Foo" +

Load effective address:

+
mov rax, 2
+lea r11, [rax + 3]   // r11 <- 5
+

String instructions

The operand size of a string instruction is defined by the instruction suffix b | w | d | q.

diff --git a/assets/g.svg b/assets/g.svg deleted file mode 100644 index f66c7b7..0000000 --- a/assets/g.svg +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - -cluster_1 - - - - -stage1 - -stage1 - - - -stage2 - -stage2 - - - -stage1->stage2 - - - - - -stage3_1 - -stage3_1 - - - -stage2->stage3_1 - - - - - -stage3_2 - -stage3_2 - - - -stage2->stage3_2 - - - - - -stage5_1 - -stage5_1 - - - -stage3_1->stage5_1 - - - - - -stage5_2 - -stage5_2 - - - -stage3_1->stage5_2 - - - - - -stage4 - -s4 - - - -stage3_2->stage4 - - -some text - - - diff --git a/binary/index.html b/binary/index.html index 22961a5..fdb346d 100644 --- a/binary/index.html +++ b/binary/index.html @@ -80,7 +80,7 @@ diff --git a/binary/nm.html b/binary/nm.html index e3992d1..5e34def 100644 --- a/binary/nm.html +++ b/binary/nm.html @@ -80,7 +80,7 @@ diff --git a/binary/objdump.html b/binary/objdump.html index 6bbf178..e61f55a 100644 --- a/binary/objdump.html +++ b/binary/objdump.html @@ -80,7 +80,7 @@ diff --git a/binary/od.html b/binary/od.html index 18c4462..763b7d7 100644 --- a/binary/od.html +++ b/binary/od.html @@ -80,7 +80,7 @@ diff --git a/binary/readelf.html b/binary/readelf.html index 5e03cb2..dad429c 100644 --- a/binary/readelf.html +++ b/binary/readelf.html @@ -80,7 +80,7 @@ diff --git a/binary/xxd.html b/binary/xxd.html index 3d01e4a..0b187c3 100644 --- a/binary/xxd.html +++ b/binary/xxd.html @@ -80,7 +80,7 @@ diff --git a/development/c++.html b/development/c++.html index 90adb58..c8ed843 100644 --- a/development/c++.html +++ b/development/c++.html @@ -80,7 +80,7 @@ diff --git a/development/c++filt.html b/development/c++filt.html index 39388b3..cf26ce8 100644 --- a/development/c++filt.html +++ b/development/c++filt.html @@ -80,7 +80,7 @@ diff --git a/development/gcc.html b/development/gcc.html index d51bb06..9ddb112 100644 --- a/development/gcc.html +++ b/development/gcc.html @@ -80,7 +80,7 @@ diff --git a/development/glibc.html b/development/glibc.html index 4c5fd85..b16240c 100644 --- a/development/glibc.html +++ b/development/glibc.html @@ -80,7 +80,7 @@ diff --git a/development/index.html b/development/index.html index aaae5cc..5529df6 100644 --- a/development/index.html +++ b/development/index.html @@ -80,7 +80,7 @@ diff --git a/development/ld.so.html b/development/ld.so.html index 08a7fa7..e720486 100644 --- a/development/ld.so.html +++ b/development/ld.so.html @@ -80,7 +80,7 @@ diff --git a/development/make.html b/development/make.html index f802dc4..36b115e 100644 --- a/development/make.html +++ b/development/make.html @@ -80,7 +80,7 @@ diff --git a/development/python.html b/development/python.html index b339601..7f4bf73 100644 --- a/development/python.html +++ b/development/python.html @@ -80,7 +80,7 @@ diff --git a/development/symbolver.html b/development/symbolver.html index b9582b8..bd506cb 100644 --- a/development/symbolver.html +++ b/development/symbolver.html @@ -80,7 +80,7 @@ diff --git a/index.html b/index.html index 32821d3..162561d 100644 --- a/index.html +++ b/index.html @@ -80,7 +80,7 @@ diff --git a/intro.html b/intro.html index 32821d3..162561d 100644 --- a/intro.html +++ b/intro.html @@ -80,7 +80,7 @@ diff --git a/linux/coredump.html b/linux/coredump.html index e3bad2a..22d69b5 100644 --- a/linux/coredump.html +++ b/linux/coredump.html @@ -80,7 +80,7 @@ diff --git a/linux/cryptsetup.html b/linux/cryptsetup.html index b921db6..1987137 100644 --- a/linux/cryptsetup.html +++ b/linux/cryptsetup.html @@ -80,7 +80,7 @@ diff --git a/linux/index.html b/linux/index.html index 2f02b6b..b76557a 100644 --- a/linux/index.html +++ b/linux/index.html @@ -80,7 +80,7 @@ diff --git a/linux/input.html b/linux/input.html index 29aaf77..2aaeed6 100644 --- a/linux/input.html +++ b/linux/input.html @@ -80,7 +80,7 @@ diff --git a/linux/ptrace_scope.html b/linux/ptrace_scope.html index 331b833..4f10a2c 100644 --- a/linux/ptrace_scope.html +++ b/linux/ptrace_scope.html @@ -80,7 +80,7 @@ diff --git a/linux/swap.html b/linux/swap.html index 43b2823..dba387d 100644 --- a/linux/swap.html +++ b/linux/swap.html @@ -80,7 +80,7 @@ diff --git a/linux/systemd.html b/linux/systemd.html index e044528..a2ea51d 100644 --- a/linux/systemd.html +++ b/linux/systemd.html @@ -80,7 +80,7 @@ diff --git a/monitor/index.html b/monitor/index.html index b8ae71c..a031459 100644 --- a/monitor/index.html +++ b/monitor/index.html @@ -80,7 +80,7 @@ diff --git a/monitor/lsof.html b/monitor/lsof.html index 3b35ec7..469d587 100644 --- a/monitor/lsof.html +++ b/monitor/lsof.html @@ -80,7 +80,7 @@ diff --git a/monitor/pgrep.html b/monitor/pgrep.html index e838f17..a531993 100644 --- a/monitor/pgrep.html +++ b/monitor/pgrep.html @@ -80,7 +80,7 @@ diff --git a/monitor/pidstat.html b/monitor/pidstat.html index 483e22c..6f50d36 100644 --- a/monitor/pidstat.html +++ b/monitor/pidstat.html @@ -80,7 +80,7 @@ diff --git a/monitor/pmap.html b/monitor/pmap.html index b619a16..ed4eb4a 100644 --- a/monitor/pmap.html +++ b/monitor/pmap.html @@ -80,7 +80,7 @@ diff --git a/monitor/pstack.html b/monitor/pstack.html index 0a81efd..1a067e7 100644 --- a/monitor/pstack.html +++ b/monitor/pstack.html @@ -80,7 +80,7 @@ diff --git a/monitor/ss.html b/monitor/ss.html index a8d155b..484e932 100644 --- a/monitor/ss.html +++ b/monitor/ss.html @@ -80,7 +80,7 @@ diff --git a/network/assets/nf_pkt_flow.ora b/network/assets/nf_pkt_flow.ora new file mode 100644 index 0000000..c544898 Binary files /dev/null and b/network/assets/nf_pkt_flow.ora differ diff --git a/network/assets/nf_pkt_flow.png b/network/assets/nf_pkt_flow.png new file mode 100644 index 0000000..74b37e7 Binary files /dev/null and b/network/assets/nf_pkt_flow.png differ diff --git a/network/firewall-cmd.html b/network/firewall-cmd.html index 3db7bdf..45294f9 100644 --- a/network/firewall-cmd.html +++ b/network/firewall-cmd.html @@ -80,7 +80,7 @@ @@ -164,12 +164,16 @@ see all available zones.

firewall-cmd --add-service <SERVICE> # Add a specific port. firewall-cmd --add-port 8000/tcp +# Add a rich rule (eg port forwarding, dnat). +firewall-cmd --add-rich-rule 'rule family="ipv4" forward-port port="80" protocol="tcp" to-port="8080"'

Remove entries

# Remove service.
 firewall-cmd --remove-service <SERVICE>
 # Remove port.
 firewall-cmd --remove-port 8000/tcp
+# Remove rich rule.
+firewall-cmd --remove-rich-rule 'rule family="ipv4" forward-port port="80" protocol="tcp" to-port="8080"'
 

References