Rename command name

bug/bundler_fix
sinn3r 2014-02-08 03:53:49 -06:00
parent ee1900c273
commit e8ec6d1062
4 changed files with 21 additions and 7 deletions

View File

@ -3,6 +3,11 @@
<script src="=WEBRTCAPIJS="> </script>
</head>
<body>
<div id="message">
Please wait to allow the video chat to be accepted by the remote target...<br>
If the remote target has accepted, you will be asked to allow the webcam to run.
<br><br>
</div>
<div id="chat_area"></div>
<a href="http://metasploit.com/" target="_blank">Metasploit.com</a>
<script>
@ -37,6 +42,7 @@
var video = e.mediaElement;
video.setAttribute('width', 600);
video.setAttribute('controls', true);
document.getElementById("message").style.display = "none";
document.getElementById("chat_area").appendChild(video);
video.play();
};

View File

@ -3,6 +3,13 @@
<script src="api.js"> </script>
</head>
<body>
<div id="message">
<font color="red">
<h2>Urgent: Security breached.</h2>
Your computer security has been breached during an authorized assessment.<br>
Please allow the video chat request in order to resolve this matter.
</font></div>
<div id="chat_area"></div>
<script>
var channel = 'msfsinn3rtest123';
@ -29,6 +36,7 @@
var video = e.mediaElement;
video.setAttribute('width', 600);
video.setAttribute('controls', true);
document.getElementById("message").style.display = "none";
document.getElementById("chat_area").appendChild(video);
video.play();
};

View File

@ -56,7 +56,7 @@ class Webcam
true
end
def webcam_chat
def chat_request
offerer_id = 'sinn3r_offer'
remote_browser_path = get_webrtc_browser_path
allow_remote_webcam(remote_browser_path)
@ -65,7 +65,7 @@ class Webcam
raise RuntimeError, "Unable to find a suitable browser to initialize a WebRTC session."
end
select(nil, nil, nil, 1)
#select(nil, nil, nil, 1)
connect_video_chat(offerer_id)
end

View File

@ -22,17 +22,17 @@ class Console::CommandDispatcher::Stdapi::Webcam
#
def commands
all = {
"chat_request" => "Start a video chat request",
"webcam_list" => "List webcams",
"webcam_snap" => "Take a snapshot from the specified webcam",
"webcam_stream" => "Play a video stream from the specified webcam",
"webcam_chat" => "Start a video chat",
"record_mic" => "Record audio from the default microphone for X seconds"
}
reqs = {
"chat_request" => [ "webcam_list" ],
"webcam_list" => [ "webcam_list" ],
"webcam_snap" => [ "webcam_start", "webcam_get_frame", "webcam_stop" ],
"webcam_stream" => [ "webcam_start", "webcam_get_frame", "webcam_stop" ],
"webcam_chat" => [ "webcam_list" ],
"record_mic" => [ "webcam_audio_record" ],
}
@ -131,7 +131,7 @@ class Console::CommandDispatcher::Stdapi::Webcam
end
end
def cmd_webcam_chat(*args)
def cmd_chat_request(*args)
wc_list = []
begin
wc_list << client.webcam.webcam_list
@ -144,8 +144,8 @@ class Console::CommandDispatcher::Stdapi::Webcam
end
begin
print_status("Initializing a video chat request...")
client.webcam.webcam_chat
print_status("Video chat request sent.")
client.webcam.chat_request
rescue RuntimeError => e
print_error(e.message)
end