Covering special cases (on pastebin)

There is no need for checking `()` in case of (e.g.) Litecoin and Dash as those are also additionally checked with Bitcoin address verifier
This commit is contained in:
Miroslav Stampar 2019-09-26 11:10:02 +02:00 committed by GitHub
parent e3040f8e6d
commit 34bfc6a44a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,13 +147,13 @@ cryptocurrency_dict = {
}, },
'monero': { 'monero': {
'name': 'monero', # e.g. 47JLdZWteNPFQPaGGNsqLBAU3qmTcWbRda4yJvaPTCB8JbY18MNrcmfCcxrfDF61Dm7pJc4bHbBW57URjwTWzTRH2RfsUB4 'name': 'monero', # e.g. 47JLdZWteNPFQPaGGNsqLBAU3qmTcWbRda4yJvaPTCB8JbY18MNrcmfCcxrfDF61Dm7pJc4bHbBW57URjwTWzTRH2RfsUB4
'regex': r'\b(?<![+/=])4[A-Za-z0-9]{94}(?![+/=])\b', 'regex': r'\b(?<![+/=()])4[A-Za-z0-9]{94}(?![+/=()])\b',
'max_execution_time': default_max_execution_time, 'max_execution_time': default_max_execution_time,
'tag': 'infoleak:automatic-detection="monero-address"', 'tag': 'infoleak:automatic-detection="monero-address"',
}, },
'zcash': { 'zcash': {
'name': 'zcash', # e.g. t1WvvNmFuKkUipcoEADNFvqamRrBec8rpUn 'name': 'zcash', # e.g. t1WvvNmFuKkUipcoEADNFvqamRrBec8rpUn
'regex': r'\b(?<![+/=])t[12][A-Za-z0-9]{33}(?![+/=])\b', 'regex': r'\b(?<![+/=()])t[12][A-Za-z0-9]{33}(?![+/=()])\b',
'max_execution_time': default_max_execution_time, 'max_execution_time': default_max_execution_time,
'tag': 'infoleak:automatic-detection="zcash-address"', 'tag': 'infoleak:automatic-detection="zcash-address"',
}, },