MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / getLatestRevision

Function getLatestRevision

lib/core/common.py:3915–3929  ·  view source on GitHub ↗

Retrieves latest revision from the offical repository

()

Source from the content-addressed store, hash-verified

3913 return errMsg
3914
3915def getLatestRevision():
3916 """
3917 Retrieves latest revision from the offical repository
3918 """
3919
3920 retVal = None
3921 req = _urllib.request.Request(url="https://raw.githubusercontent.com/sqlmapproject/sqlmap/master/lib/core/settings.py", headers={HTTP_HEADER.USER_AGENT: fetchRandomAgent()})
3922
3923 try:
3924 content = getUnicode(_urllib.request.urlopen(req).read())
3925 retVal = extractRegexResult(r"VERSION\s*=\s*[\"&#x27;](?P<result>[\d.]+)", content)
3926 except:
3927 pass
3928
3929 return retVal
3930
3931def fetchRandomAgent():
3932 """

Callers 1

updateFunction · 0.90

Calls 4

getUnicodeFunction · 0.90
fetchRandomAgentFunction · 0.85
extractRegexResultFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…