File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ def match(self):
58
58
self .type = 'google_api'
59
59
if regexes ['pgp_private' ].search (self .text ):
60
60
self .type = 'pgp_private'
61
+ if regexes ['ssh_private' ].search (self .text ):
62
+ self .type = 'ssh_private'
61
63
# if regexes['juniper'].search(self.text): self.type = 'Juniper'
62
64
for regex in regexes ['banlist' ]:
63
65
if regex .search (self .text ):
Original file line number Diff line number Diff line change 11
11
'google_api' : re .compile (r'\W(AIza.{35})' ),
12
12
'honeypot' : re .compile (r'<dionaea\.capture>' , re .I ),
13
13
'pgp_private' : re .compile (r'BEGIN PGP PRIVATE' , re .I ),
14
+ 'ssh_private' : re .compile (r'BEGIN RSA PRIVATE' . re .I ),
14
15
'db_keywords' : [
15
16
re .compile (
16
17
r'((customers?|email|users?|members?|acc(?:oun)?ts?)([-_|/\s]?(address|name|id[^")a-zA-Z0-9_]|[-_:|/\\])))' , re .I ),
You can’t perform that action at this time.
0 commit comments