So, I was grepping for examples to pull the build numbers from Windows versions, and came across this module:
modules/exploits/windows/local/ms16_075_reflection_juicy.rb
It used the regex
win10build = client.sys.config.sysinfo['OS'].match /Windows 10 \(Build (\d+)\)/
I made some changes to the way meterpreter reported the sysinfo value, and I believe this regex is now broken. I used build_num = sysinfo_value.match(/\w+\d+\w+(\d+)/)[0].to_i in my module, but as a regex expert could tell you, I'm no regex expert....
Are you taking this on?
I had no definitive passion to, but I figured if I did not document it, I would forget. If you want to knock it out, feel free!
I do not. We are in agreement. :)
I mean.... the regex that I think works is right there.... if someone were looking to make a first PR, this is a ctrl-c ctrl-v problem....
I'm a someone looking to make a first PR! Please see above for my fix. Constructive feedback welcome.
Merged in c9e4ca34, this issue can be closed.
Thanks!
Most helpful comment
I'm a someone looking to make a first PR! Please see above for my fix. Constructive feedback welcome.