Skip to content

Commit 3a0dc02

Browse files
committed
BugFix #14
1 parent ddda078 commit 3a0dc02

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

Bluto/bluto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,13 @@ if __name__ == "__main__":
256256
start_download_time = time.time()
257257
t5.start()
258258
t5.join()
259+
259260
time_spent_download = time.time() - start_download_time
260261
google_true_results = q1.get()
261262
bing_true_results = q2.get()
262263
linkedin_results = q3.get()
264+
if q5.empty():
265+
q5.put(None)
263266
data_mine = q5.get()
264267
start_time_brute = time.time()
265268
targets = action_brute_start(subs, myResolver)
@@ -330,3 +333,5 @@ if __name__ == "__main__":
330333
print '\n\nRage Quit!..'
331334
info('Keyboard Interrupt From User\n')
332335
sys.exit()
336+
except Exception,e:
337+
print e

Bluto/modules/data_mine.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def action_download(doc_list, docs):
9595
info(str(doc).replace('%20', ' '))
9696
pass
9797
if i < 1:
98-
sys.exit()
98+
return download_list
9999
data_size = get_size(docs)
100100
print '\tData Downloaded: {}MB'.format(str(math.floor(data_size)))
101101
info('Documents Downloaded: {}'.format(initial_count))
@@ -267,3 +267,5 @@ def doc_start(domain, USERAGENT_F, prox, q):
267267
software_list = []
268268
info('The Hunt Ended')
269269
q.put((user_names, software_list, download_count, download_list))
270+
elif (user_names_t and software_list) is None:
271+
q.put(None)

Bluto/modules/search.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ def action_emailHunter(domain, api, user_agents, q, prox):
166166
q.put(None)
167167
return None
168168
else:
169-
raise ValueError('No Response From Hunter')
169+
info('No Response From Hunter')
170+
q.put(None)
170171
except UnboundLocalError,e:
171172
print e
172173
except KeyError:

0 commit comments

Comments
 (0)