Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 336169e

Browse files
committed
Update of version display
1 parent b2bc3d4 commit 336169e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
from lib.core.revision import getRevisionNumber
2121

2222
# sqlmap version and site
23-
VERSION = "1.0.0.7"
23+
VERSION = "1.0.0.8"
2424
REVISION = getRevisionNumber()
25-
VERSION_STRING = "sqlmap/%s" % VERSION
25+
STABLE = VERSION.count('.') <= 2
26+
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
2627
DESCRIPTION = "automatic SQL injection and database takeover tool"
2728
SITE = "http://sqlmap.org"
2829
ISSUES_PAGE = "https://github.com/sqlmapproject/sqlmap/issues/new"
@@ -35,7 +36,7 @@
3536
|_ -| . | | | .'| . |
3637
|___|_ |_|_|_|_|__,| _|
3738
|_| |_| \033[0m\033[4;37m%s\033[0m\n
38-
""" % ((31 + hash(REVISION) % 6) if REVISION else 30, VERSION_STRING.split('/')[-1], SITE)
39+
""" % ((31 + hash(VERSION) % 6) if not STABLE else 30, VERSION_STRING.split('/')[-1], SITE)
3940

4041
# Minimum distance of ratio from kb.matchRatio to result in True
4142
DIFF_TOLERANCE = 0.05

0 commit comments

Comments
 (0)