Browse Source

Add check for CPU vulnerability status to enum_system

Brendan Coles 1 month ago
parent
commit
d047feeb03
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      modules/post/linux/gather/enum_system.rb

+ 5
- 0
modules/post/linux/gather/enum_system.rb View File

@@ -67,6 +67,7 @@ class MetasploitModule < Msf::Post
67 67
     save("Disk info", disks)
68 68
     save("Logfiles", logfiles)
69 69
     save("Setuid/setgid files", uidgid)
70
+    save("CPU Vulnerabilities", get_cpu_vulnerabilities)
70 71
   end
71 72
 
72 73
   def save(msg, data, ctype = 'text/plain')
@@ -122,6 +123,10 @@ class MetasploitModule < Msf::Post
122 123
     services_installed
123 124
   end
124 125
 
126
+  def get_cpu_vulnerabilities
127
+    execute('grep -r . /sys/devices/system/cpu/vulnerabilities').to_s
128
+  end
129
+
125 130
   def get_crons(users, user)
126 131
     if user == "root" && users
127 132
       users = users.chomp.split

Loading…
Cancel
Save