File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -271,14 +271,20 @@ def job_run_proc(ctx)
271
271
exploit . fail_reason = Msf ::Exploit ::Failure ::Unknown
272
272
end
273
273
274
+ elog ( "Exploit failed (#{ exploit . refname } ): #{ msg } " , 'core' , LEV_0 )
275
+
274
276
if exploit . fail_reason == Msf ::Exploit ::Failure ::Unknown
275
277
exploit . print_error ( "Exploit failed: #{ msg } " )
278
+ exploit . print_error ( "Call stack:" )
279
+ e . backtrace . each do |line |
280
+ break if line =~ /lib.msf.base.core.exploit_driver.rb/
281
+ exploit . print_error ( " #{ line } " )
282
+ end
283
+ elog ( "Call stack:\n #{ e . backtrace . join ( "\n " ) } " , 'core' , LEV_0 )
276
284
else
277
285
exploit . print_error ( "Exploit failed [#{ exploit . fail_reason } ]: #{ msg } " )
286
+ dlog ( "Call stack:\n #{ e . backtrace . join ( "\n " ) } " , 'core' , LEV_3 )
278
287
end
279
-
280
- elog ( "Exploit failed (#{ exploit . refname } ): #{ msg } " , 'core' , LEV_0 )
281
- dlog ( "Call stack:\n #{ e . backtrace . join ( "\n " ) } " , 'core' , LEV_3 )
282
288
end
283
289
284
290
# Record the error to various places
@@ -329,4 +335,3 @@ def job_cleanup_proc(ctx)
329
335
end
330
336
331
337
end
332
-
You can’t perform that action at this time.
0 commit comments