I need to get iptables rules from a Linux Debian server. i know about iptables -L -n -v
command for instance but as the server may be compromised i can't rely on local commands which may be corrupted. Instead, I need in my binary to load utilities statically compiled in order to get a fingerprint of the server without using local commands.
Most thinks can be retrieved from /proc
pseudo filesystem. However, nothing seems to be accessible regarding iptables
configuration.
Is it possible to get iptables
rules without using iptables
related commands ?
/proc
filesystem, because it isn't implemented.