Skip to content

Commit

Permalink
Fix some linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bwatters-r7 committed Dec 20, 2023
1 parent 3ac9c0c commit 6f17088
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def initialize(info = {})
)

register_options([
OptPath.new('STYLE_FILE', [ true, 'The Microsoft-signed .msstyles file (e.g. aero.msstyles).' '' ], regex: /.*\w*\.msstyles$/),
OptPath.new('STYLE_FILE', [ true, 'The Microsoft-signed .msstyles file (e.g. aero.msstyles).', '' ], regex: /.*\w*\.msstyles$/),
OptString.new('STYLE_FILE_NAME', [ true, 'The name of the style file to reference.', '' ], regex: /^\w*(\.msstyles)?$/),
OptString.new('THEME_FILE_NAME', [ true, 'The name of the theme file to generate.', 'exploit.theme' ])
])
Expand Down Expand Up @@ -103,7 +103,7 @@ def get_file_contents(client:)
pe_raw = File.binread(datastore['STYLE_FILE'])
pe = Rex::PeParsey::Pe.new_from_string(pe_raw)
version_offset = pe.rva_to_file_offset(pe.resources['/PACKTHEM_VERSION/0/0'].rva)
pe_raw[...version_offset] + [999].pack('v') + pe_raw[(version_offset + 2)...]
pe_raw[0...version_offset] + [999].pack('v') + pe_raw[(version_offset + 2)...]
end

def make_theme
Expand Down

0 comments on commit 6f17088

Please sign in to comment.