add post count to the banner
git-svn-id: file:///home/svn/framework3/trunk@12537 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
decf71c4af
commit
27c1e757e1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue