add post count to the banner

git-svn-id: file:///home/svn/framework3/trunk@12537 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-05-04 08:50:38 +00:00
parent decf71c4af
commit 27c1e757e1
2 changed files with 9 additions and 2 deletions

View File

@ -52,6 +52,13 @@ class Statistics
framework.auxiliary.length
end
#
# Returns the number of post modules in the framework.
#
def num_post
framework.post.length
end
#
# Returns the number of stages in the framework.
#
@ -75,4 +82,4 @@ class Statistics
end
end
end
end

View File

@ -242,7 +242,7 @@ class Core
banner = "%cya" + Banner.to_s + "%clr\n\n"
banner << " =[ %yelmetasploit v#{Msf::Framework::Version} [core:#{Msf::Framework::VersionCore} api:#{Msf::Framework::VersionAPI}]%clr\n"
banner << "+ -- --=[ "
banner << "#{framework.stats.num_exploits} exploits - #{framework.stats.num_auxiliary} auxiliary\n"
banner << "#{framework.stats.num_exploits} exploits - #{framework.stats.num_auxiliary} auxiliary - #{framework.stats.num_post} post\n"
banner << "+ -- --=[ "
oldwarn = nil