Skip to content

Commit a845526

Browse files
committed
Bugfix for pastie id's
Bugfix for detecting Cisco configs (type to lowercase now)
1 parent 10268a9 commit a845526

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Pastie.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PastiePaste(Paste):
1212
def __init__(self, id):
1313
self.id = id
1414
self.headers = None
15-
self.url = 'http://pastie.org/pastes' + self.id + '/text'
15+
self.url = 'http://pastie.org/pastes/' + self.id + '/text'
1616
super(PastiePaste, self).__init__()
1717

1818

@@ -35,7 +35,7 @@ def update(self):
3535
results = results[:60]
3636
for entry in results:
3737
paste = PastiePaste(entry.a['href'].replace(
38-
self.BASE_URL + '/pastes', ''))
38+
self.BASE_URL + '/pastes/', ''))
3939
# Check to see if we found our last checked URL
4040
if paste.id == self.ref_id:
4141
break

lib/helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def build_tweet(paste):
5757
tweet += ' Keywords: ' + str(paste.db_keywords)
5858
elif paste.type == 'google_api':
5959
tweet += ' Found possible Google API key(s)'
60-
elif paste.type in ['Cisco', 'Juniper']:
60+
elif paste.type in ['cisco', 'juniper']:
6161
tweet += ' Possible ' + paste.type + ' configuration'
6262
elif paste.type == 'ssh_private':
6363
tweet += ' Possible SSH private key'

0 commit comments

Comments
 (0)