Changeset 5450

Show
Ignore:
Timestamp:
03/18/08 11:01:15 (2 months ago)
Author:
hdm
Message:

Payload patch from toto

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/trunk/lib/msf/core/payload.rb

    r5378 r5450  
    433433                cache_entry = framework.payloads.check_blob_cache(cache_key) 
    434434 
     435                off.each_pair { |option, val| 
     436                        if (val[1] == 'RAW') 
     437                                asm = asm.gsub(/#{option}/){ datastore[option] } 
     438                                off.delete(option) 
     439                        end 
     440                } 
     441 
    435442                # If there is a valid cache entry, then we don't need to worry about 
    436443                # rebuilding the assembly