mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-10 19:57:39 +02:00
Add linux.ip.Link test using linux-sample-1.bin image
This commit is contained in:
@@ -343,6 +343,21 @@ def test_linux_ip_addr(image, volatility, python):
|
||||
assert rc == 0
|
||||
|
||||
|
||||
def test_linux_ip_link(image, volatility, python):
|
||||
rc, out, err = runvol_plugin("linux.ip.Link", image, volatility, python)
|
||||
|
||||
assert re.search(
|
||||
rb"-\s+lo\s+00:00:00:00:00:00\s+UNKNOWN\s+16436\s+noqueue\s+0\s+LOOPBACK,LOWER_UP,UP",
|
||||
out,
|
||||
)
|
||||
assert re.search(
|
||||
rb"-\s+eth0\s+00:0c:29:8f:ed:ca\s+UP\s+1500\s+pfifo_fast\s+1000\s+BROADCAST,LOWER_UP,MULTICAST,UP",
|
||||
out,
|
||||
)
|
||||
assert out.count(b"\n") >= 6
|
||||
assert rc == 0
|
||||
|
||||
|
||||
# MAC
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user