-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Update User Agent strings for October 2024 #19540
Conversation
for x in range(0, len(lines)): | ||
if replace_marker in lines[x]: | ||
break |
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.
for x in range(0, len(lines)): | |
if replace_marker in lines[x]: | |
break | |
for line in lines: | |
if replace_marker in line: | |
break |
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 think this will break the subsequent code when we re-insert it back into the list. We need the index reference to do in-place replacement (unless we also change it to rebuild the list from scratch too).
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.
Thanks for the script; cross-referencing with: #18120
a889ac4
to
395e743
Compare
Release NotesUpdate Metasploit's HTTP request User Agent strings for October 2024 |
This also adds a script to automate this in future.
Verification
List the steps needed to make sure this thing works
Check the script in
tools/dev/update_user_agent_strings.py
user_agent.rb
file and make sure that the script handles it appropriately (usually just a meaningful error message if there's a problem)