-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BOT: collector ftp(s) #455
Conversation
Current coverage is
|
Please write a least a dummy test, so the requirements and syntax will be checked as here: https://github.com/certtools/intelmq/blob/master/intelmq/tests/bots/collectors/alienvault_otx/test_collector.py |
from intelmq.lib.message import Report | ||
|
||
|
||
# https://stackoverflow.com/questions/12164470/python-ftp-implicit-tls-connection-issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you copied code from there, attribution is required under cc by-sa 3.0: https://blog.stackoverflow.com/2009/06/attribution-required/
@sebix thank you for the comments, will fix and include the attribution |
ca869b1
to
92b93eb
Compare
report.add("feed.url", self.parameters.ftp_host + ':' + | ||
str(self.parameters.ftp_port), sanitize=True) | ||
report.add("feed.accuracy", self.parameters.accuracy, sanitize=True) | ||
time_observation = DateTime().generate_datetime_now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is obsolete
92b93eb
to
e500997
Compare
e500997
to
56acd5a
Compare
from intelmq.lib.message import Report | ||
|
||
|
||
# BEGIN content from Stack Overflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also explicitly add cc by-sa 3.0
Is it final? |
ping? @robcza . Should we merge? Did you test it? |
Bots for collecting files from FTP and FTPS, both bots include automatic unzipping
Possible issue is no proxy support