mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 15:57:16 +00:00
Merge branch 'master' into onion_crawler
This commit is contained in:
commit
5c902640e9
2 changed files with 7 additions and 4 deletions
|
@ -62,12 +62,13 @@ while True:
|
|||
print(paste)
|
||||
if paste is None:
|
||||
continue
|
||||
socket.send("%d %s" % (topic, paste))
|
||||
socket.send_string("%d %s" % (topic, paste))
|
||||
topic = 102
|
||||
try:
|
||||
messagedata = open(pystemonpath+paste).read()
|
||||
socket.send("%d %s %s" % (topic, paste, base64.b64encode(messagedata)))
|
||||
sleep_inc = sleep_inc-0.01 if sleep_inc-0.01 > 0 else 0
|
||||
with open(pystemonpath+paste, 'rb') as f: #.read()
|
||||
messagedata = f.read()
|
||||
socket.send_string("%d %s %s" % (topic, paste, base64.b64encode(messagedata).decode()))
|
||||
sleep_inc = sleep_inc-0.01 if sleep_inc-0.01 > 0 else 0
|
||||
except IOError as e:
|
||||
# file not found, could be a buffering issue -> increase sleeping time
|
||||
print('IOError: Increasing sleep time')
|
||||
|
|
|
@ -33,6 +33,8 @@ sender_port = 1337
|
|||
|
||||
##### Flask #####
|
||||
[Flask]
|
||||
#Number of logs to display in the dashboard
|
||||
max_dashboard_logs = 15
|
||||
#Maximum number of character to display in the toolip
|
||||
max_preview_char = 250
|
||||
#Maximum number of character to display in the modal
|
||||
|
|
Loading…
Reference in a new issue