File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/exploits/linux/local Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,15 @@ def iptables_loaded?()
67
67
# x_tables 36864 2 iptable_filter,ip_tables, Live 0x0000000000000000
68
68
vprint_status ( 'Checking if ip_tables is loaded in kernel' )
69
69
if target . name == "Ubuntu"
70
- iptables = cmd_exec ( 'cat /proc/modules')
70
+ iptables = read_file ( ' /proc/modules')
71
71
if iptables . include? ( 'ip_tables' )
72
72
vprint_good ( 'ip_tables.ko is loaded' )
73
73
else
74
74
print_error ( 'ip_tables.ko is not loaded. root needs to run iptables -L or similar command' )
75
75
end
76
76
return iptables . include? ( 'ip_tables' )
77
77
elsif target . name == "Fedora"
78
- iptables = cmd_exec ( 'cat /proc/modules')
78
+ iptables = read_file ( ' /proc/modules')
79
79
if iptables . include? ( 'iptable_raw' )
80
80
vprint_good ( 'iptable_raw is loaded' )
81
81
else
You can’t perform that action at this time.
0 commit comments