Merge branch 'patch-3' of https://github.com/mubix/metasploit-framework into mubix-patch-3

unstable
sinn3r 2012-07-01 19:42:49 -05:00
commit d7d21f1bda
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ protected
blob = obj.stage_payload
# Replace the user agent string with our option
i = blob.index("METERPRETER_UA\x00")
i = blob.index("Meterpreter\/Windows")
if i
str = datastore['MeterpreterUserAgent'][0,255] + "\x00"
blob[i, str.length] = str