Skip to content

Fix Baddns IPv4 event.host bug#2196

Merged
liquidsec merged 2 commits into
devfrom
baddns-ipevent-fix
Jan 21, 2025
Merged

Fix Baddns IPv4 event.host bug#2196
liquidsec merged 2 commits into
devfrom
baddns-ipevent-fix

Conversation

@liquidsec

Copy link
Copy Markdown
Collaborator

ensure event.host is stringified before passing to baddns

@codecov

codecov Bot commented Jan 20, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93%. Comparing base (b7d12e9) to head (800cc0c).
Report is 10 commits behind head on dev.

Additional details and impacted files
@@          Coverage Diff          @@
##             dev   #2196   +/-   ##
=====================================
+ Coverage     93%     93%   +1%     
=====================================
  Files        376     376           
  Lines      29224   29225    +1     
=====================================
+ Hits       27004   27008    +4     
+ Misses      2220    2217    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread bbot/modules/baddns_direct.py Outdated
if str(event.module).startswith("bucket_"):
return False
self.debug(f"Processing STORAGE_BUCKET for {event.host}")
self.debug(f"Processing STORAGE_BUCKET for {str(event.host)}")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not necessary to use str() inside format strings since they're converted automatically.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL

@liquidsec

Copy link
Copy Markdown
Collaborator Author

@TheTechromancer should be good now

@liquidsec liquidsec merged commit 2529f9b into dev Jan 21, 2025
@liquidsec liquidsec deleted the baddns-ipevent-fix branch January 21, 2025 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants