Skip to content

Commit 6a87017

Browse files
committed
All hashes now recorded... not just unique ones (multiple people could be using 'password123')
All tweets now carry the #infoleak hashtag
1 parent c5769cf commit 6a87017

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Paste.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def match(self):
4040
'''
4141
# Get the amount of emails
4242
self.emails = list(set(regexes['email'].findall(self.text)))
43-
self.hashes = list(set(regexes['hash32'].findall(self.text)))
43+
self.hashes = regexes['hash32'].findall(self.text)
4444
self.num_emails = len(self.emails)
4545
self.num_hashes = len(self.hashes)
4646
for regex in regexes['db_keywords']:

lib/helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def build_tweet(paste):
5555
if paste.num_hashes > 0: tweet += ' Hashes: ' + str(paste.num_hashes)
5656
if paste.num_hashes > 0 and paste.num_emails > 0: tweet += ' E/H: ' + str(round(paste.num_emails / float(paste.num_hashes), 2))
5757
tweet += ' Keywords: ' + str(paste.db_keywords)
58-
tweet += ' #infoleak'
5958
elif paste.type == 'google_api':
6059
tweet += ' Found possible Google API key(s)'
6160
elif paste.type in ['Cisco', 'Juniper']:
@@ -64,6 +63,7 @@ def build_tweet(paste):
6463
tweet += ' Possible SSH private key'
6564
elif paste.type == 'honeypot':
6665
tweet += ' Dionaea Honeypot Log'
66+
tweet += '#infoleak'
6767
if paste.num_emails > 0:
6868
print paste.emails
6969
return tweet

0 commit comments

Comments
 (0)