Fix match on User-Agent for HTTPS
parent
1b02f17d52
commit
7298840478
|
@ -246,7 +246,7 @@ protected
|
||||||
blob = obj.stage_payload
|
blob = obj.stage_payload
|
||||||
|
|
||||||
# Replace the user agent string with our option
|
# Replace the user agent string with our option
|
||||||
i = blob.index("METERPRETER_UA\x00")
|
i = blob.index("Meterpreter\/Windows")
|
||||||
if i
|
if i
|
||||||
str = datastore['MeterpreterUserAgent'][0,255] + "\x00"
|
str = datastore['MeterpreterUserAgent'][0,255] + "\x00"
|
||||||
blob[i, str.length] = str
|
blob[i, str.length] = str
|
||||||
|
|
Loading…
Reference in New Issue