Skip to content
Nhan Le

Nhan Le

Technology Information

  • Home
  • Security
  • Blogs
  • Home
  • Security

Category: Security

INOTIFY

Posted on November 25, 2022November 25, 2022 By admin 13 Comments on INOTIFY
Security

– Bước 1: Cài đặt chương trình “inotify-tools” vào máy Ubuntu hoặc Kali Linux. Sau khi cài đặt xong ta sẽ thấy xuất hiện hai chương trình con là inotifywait và inotifywatch

┌──(root㉿kali)-[~]

└─# apt install inotify-tools

– Bước 2:Thiết lập cho chương trình tăng mức xử lý file

┌──(root㉿kali)-[/proc/sys/fs/inotify]

└─# vim /etc/sysctl.conf

fs.inotify.max_queued_events = 16384

fs.inotify.max_user_instances = 1024

fs.inotify.max_user_watches = 1048576

┌──(root㉿kali)-[/proc/sys/fs/inotify]

└─# sysctl -p

fs.inotify.max_queued_events = 16384

fs.inotify.max_user_instances = 1024

fs.inotify.max_user_watches = 1048576

┌──(root㉿kali)-[/proc/sys/fs/inotify]

└─# cat max_queued_events max_user_instances max_user_watches

16384

1024

1048576

– Bước 3: Thiết lập cho chương trình đọc file. Ví dụ bên dưới là chương trình đang đọc file ở trong thư mục /tmp của máy linux

┌──(root㉿kali)-[/proc/sys/fs/inotify]

└─# inotifywait -mrq -e modify,create,delete /tmp 

-m: modify

-q: quite

-r: recursive

Recent Posts

  • Kiểm tra băng thông kết nối
  • INOTIFY
  • Docker Wireguard VPN

Recent Comments

  1. walmart lékárna cena za kamagra on Kiểm tra băng thông kết nối
  2. get xifaxan price on prescription on Kiểm tra băng thông kết nối
  3. get rifaximin cheap mastercard on Kiểm tra băng thông kết nối
  4. ordering avodart cost tablet on Kiểm tra băng thông kết nối
  5. buying itraconazole generic prices on Kiểm tra băng thông kết nối

Archives

  • November 2023
  • November 2022

Categories

  • Docker
  • Security
  • Uncategorized
  • VPN

  • Home
  • Security
  • Blogs

Copyright © 2025 Nhan Le.

Theme: Oceanly by ScriptsTown