Skip to content

Commit f362c34

Browse files
committedMar 30, 2013
Updated Readme
Added support for Twitter Errors Fixed hashtag to have a space so it's actually a hashtag
1 parent beae971 commit f362c34

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
lines changed
 

‎Readme.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,13 @@
44

55
For more overview, check out the blog post [here.](http://raidersec.blogspot.com/2013/03/introducing-dumpmon-twitter-bot-that.html)
66

7-
## Full documentation in the works
7+
## Dependencies
8+
> [python-twitter](https://code.google.com/p/python-twitter/)
9+
> $ pip install beautifulsoup4
10+
> $ pip install requests
11+
12+
Next, edit the settings.py to include your Twitter application settings.
13+
14+
## Executing dumpmon
15+
16+
> python dumpmon.py

‎lib/Pastebin.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import helper
55
from time import sleep
66
from settings import SLEEP_PASTEBIN
7+
from twitter import TwitterError
78

89
class PastebinPaste(Paste):
910
def __init__(self, id):
@@ -48,7 +49,10 @@ def monitor(self, bot, l_lock, t_lock):
4849
print tweet
4950
with t_lock:
5051
helper.record(tweet)
51-
bot.PostUpdate(tweet)
52+
try:
53+
bot.PostUpdate(tweet)
54+
except TwitterError:
55+
pass
5256
self.update()
5357
# If no new results... sleep for 5 sec
5458
while self.empty():

‎lib/Pastie.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import helper
55
from time import sleep
66
from settings import SLEEP_PASTIE
7+
from twitter import TwitterError
78

89
class PastiePaste(Paste):
910
def __init__(self, id):
@@ -49,7 +50,10 @@ def monitor(self, bot, l_lock, t_lock):
4950
print tweet
5051
with t_lock:
5152
helper.record(tweet)
52-
bot.PostUpdate(tweet)
53+
try:
54+
bot.PostUpdate(tweet)
55+
except TwitterError:
56+
pass
5357
self.update()
5458
# If no new results... sleep for 5 sec
5559
while self.empty():

‎lib/Slexy.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import helper
55
from time import sleep
66
from settings import SLEEP_SLEXY
7+
from twitter import TwitterError
78

89
class SlexyPaste(Paste):
910
def __init__(self, id):
@@ -48,7 +49,10 @@ def monitor(self, bot, l_lock, t_lock):
4849
print tweet
4950
with t_lock:
5051
helper.record(tweet)
51-
bot.PostUpdate(tweet)
52+
try:
53+
bot.PostUpdate(tweet)
54+
except TwitterError:
55+
pass
5256
self.update()
5357
# If no new results... sleep for 5 sec
5458
while self.empty():

‎lib/helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def build_tweet(paste):
6363
tweet += ' Possible SSH private key'
6464
elif paste.type == 'honeypot':
6565
tweet += ' Dionaea Honeypot Log'
66-
tweet += '#infoleak'
66+
tweet += ' #infoleak'
6767
if paste.num_emails > 0:
6868
print paste.emails
6969
return tweet

0 commit comments

Comments
 (0)
Please sign in to comment.