AutoHotkey Community

It is currently May 27th, 2012, 8:32 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: April 7th, 2006, 9:30 pm 
Offline

Joined: September 28th, 2005, 2:10 pm
Posts: 39
Location: Pirot
Some people are suspicious of the 'UserAssist' entries in the registry, mostly because they are encrypted. Here's a small script that will decrypt those entries:
Code:
;;Author: Kostic Dejan
;;Date: 07.04.2006

Gui, Add, ListView, vLst w700 h500 altsubmit, Path|Name|Data
 Loop,HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\count
  {
   RegRead, rval
   LV_Add("","{5E6AB780-7743-11CF-A12B-00AA004AE837}",a_loopregname,rval)
  }
 Loop,HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\count
  {
   RegRead, rsv
   LV_Add("","{75048700-EF1F-11D0-9888-006097DEACF9}",a_loopregname,rsv)
  }
Gui,add,button,gdec,&Decrypt
Gui, Show
LV_ModifyCol(1,"100")
LV_ModifyCol(2,"485")
LV_ModifyCol(3,"100")
return

dec:
SetBatchLines,-1
LV_Delete()
SplashImage,,b1 c1,,Decrypting`nPlease wait...
 Loop,HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\count
  {
   RegRead, rval
   d2:=StringMod(a_loopregname,26-13)
   LV_Add("","{5E6AB780-7743-11CF-A12B-00AA004AE837}",d2,rval)
  }
 Loop,HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\count
  {
   RegRead, rsv
   d3:=StringMod(a_loopregname,26-13)
   LV_Add("","{75048700-EF1F-11D0-9888-006097DEACF9}",d3,rsv)
  }
SplashImage,off
return

StringMod(_string, _chars="")     ;made by PhiLho, adapted by me
 {
   Loop Parse, _string
   {
         char := Asc(A_LoopField)
         o := Asc("A") * (Asc("A") <= char && char <= Asc("Z")) + Asc("a") * (Asc("a") <= char && char <= Asc("z"))
         If (o > 0)
         {
            char := Mod(char - o + _chars, 26)
            char := Chr(char + o)
         }
         Else
         {
            char := A_LoopField
         }
         rStr := rStr char
      }
   Return rStr
}

GuiClose:
ExitApp

Improvements are always welcome.


Last edited by dinkosta on April 8th, 2006, 12:08 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 7th, 2006, 10:22 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
Cool! Now I see them decrypted..., but what do they mean? In what order? Could you give us a pointer, where these are explained?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 7th, 2006, 11:39 pm 
Offline

Joined: September 28th, 2005, 2:10 pm
Posts: 39
Location: Pirot
Well, here are two links that deal with those entries:
http://www.utdallas.edu/~jeremy.bryan.smith/articles/explorer_spy.html and http://personal-computer-tutor.com/abc3/v29/vic29.htm.
I'm no expert about these things, but I saw some articles and posts talking about those entries so I thought it would be nice to have them decrypted.
The decrypted entries appear inside the ListView in a different order compared to their order inside the registry, but I don't know why.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 8th, 2006, 2:53 am 
The links are very helpful, thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 8th, 2006, 4:36 pm 
Offline

Joined: November 8th, 2004, 12:46 am
Posts: 1271
dinkosta wrote:
The decrypted entries appear inside the ListView in a different order compared to their order inside the registry, but I don't know why.


This might be in part due to the way registry loops work:

Quote:
The values and subkeys are retrieved in reverse order (bottom to top) so that RegDelete can be used inside the loop without disrupting the loop.


Perhaps your script could include the options to delete the count keys (Windows recreates these at startup), and also toggle/turn off logging and ROT13 encryption:

Code:
; Microsoft Internet Toolbar
regdelete, HKCU
, Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\count

; ActiveDesktop
regdelete, HKCU
, Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\count

; Disable logging and encryption
regwrite, REG_DWORD, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\Settings, NoLog, 1
regwrite, REG_DWORD, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\Settings, NoEncrypt, 1

_________________
"Anything worth doing is worth doing slowly." - Mae West
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 8th, 2006, 9:09 pm 
Offline

Joined: September 28th, 2005, 2:10 pm
Posts: 39
Location: Pirot
Thank you for your feedback, robiandi and Serenity.
@Serenity
That are nice suggestions, thanks.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 18th, 2006, 3:49 am 
The value... how do we decode the value?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 25th, 2007, 5:38 pm 
I don't do scripting, so I can't say why, but the script gives an error here:

Path: <path>\UserAssist.js
Line: 2
Char: 18
Error: Expected ';'
Code: 800A03EC
Source: Microsoft JScript compilation error

I used the "Copy" link here and pasted into Notepad with a .js extension.
I also tried the .vbs and .wsf extensions and they gave errors also.

What type of script (what extension) is this supposed to be saved as. I realise the regulars here would know this, but as this forum is easily available through a web search, it would be helpful if you gave such elementary details. :-)

...glen


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 26th, 2007, 12:24 pm 
In case your still trying to run it with wscript, its an ahk script.
See the homepage.
:lol:


Report this post
Top
  
Reply with quote  
 Post subject: Encryption
PostPosted: December 13th, 2007, 1:13 am 
[For Those who want to know]
ROT13, the encrypting sequence Windows uses. Is the most basic type, you simply change each letter to the one 13 ahead in the alphabet (looping around if necessary).
so, ROT13 in ROT13 (Not counting the numbers) Would be EBG13.
------------------------------------------------------------------------------
Image
-Wikipedia Article
-Online ROT13 Translator


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2010, 3:16 pm 
Still... how do u decode value? Whats the value data? What does it stand for?


Report this post
Top
  
Reply with quote  
 Post subject: Hex Values
PostPosted: March 25th, 2011, 11:37 pm 
Anonymous wrote:
Still... how do u decode value? Whats the value data? What does it stand for?


The value data is HEX so you just need to convert to DEC for numbers and to BIN for ASCII characters.

This program makes it for you: http://www.nirsoft.net/utils/userassist_view.html


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 25th, 2011, 11:40 pm 
Or just use the HEX to convert to ASCII. :roll:


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: AndyJenk, Aravind, hyper_, xXDarknessXx, Yahoo [Bot] and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group