Retrieves latest revision from the offical repository
()
| 3913 | return errMsg |
| 3914 | |
| 3915 | def 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*[\"'](?P<result>[\d.]+)", content) |
| 3926 | except: |
| 3927 | pass |
| 3928 | |
| 3929 | return retVal |
| 3930 | |
| 3931 | def fetchRandomAgent(): |
| 3932 | """ |
no test coverage detected
searching dependent graphs…