Skip to content

Commit

Permalink
Fix things based on Tod's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
wchen-r7 committed Feb 13, 2014
1 parent 750ce3c commit a44f235
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion lib/rex/post/meterpreter/extensions/stdapi/webcam/webcam.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ def webcam_stop
true
end

#
# Starts a webcam session with a remote user via WebRTC
#
# @param server [String] A server to use for the channel.
# @return void
#
def webcam_chat(server)
offerer_id = Rex::Text.rand_text_alphanumeric(10)
channel = Rex::Text.rand_text_alphanumeric(20)
Expand Down Expand Up @@ -136,7 +142,7 @@ def get_webrtc_browser_path

#
# Creates a video chat session as an offerer... involuntarily :-p
# Winodws targets only.
# Windows targets only.
#
# @param remote_browser_path [String] A browser path that supports WebRTC on the target machine
# @param offerer_id [String] A ID that the answerer can look for and join
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def cmd_webcam_snap(*args)

def cmd_webcam_chat(*args)
if client.webcam.webcam_list.length == 0
print_error("Target does not have a webam")
print_error("Target does not have a webcam")
return
end

Expand All @@ -158,7 +158,7 @@ def cmd_webcam_chat(*args)


begin
print_status("Video chat session initialized.")
print_status("Webcam chat session initialized.")
client.webcam.webcam_chat(server)
rescue RuntimeError => e
print_error(e.message)
Expand Down

0 comments on commit a44f235

Please sign in to comment.