-
Notifications
You must be signed in to change notification settings - Fork 0
/
list_regex_match.py
72 lines (67 loc) · 1.56 KB
/
list_regex_match.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 12 18:08:44 2018
@author: fgrimps
"""
import re
text = {
'"version_name"': '"8.5.2"',
'"abi"': '"arm64-v8a"',
'"x_dpi"': '515.1539916992188',
'"environment"': '{"sdk_version"',
'"time_zone"': '"America\\/Wash"',
'"user"': '{}}',
'"density_default"': '560}}',
'"resolution_width"': '1440',
'"package_name"': '"com.okcupid.okcupid"',
'"d44bcbfb-873454-4917-9e02-2066d6605d9f"': '{"language"',
'"country"': '"US"}',
'"now"': '1.515384841291E9',
'{"extras"': '{"sessions"',
'"device"': '{"android_version"',
'"y_dpi"': '37abc5afce16xxx',
'"model"': '"Nexus 6P"',
'"new"': 'true}]',
'"only_respond_with"': '''["triggers"]}
0\r
\r
''',
'"start_time"': '1.51538484115E9',
'"version_code"': '1057',
'"-104.99875"': '"0"',
'"no_acks"': 'true}',
'"display"': '{"resolution_height"',
}
Keywords = [
'37abc5afce16xxx',
'867686022684243',
'ffffffff-f336-7a7a-0f06-65f40033c587',
'long',
'Lat',
'uuid',
'WIFI',
'advertiser',
'd44bcbfb-873454-4917-9e02-2066d6605d9f',
'deviceFinger',
'medialink',
'Huawei',
'Andriod',
'US',
'local_ip',
'Nexus',
'android2.10.3',
'WIFI',
'operator',
'carrier',
'angler',
'MMB29M',
'-104.99875',
]
for key, values1 in text.items():
for x in Keywords:
pattern = ".*"+str(x)+".*"
if re.findall(pattern, str(values1), re.M):
print('Match')
print(x)
#else:
# print('Not Match')