Skip to content

Commit

Permalink
Added fingerprint delay
Browse files Browse the repository at this point in the history
* src/core/auxengine.py
  -- Clarified output of aux modules
* src/core/fingerprint.py
  src/core/parse_cmd.py
  -- Added a delay flag that can be set, which causes
  clusterd to hault N seconds between each attempt
  • Loading branch information
hatRiot committed Jan 17, 2015
1 parent 31cffd6 commit e3bdf23
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/auxengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ def auxengine(fingerengine):

if mod.name not in found and mod.check(fingerprint):
if fingerengine.options.fp:
utility.Msg("Vulnerable to %s (--%s)" % (mod.name, mod.flag),
LOG.SUCCESS)
utility.Msg(" %s (--%s)" % (mod.name, mod.flag), LOG.UPDATE)
elif vars(fingerengine.options)[mod.flag]:
try:
mod.run(fingerengine, fingerprint)
Expand Down Expand Up @@ -86,4 +85,4 @@ def build_platform_flags(platform, egroup):
egroup.add_argument("--%s" % mod.flag, action='store_true', dest=mod.flag,
help=SUPPRESS)

return egroup
return egroup
4 changes: 4 additions & 0 deletions src/core/fingerprint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from os.path import abspath
from time import sleep
from log import LOG
import pkgutil
import state
Expand Down Expand Up @@ -48,6 +49,9 @@ def definitions(self, ip, port, service):
match_fps.append(fp)
except Exception, e:
utility.Msg("Exception with fingerprint: %s" % e, LOG.DEBUG)

if self.options.delay:
sleep(int(self.options.delay))

return match_fps

Expand Down
3 changes: 3 additions & 0 deletions src/core/parse_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def parse(arguments):
remote.add_argument("--arch", help='Specify remote OS architecture',
action='store', dest='arch', default='x86',
metavar='[x86|x64]')
remote.add_argument("--delay", help='Delay N seconds between each attempt',
action='store', dest='delay', default=None,
metavar='[seconds]')

#
# deploy options
Expand Down

0 comments on commit e3bdf23

Please sign in to comment.