[feature] Add `sys.firewall_list`

Đang mở
#357 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@jabbate19 đang làm issue này rồi.

Từ ngày 7/11/2023.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

eldritch feature

Is your feature request related to a problem? Please describe.
As a part of recon during a red team assessment or to monitor students during a training enumerating firewall rules.

Describe the solution you'd like

  • Use the nftnl-rs library to list firewall rules on linux systems.
  • Use the winfw-rs library to list firewall rules on Windows systems.
  • Use the pfctl-rs library to list macos firewall rules.

sys.firewall_list() should return a Dict type with the following fields:

{
    "windows":[
       { ... all available fields https://github.com/marirs/winfw-rs/blob/master/src/lib.rs#L27C4-L27C4 ... }  
    ]
    "linux":[
        { ... all available fields probably close to this https://github.com/SnapRoute/netfilter/blob/8c63733c4e67120a72f89e66bccbf78982651d1a/libnftnl/src/rule.c#L32C4-L32C4 ...} 
    ]
    "macos":[
         { ... all available fields probably close to this https://github.com/mullvad/pfctl-rs/blob/9caeef9ac1a4f26c516ecd35759632cda9f9ff79/ffi/pfvar.h#L663 ...}
    ]
}

Describe alternatives you've considered
Na

Additional context
Na

Ngôn ngữ chính
Rust
Star
639
Fork
65
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
62

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của spellshift/realm

Tất cả issue của spellshift/realm

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.