Browse Source

less indents

h00die 1 month ago
parent
commit
f60e8a3dbd
1 changed files with 10 additions and 8 deletions
  1. 10
    8
      modules/post/multi/gather/resolve_hosts.rb

+ 10
- 8
modules/post/multi/gather/resolve_hosts.rb View File

@@ -72,15 +72,17 @@ class MetasploitModule < Msf::Post
72 72
     response.each do |result|
73 73
       if result[:ip].nil?
74 74
         table << [result[:hostname], '[Failed To Resolve]']
75
-      else
76
-        if datastore['DATABASE']
77
-          report_host(
78
-            host: result[:ip],
79
-            name: result[:hostname]
80
-          )
81
-        end
82
-        table << [result[:hostname], result[:ip]]
75
+        next
83 76
       end
77
+
78
+      if datastore['DATABASE']
79
+        report_host(
80
+          host: result[:ip],
81
+          name: result[:hostname]
82
+        )
83
+      end
84
+
85
+      table << [result[:hostname], result[:ip]]
84 86
     end
85 87
 
86 88
     table.print

Loading…
Cancel
Save