We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d67ce0 commit 785a176Copy full SHA for 785a176
tools/modules/update_payload_cached_sizes.rb
@@ -25,7 +25,7 @@
25
26
# Initialize the simplified framework instance.
27
framework = Msf::Simple::Framework.create('DisableDatabase' => true)
28
-
+exceptions = []
29
framework.payloads.each_module do |name, mod|
30
begin
31
next if name =~ /generic/
@@ -35,8 +35,13 @@
35
$stdout.puts "[*] Updating the CacheSize for #{mod.file_path}..."
36
Msf::Util::PayloadCachedSize.update_module_cached_size(mod_inst)
37
rescue => e
38
- print_line("Caught Error while updating #{name}:\n#{e}")
39
- elog(e)
+ exceptions << [ e, name ]
40
next
41
end
42
-end
+end
+
43
+exceptions.each do |e, name|
44
+ print_error("Caught Error while updating #{name}:\n#{e}")
45
+ elog(e)
46
47
+exit(1) unless exceptions.empty?
0 commit comments