Linux Rootkits — Multiple ways to hook syscall(s)

1 Syscall Table hijacking — The good old way, 系统调用表劫持 2 sys_close — The brute force method 3 VFS hooking 4 The ftrace helper method 本文为摘录,原文为: https://foxtrot-sq.medium.com/linux-rootkits-multiple-ways-to-hook-syscall-s-7001cc02a1e6 我们所见到的大多数恶意软件攻击中使用的 rootkit 都是开源的,其行...

September 21, 2023 · Yang Yingchao

How to Terminate Stuck or Unwanted User Sessions in Linux

1 Linux 中的 TTY 和 PTS 是什么? 2 如何在 Linux 中终止被卡住/不需要的用户会话 2.1 Terminate User Session by TTY 2.2 按进程 ID 终止用户会话 2.3 Conclusion 本文为摘录,原文为: https://linuxiac.com/how-to-terminate-user-session-in-linux/ 1 Linux 中的 TTY 和 PTS 是什...

September 8, 2023 · Yang, Ying-chao

Ways to Deal With a Frozen Linux System

1 When everything else fails, talk with the Kernel using SysReq 本文为摘录,原文为: https://linuxhandbook.com/frozen-linux-system/ 1 When everything else fails, talk with the Kernel using SysReq 有时,甚至切换到 TTY 也无法正常工作。整个系统都死了。但是不要放弃,很可能是一...

August 28, 2023

UNIX vs Linux: What's the Difference?

1 Historical Context 2 Licensing and Distribution 3 Kernel and System Architecture 4 Community and Development 5 Customization and Flexibility 6 User Interface 7 Market Share and Industry Application 8 Security and Stability 9 Conclusion 本文为摘录,原文为: https://www.linuxjournal.com/content/unix-vs-linux-what-is-the-difference 在复杂多变的操作系统领域里,UNIX 和 Linux 这两个显...

August 23, 2023

Coping with the TCP TIME-WAIT state on busy Linux servers

1 TL;DR 2 About the TIME-WAIT state 2.1 TCP state diagram 2.2 Purpose 3 Problems 4 Other solutions 4.1 net.ipv4.tcp_tw_reuse 5 Another 6 总结 本文为摘录,原文为: https://vincent.bernat.ch/en/blog/2014-tcp-time-wait-state-linux#summary 1 TL;DR 不用启用 net.ipv4.tcp_tw_recycle , 该选项已在 Linux4.12 废弃 多数情况下, TIME-WAIT 状态的 socket 无害 2 About the TIME-WAIT state...

Linux Process States

1 The Linux Process States 1.1 Running or Runnable State (R) 1.2 Sleeping State: Interruptible (S) and Uninterruptible (D) 1.3 Stopped State (T) 1.4 Zombie State (Z) 2 Checking Process State 2.1 Displaying Process State Using ps 2.2 Using the top Command 2.3 The /proc Pseudo File 3 Summary 本文为摘录,原文为: https://www.baeldung.com/linux/process-states 1 The Linux Process States Running or Runnable (R) Uninterruptible...