Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions test/plugins/linux/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,34 @@ def test_linux_specific_pscallstack(self, volatility, python):
)


class TestLinuxIptables:
def test_linux_generic_iptables(self, image, volatility, python):
rc, out, _err = test_volatility.runvol_plugin(
"linux.iptables.IPTables", image, volatility, python
)

# The test image may have no active iptables rules.
# This validates that plugin requirements are met and exceptions are not raised.
assert rc == 0
assert b"NetNS" in out
assert b"Chain" in out
assert b"Target" in out


class TestLinuxIptablesNft:
def test_linux_generic_iptables_nft(self, image, volatility, python):
rc, out, _err = test_volatility.runvol_plugin(
"linux.iptables_nft.IPTablesNFT", image, volatility, python
)

# The test image may have no active nftables rules.
# This validates that plugin requirements are met and exceptions are not raised.
assert rc == 0
assert b"NetNS" in out
assert b"Chain" in out
assert b"Target" in out


class TestLinuxSockscan:
def test_linux_sockscan(self, volatility, python):
# designed for linux-sample-1.dmp SHA1:1C3A4627EDCA94A7ADE3414592BEF0E62D7D3BB6
Expand Down
Loading
Loading