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

Skip to content

Commit c1825b2

Browse files
committed
Patch for #3130
1 parent e7d448c commit c1825b2

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.2.6.0"
22+
VERSION = "1.2.6.1"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/core/update.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def update():
4949
errMsg = "unable to update content of directory '%s' ('%s')" % (directory, getSafeExString(ex))
5050
logger.error(errMsg)
5151
else:
52+
attrs = os.stat(os.path.join(directory, "sqlmap.py")).st_mode
5253
for wildcard in ('*', ".*"):
5354
for _ in glob.glob(os.path.join(directory, wildcard)):
5455
try:
@@ -83,6 +84,8 @@ def update():
8384
else:
8485
if not success:
8586
logger.error("update could not be completed")
87+
else:
88+
os.chmod(os.path.join(directory, "sqlmap.py"), attrs)
8689
else:
8790
infoMsg = "updating sqlmap to the latest development revision from the "
8891
infoMsg += "GitHub repository"

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
4747
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4848
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4949
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
50-
cd402ab35a20d44b7404bcc18f652a16 lib/core/settings.py
50+
993fd299707fdb019bfe4e12967da74c lib/core/settings.py
5151
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5252
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5353
6306284edcccc185b2df085438572b0d lib/core/target.py
5454
72d499ca8d792e90a1ebfb2ad2341a51 lib/core/testing.py
5555
de9922a29c71a235cb95a916ff925db2 lib/core/threads.py
5656
c40758411bb0bd68764d78e0bb72bd0f lib/core/unescaper.py
57-
af2d1810b6a7ebc61689a53c253ddbaa lib/core/update.py
57+
c54afa9950529a5974166464bfd4c34a lib/core/update.py
5858
e772deb63270375e685fa5a7b775c382 lib/core/wordlist.py
5959
1e5532ede194ac9c083891c2f02bca93 lib/__init__.py
6060
7620f1f4b8791e13c7184c06b5421754 lib/parse/banner.py

0 commit comments

Comments
 (0)