Skip to content

Commit

Permalink
Updated CF11 fingerprint hash as per issue #35
Browse files Browse the repository at this point in the history
* src/platform/coldfusion/auxiliary/info_dump.py
  -- Fixed auth bug when creds arent provided in the latest CF
  instances
* src/platform/coldfusion/fingerprints/CF11.py
  -- Updated MD5 hash to match latest release
  • Loading branch information
hatRiot committed Feb 13, 2015
1 parent 35c9e01 commit 748f51d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/platform/coldfusion/auxiliary/info_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ def run(self, fingerengine, fingerprint):
uri = '/CFIDE/administrator/settings/version.cfm'

cookies = checkAuth(fingerengine.options.ip, fingerprint.port,
fingerprint.title, fingerprint.version)[0]
fingerprint.title, fingerprint.version)
if not cookies:
utility.Msg("Could not get auth for %s:%s" %
(fingerengine.options.ip, fingerprint.port), LOG.ERROR)
return
else:
cookies = cookies[0]

try:
response = utility.requests_get(base + uri, cookies=cookies)
Expand All @@ -56,7 +58,7 @@ def run(self, fingerengine, fingerprint):
regex = self.versionRegex(fingerprint.version)
types = findall(regex[0], response.content.translate(None, "\n\t\r"))
data = findall(regex[1], response.content.translate(None, "\n\t\r"))

# pad
if fingerprint.version in ["8.0", "9.0", "10.0", '11.0']:
types.insert(0, "Version")
Expand Down Expand Up @@ -118,4 +120,4 @@ def _run5(self, fingerengine, fingerprint):

k = findall(" (.*?) ", key)[0].lstrip().rstrip()
v = findall(" (.*?)\t", value)[0].lstrip().rstrip()
utility.Msg(" %s: %s" % (k, v))
utility.Msg(" %s: %s" % (k, v))
2 changes: 1 addition & 1 deletion src/platform/coldfusion/fingerprints/CF11.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ def __init__(self):
self.title = CINTERFACES.CFM
self.uri = "/CFIDE/administrator/images/loginbackground.jpg"
self.port = 80
self.hash = "9d11ede6e4ca9f1bf57b856c0df82ee6"
self.hash = "457c6f1f26d8a030a9301e975663589d"

0 comments on commit 748f51d

Please sign in to comment.