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

Skip to content

Commit b0465a6

Browse files
committed
Adding a revision scheme for nongit checkouts
1 parent cd92de1 commit b0465a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import subprocess
1111
import string
1212
import sys
13+
import time
1314

1415
from lib.core.enums import DBMS
1516
from lib.core.enums import DBMS_DIRECTORY_NAME
@@ -19,7 +20,7 @@
1920
# sqlmap version and site
2021
VERSION = "1.0-dev"
2122
REVISION = getRevisionNumber()
22-
VERSION_STRING = "sqlmap/%s%s" % (VERSION, "-%s" % REVISION if REVISION else "-nongit")
23+
VERSION_STRING = "sqlmap/%s%s" % (VERSION, "-%s" % REVISION if REVISION else "-nongit-%s" % time.strftime("%Y%M%d", time.gmtime(os.path.getctime(__file__))))
2324
DESCRIPTION = "automatic SQL injection and database takeover tool"
2425
SITE = "http://sqlmap.org"
2526
ISSUES_PAGE = "https://github.com/sqlmapproject/sqlmap/issues/new"

0 commit comments

Comments
 (0)