Multi Manage YouTube Broadcast - Metasploit


This page contains detailed information about how to use the post/multi/manage/play_youtube metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.

Module Overview


Name: Multi Manage YouTube Broadcast
Module: post/multi/manage/play_youtube
Source code: modules/post/multi/manage/play_youtube.rb
Disclosure date: -
Last modification time: 2021-10-06 13:43:31 +0000
Supported architecture(s): -
Supported platform(s): Android, Linux, OSX, Unix, Windows
Target service / protocol: -
Target network port(s): -
List of CVEs: -

This module will broadcast a YouTube video on specified compromised systems. It will play the video in the target machine's native browser. The VID datastore option is the "v" parameter in a YouTube video's URL. Enabling the EMBED option will play the video in full screen mode through a clean interface but is not compatible with all videos. This module will create a custom profile for Firefox on Linux systems in the /tmp directory.

Module Ranking and Traits


Module Ranking:

  • normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.

Side Effects:

  • artifacts-on-disk: Modules leaves a payload or a dropper on the target machine.
  • audio-effects: Module may cause a noise (Examples: audio output from the speakers or hardware beeps).
  • screen-effects: Module may show something on the screen (Example: a window pops up).

Basic Usage


There are two ways to execute this post module.

From the Meterpreter prompt

The first is by using the "run" command at the Meterpreter prompt. It allows you to run the post module against that specific session:

meterpreter > run post/multi/manage/play_youtube

From the msf prompt

The second is by using the "use" command at the msf prompt. You will have to figure out which session ID to set manually. To list all session IDs, you can use the "sessions" command.

msf > use post/multi/manage/play_youtube
msf post(play_youtube) > show options
    ... show and set options ...
msf post(play_youtube) > set SESSION session-id
msf post(play_youtube) > exploit

If you wish to run the post against all sessions from framework, here is how:

1 - Create the following resource script:


framework.sessions.each_pair do |sid, session|
  run_single("use post/multi/manage/play_youtube")
  run_single("set SESSION #{sid}")
  run_single("run")
end

2 - At the msf prompt, execute the above resource script:

msf > resource path-to-resource-script

Required Options


  • SESSION: The session to run this module on.

Knowledge Base


play_youtube allows you to open and start playing a YouTube video on a compromised host.

Important Options


EMBED

Whether or not to use the /embed YouTube URL. The embeded version provides a clean interface and will start playing in fullscreen but is not compatible with all YouTube videos, for example Rick Astley - Never Gonna Give You Up (VID: dQw4w9WgXcQ) is not compatible.

While the non-embeded version has greater compatibility, there is a chance that an advertisement may be played before the video. It is recommended to use the embeded version when the video is compatible.

VID

The video's identifier on YouTube. This is the v parameter of the URL.

See Also


  • Meterpreter's uictl command in the stdapi extension for enabling and disabling the mouse and keyboard.

Go back to menu.

Msfconsole Usage


Here is how the multi/manage/play_youtube post exploitation module looks in the msfconsole:

msf6 > use post/multi/manage/play_youtube

msf6 post(multi/manage/play_youtube) > show info

       Name: Multi Manage YouTube Broadcast
     Module: post/multi/manage/play_youtube
   Platform: Windows, OSX, Linux, Android, Unix
       Arch: 
       Rank: Normal

Provided by:
  sinn3r <[email protected]>

Module side effects:
 artifacts-on-disk
 audio-effects
 screen-effects

Compatible session types:
  Meterpreter
  Shell

Basic options:
  Name     Current Setting  Required  Description
  ----     ---------------  --------  -----------
  EMBED    true             yes       Use the embed version of the YouTube URL
  SESSION                   yes       The session to run this module on.
  VID      kxopViU98Xo      yes       The video ID to the YouTube video

Description:
  This module will broadcast a YouTube video on specified compromised 
  systems. It will play the video in the target machine's native 
  browser. The VID datastore option is the "v" parameter in a YouTube 
  video's URL. Enabling the EMBED option will play the video in full 
  screen mode through a clean interface but is not compatible with all 
  videos. This module will create a custom profile for Firefox on 
  Linux systems in the /tmp directory.

Module Options


This is a complete list of options available in the multi/manage/play_youtube post exploitation module:

msf6 post(multi/manage/play_youtube) > show options

Module options (post/multi/manage/play_youtube):

   Name     Current Setting  Required  Description
   ----     ---------------  --------  -----------
   EMBED    true             yes       Use the embed version of the YouTube URL
   SESSION                   yes       The session to run this module on.
   VID      kxopViU98Xo      yes       The video ID to the YouTube video

Advanced Options


Here is a complete list of advanced options supported by the multi/manage/play_youtube post exploitation module:

msf6 post(multi/manage/play_youtube) > show advanced

Module advanced options (post/multi/manage/play_youtube):

   Name       Current Setting  Required  Description
   ----       ---------------  --------  -----------
   VERBOSE    false            no        Enable detailed status messages
   WORKSPACE                   no        Specify the workspace for this module

Post Actions


This is a list of all post exploitation actions which the multi/manage/play_youtube module can do:

msf6 post(multi/manage/play_youtube) > show actions

Post actions:

   Name  Description
   ----  -----------

Evasion Options


Here is the full list of possible evasion options supported by the multi/manage/play_youtube post exploitation module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 post(multi/manage/play_youtube) > show evasion

Module evasion options:

   Name  Current Setting  Required  Description
   ----  ---------------  --------  -----------

Go back to menu.

Error Messages


This module may fail with the following error messages:

Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.

<PEER> - Unable to start the video


Here is a relevant code snippet related to the "<PEER> - Unable to start the video" error message:

150:	    id = datastore['VID']
151:	
152:	    print_status("#{peer} - Spawning video...")
153:	    if start_video(id)
154:	      print_good("#{peer} - The video has started")
155:	    else
156:	      print_error("#{peer} - Unable to start the video")
157:	      return
158:	    end
159:	  end
160:	end

Go back to menu.


See Also


Check also the following modules related to this module:

Authors


  • sinn3r

Version


This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.

Go back to menu.