From 7298840478fa57fac1f0f939e1a9423bdf2ae22b Mon Sep 17 00:00:00 2001 From: Rob Fuller Date: Sun, 1 Jul 2012 21:32:29 -0300 Subject: [PATCH] Fix match on User-Agent for HTTPS --- lib/msf/core/handler/reverse_https.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/handler/reverse_https.rb b/lib/msf/core/handler/reverse_https.rb index fa64753c62..dd809aaf7d 100644 --- a/lib/msf/core/handler/reverse_https.rb +++ b/lib/msf/core/handler/reverse_https.rb @@ -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