File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ def match(self):
56
56
self .type = 'honeypot'
57
57
if regexes ['google_api' ].search (self .text ):
58
58
self .type = 'google_api'
59
+ if regexes ['pgp_private' ].search (self .text ):
60
+ self .type = 'pgp_private'
61
+ if regexes ['ssh_private' ].search (self .text ):
62
+ self .type = 'ssh_private'
59
63
# if regexes['juniper'].search(self.text): self.type = 'Juniper'
60
64
for regex in regexes ['banlist' ]:
61
65
if regex .search (self .text ):
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ def build_tweet(paste):
63
63
tweet += ' Possible SSH private key'
64
64
elif paste .type == 'honeypot' :
65
65
tweet += ' Dionaea Honeypot Log'
66
+ elif paste .type == 'pgp_private' :
67
+ tweet += ' Found possible PGP Private Key'
66
68
tweet += ' #infoleak'
67
69
if paste .num_emails > 0 :
68
70
print (paste .emails )
Original file line number Diff line number Diff line change 10
10
'cisco_pass' : re .compile (r'enable\s+password' , re .I ),
11
11
'google_api' : re .compile (r'\W(AIza.{35})' ),
12
12
'honeypot' : re .compile (r'<dionaea\.capture>' , re .I ),
13
+ 'pgp_private' : re .compile (r'BEGIN PGP PRIVATE' , re .I ),
14
+ 'ssh_private' : re .compile (r'BEGIN RSA PRIVATE' . re .I ),
13
15
'db_keywords' : [
14
16
re .compile (
15
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