-
Notifications
You must be signed in to change notification settings - Fork 182
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
How can I add extra fields into JSON output (ex: catch attack session)? #304
Comments
The log_json incident handler collects all information for a connection and reports all collected values when the dionaea.connection.free incident is reported/handled. If you just need a unique id per connection generate and append the id in the dionaea/modules/python/dionaea/log_json.py Line 223 in d0e03ae
|
Thank you for your response.
I call them in smb.py as Is it possible to divide these events? I mean order: "connection" -> "attack information" -> "disconnection"? If yes, where should I call my functions (here? -> { ..., "eventid": "connection", ... } - 1st string
|
Hi Guys! This is my first comment in GitHub, I hope that you get what I mean and not be angry if I post it in wrong pace.
Look, I want to add extra fields to the JSON output (log_json.py) -> "session", "filehash"
to connect these fields with attack;
class FTPd(connection):
This helps me to catch the session, but only in ftp.py. I didn't get how
i = incident()
work and how I can give arguments to it. Probably there is a better decision but I still don't find it out. I tried the same to do with smb.py but I'm stuck with this because there is no function for SMB kindahandle_incident_dionaea_modules_python_SMB_command
. How can I get extra fields to JSON output? What file should I edit? Thank you!The text was updated successfully, but these errors were encountered: