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

Skip to content

Commit b02363b

Browse files
committed
minor update
1 parent b604057 commit b02363b

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

lib/core/dump.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from lib.core.data import kb
2525
from lib.core.data import logger
2626
from lib.core.enums import DBMS
27+
from lib.core.exception import sqlmapValueException
2728
from lib.core.replication import Replication
2829
from lib.core.settings import TRIM_STDOUT_DUMP_SIZE
2930
from lib.core.settings import UNICODE_ENCODING
@@ -450,7 +451,10 @@ def dbTableValues(self, tableValues):
450451
field += 1
451452

452453
if conf.replicate:
453-
rtable.insert(values)
454+
try:
455+
rtable.insert(values)
456+
except sqlmapValueException:
457+
pass
454458

455459
self.__write("|", console=console)
456460

lib/core/enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ class REFLECTIVE_COUNTER:
7070

7171
class HASH:
7272
MYSQL = r'(?i)\A\*[0-9a-f]{40}\Z'
73-
MYSQL_OLD = r'(?i)\A[0-9a-f]{16}\Z'
73+
MYSQL_OLD = r'(?i)\A(?![0-9]{16})[0-9a-f]{16}\Z'
7474
POSTGRES = r'(?i)\Amd5[0-9a-f]{32}\Z'
7575
MSSQL = r'(?i)\A0x0100[0-9a-f]{8}[0-9a-f]{40}\Z'
7676
MSSQL_OLD = r'(?i)\A0x0100[0-9a-f]{8}[0-9a-f]{80}\Z'
7777
ORACLE = r'(?i)\As:[0-9a-f]{60}\Z'
7878
ORACLE_OLD = r'(?i)\A[01-9a-f]{16}\Z'
7979
MD5_GENERIC = r'(?i)\A[0-9a-f]{32}\Z'
8080
SHA1_GENERIC = r'(?i)\A[0-9a-f]{40}\Z'
81-
CRYPT_GENERIC = r'(?i)\A[./0-9A-Za-z]{13}\Z'
81+
CRYPT_GENERIC = r'(?i)\A(?![0-9]{13})[./0-9A-Za-z]{13}\Z'
8282
WORDPRESS = r'(?i)\A\$P\$[./0-9A-Za-z]{31}\Z'
8383

8484
# Reference: http://www.zytrax.com/tech/web/mobile_ids.html

0 commit comments

Comments
 (0)