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

Skip to content

Commit 3b0323a

Browse files
committed
Minor patch
1 parent 519538a commit 3b0323a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/controller/controller.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@ def start():
454454
skip = (place == PLACE.USER_AGENT and conf.level < 3)
455455
skip |= (place == PLACE.REFERER and conf.level < 3)
456456

457+
# --param-filter
458+
skip |= (len(conf.paramFilter) > 0 and place.upper() not in conf.paramFilter)
459+
457460
# Test Host header only if
458461
# --level >= 5
459462
skip |= (place == PLACE.HOST and conf.level < 5)
@@ -466,8 +469,6 @@ def start():
466469
skip |= (place == PLACE.COOKIE and intersect(PLACE.COOKIE, conf.skip, True) not in ([], None))
467470
skip |= (place == PLACE.HOST and intersect(PLACE.HOST, conf.skip, True) not in ([], None))
468471

469-
skip |= (conf.paramFilter and place.upper() not in conf.paramFilter)
470-
471472
skip &= not (place == PLACE.USER_AGENT and intersect(USER_AGENT_ALIASES, conf.testParameter, True))
472473
skip &= not (place == PLACE.REFERER and intersect(REFERER_ALIASES, conf.testParameter, True))
473474
skip &= not (place == PLACE.HOST and intersect(HOST_ALIASES, conf.testParameter, True))

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

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

0 commit comments

Comments
 (0)