Method: Rex::Exploitation::CmdStagerVBS#compress_commands
- Defined in:
- lib/rex/exploitation/cmdstager/vbs.rb
#compress_commands(cmds, opts) ⇒ Object
We override compress commands just to stick in a few extra commands last second..
105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/rex/exploitation/cmdstager/vbs.rb', line 105 def compress_commands(cmds, opts) # Make it all happen cmds << "cscript //nologo #{@tempdir}#{@var_decoder}.vbs" # Clean up after unless requested not to.. if (not opts[:nodelete]) cmds << "del #{@tempdir}#{@var_decoder}.vbs" cmds << "del #{@tempdir}#{@var_encoded}.b64" # NOTE: We won't be able to delete the exe while it's in use. end super end |