Page 2 of 2 <12
Topic Options
#208925 - 2014-05-16 08:31 PM Re: Dropbox Status [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Here is a screenshot of what I get on the XP machine.

Attachments
327.png
Description:



Top
#208926 - 2014-05-16 08:41 PM Re: Dropbox Status [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, it is completely doable. now just need to write that to a file or something and catch an update by the dropbox tool.
_________________________
!

download KiXnet

Top
#208927 - 2014-05-16 08:42 PM Re: Dropbox Status [Re: ShaneEP]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Here is the reg key exported from the XP machine (binary).

Attachments
IconStreams.zip (280 downloads)
Description:



Top
#208928 - 2014-05-16 08:44 PM Re: Dropbox Status [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I can see the "mangled results" on windows 7.
hmm....
_________________________
!

download KiXnet

Top
#208929 - 2014-05-16 08:47 PM Re: Dropbox Status [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Yeah, they're like that on Win 8 too. Not sure why they made it more cryptic.
Top
#208930 - 2014-05-16 08:48 PM Re: Dropbox Status [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
give me a second...
_________________________
!

download KiXnet

Top
#208931 - 2014-05-16 08:53 PM Re: Dropbox Status [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
 Code:
$regVal = readvalue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer TrayNotify","IconStreams") + readvalue("HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify","IconStreams")

messagebox(RegBinaryToString($regval),"",0)
get $

function RegBinaryToString($values)
   $strInfo = ""
   for $i=1 to Len($values) step 2
      $value = SubStr($values,$i,2)
      if $value<>0
         $strInfo=$strInfo + rot13(chr(Val("&"+$value)))
      endif
   next  
   $RegBinaryToString=$strInfo
EndFunction

;Function	Rot13()
;
;Author		AJH (Andrew Hayes)
;
;Action		Rot13 is an encryption method based on a Ceaser Cypher.
;		Text is encrypted by shifting it half the alphabet forwards
;		or backwards (dependant on which half of the alphabet it
;		is in). This means that the same Rot13 operation is used
;		to encrypt and decrypt the text.
;
;Syntax		$text = Rot13(<String> | <String Array>)
;
;Parameters 	One parameter, either a string or a string array.
;
;Remarks	Guvf vf n dhvpx ohg vafrpher grpuavdhr gung vf znvayl hfrq
;		gb uvqr uvagf be fcbvyref va grkg cbfgrq gb zrffntr obneqf
;		fb gubfr jub qb abg jnag gb ernq gurz pna nibvq qbvat fb.
;
;Returns	Encrypted / Decrypted String or String array.
;
;Requires 	Kixtart 4.10+
;
;Example(s)	$murderer = Rot13("Gur Ohgyre qvq vg!")
;
;Source
FUNCTION Rot13($s)
DIM $i,$c, $o,$u
$o=SetOption("CaseSensitivity","Off")
$u = (Ubound($s) >=0)
IF $u  $s=Join($s,@CRLF)  ENDIF
FOR $i = 1 TO Len($s)
  $c = Substr($s,$i,1)
  SELECT
    CASE $c >= 'a' AND $c <= 'm'
      $c = Chr(Asc($c)+13)
    CASE $c >= 'n' AND $c <= 'z'
      $c = Chr(Asc($c)-13)
  ENDSELECT
  $Rot13 = $Rot13+$c
NEXT
IF $u  $Rot13 = Split($Rot13,@CRLF)  ENDIF
$o=SetOption("CaseSensitivity",$o)
ENDFUNCTION


now remember, this is completely unnecessary.
what you actually want is to catch those dropbox messages and see what kind of bytes we are looking at.
and then the 15 second execution drops to 1ms!
_________________________
!

download KiXnet

Top
#208932 - 2014-05-16 09:01 PM Re: Dropbox Status [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Haha I was just about to post about the ROT13 conversion, but you beat me to it!

So need some way to do the conversion into text and do a side by side comparison to figure out which bits are the ones that represent the dropbox message?

Top
#208933 - 2014-05-16 09:28 PM Re: Dropbox Status [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
$string=readvalue()
$=writeprofilestring("differs.txt","compare me","original",$string)
$=writeprofilestring("differs.txt","compare me","converted",RegBinaryToString($regval))
$=writeprofilestring("differs.txt","compare me","decyphered",Rot13RegBinaryToString($regval))

and you might want to remove:
if $value<>0

as we would want the whole string.

I found this technical documentation>
 Quote:

The notification settings for the task tray are stored in the registry at HKCUSoftwareClassesLocal SettingsMicrosoftWindowsCurrentVersionTrayNotify in the IconStreams value as a binary registry key. Luckly for us, the organization of the key is not nearly as hard to understand as the Favorites Bar. The binary stream begins with a 20 byte header followed by X number of 1640 byte items where X is the number of items that have notification settings. Each 1640 byte block is comprised of at least (one of the sections is not fully decoded so it may be made up of 2 or more sections) 5 fixed byte width sections as follows:

528 bytes – Path to the executable
4 bytes – Notification visibility setting
512 bytes – Last visible tooltip
592 bytes - Unknown (Seems to have a second tool-tip embeded in it but the starting position in the block changes)
4 bytes – ID?


from http://xtremeconsulting.com/blog/windows...ry-rabbit-hole/

anyways, in the end, you want to look for cypher text version of dropbox.exe or wtf ever it is called since nobody cares to actually post this info.

once found, read about 1kbytes and you have your status message.
_________________________
!

download KiXnet

Top
#208934 - 2014-05-16 09:34 PM Re: Dropbox Status [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
I finally actually installed dropbox to see how it happens.

Ran into another problem. That registry data does not seem to update on the fly. Did a RegShot with dropbox up to date, and then ran another when it was syncing files. It did not find any difference.

In fact Dropbox didnt even show up in the decyphered registry value until after I rebooted.

So all of this may be useless. Of course it may update differently on newer OS's. But I only have XP here.

But as far as what it displays, it will either say...
"Dropbox 2.6.33
Up to date" or it will say something like...
"Dropbox 2.6.33
Downloading x files (x,xxx KB/sec, x mins left)"

Top
#208935 - 2014-05-16 09:55 PM Re: Dropbox Status [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
does drop box keep the message visible as a balloon or is it just showing as you hover over it?
_________________________
!

download KiXnet

Top
#208936 - 2014-05-16 10:01 PM Re: Dropbox Status [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4562
Loc: USA
Thanks for the effort so far guys...

It does a little of both. A balloon appears when files are added or deleted. When it is synching there is no balloon, unless you put your mouse over it.

It's like Dropbox purposely makes this information hard to get. When I made the UDF to get the dropbox folder path, it was ridiculous what I had to do... http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=204938#Post204938

Top
Page 2 of 2 <12


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 739 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.154 seconds in which 0.107 seconds were spent on a total of 16 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org