From a92077182bf77d8ae37393f60e81a2a44c4ee009 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Thu, 20 Sep 2012 23:20:08 +0200 Subject: [PATCH] output elapsed time --- wpscan.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wpscan.rb b/wpscan.rb index 76a534de..330e9017 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -84,8 +84,9 @@ begin end # Output runtime data + start_time = Time.now puts "| URL: #{wp_target.url}" - puts "| Started on #{Time.now.asctime}" + puts "| Started on #{start_time.asctime}" puts wp_theme = wp_target.theme @@ -366,8 +367,11 @@ begin end end + stop_time = Time.now puts - puts "[+] Finished at #{Time.now.asctime}" + puts "[+] Finished at #{stop_time.asctime}" + elapsed = stop_time - start_time + puts("[+] Elapsed time: #{Time.at(elapsed).utc.strftime("%H:%M:%S")}") exit() # must exit! rescue => e puts "[ERROR] #{e.message}"