Page 1 of 1 1
Topic Options
#209888 - 2015-01-28 06:31 PM Java update hater
GAW Offline
Fresh Scripter

Registered: 2010-02-16
Posts: 20
Loc: Tennessee
Can someone tell me what I am missing from this simple code... I get no error message but no change either. On Win7 32bit with Java 7.71

$HKLMS='HKEY_LOCAL_MACHINE\SOFTWARE\'
;Disable Java Auto Update
$rc = WRITEVALUE($HKLMS + "JavaSoft\Java Update\Policy", "EnableJavaUpdate", "0", "REG_DWORD")
;


Edited by GAW (2015-01-28 06:33 PM)

Top
#209889 - 2015-01-28 07:42 PM Re: Java update hater [Re: GAW]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
As I see this HKLM, does the user have the proper permissions to write here?

also you can put @serror on the next line after the writevalue to get more info as to what is going on.

Top
#209890 - 2015-01-28 08:43 PM Re: Java update hater [Re: Allen]
GAW Offline
Fresh Scripter

Registered: 2010-02-16
Posts: 20
Loc: Tennessee
I tried @SERROR and @ERROR neither show any error.
I am testing with my admin account so permissions should not be a factor.

Top
#209891 - 2015-01-28 08:48 PM Re: Java update hater [Re: GAW]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
Are you sure your OS is 32bit. If it's 64bit, it will be writing to HKLM\Software\WOW6432NODE.
Top
#209892 - 2015-01-28 09:23 PM Re: Java update hater [Re: Allen]
GAW Offline
Fresh Scripter

Registered: 2010-02-16
Posts: 20
Loc: Tennessee
Yes, I am going into the registry to see if it changed...
Top
#209893 - 2015-01-28 10:14 PM Re: Java update hater [Re: GAW]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Your code worked successfully on my computer, as you posted it. All I added was the win64 regview setting. So it's not the code itself.

 Code:
$nul = setoption("WOW64AlternateRegView", "on")

$HKLMS='HKEY_LOCAL_MACHINE\SOFTWARE\'
;Disable Java Auto Update
$rc = WRITEVALUE($HKLMS + "JavaSoft\Java Update\Policy", "EnableJavaUpdate", "0", "REG_DWORD")

Top
#209894 - 2015-01-29 12:50 AM Re: Java update hater [Re: ShaneEP]
GAW Offline
Fresh Scripter

Registered: 2010-02-16
Posts: 20
Loc: Tennessee
Thanks for the Validation on the code.
If I use @ERROR it does say "The operation Completed Successfully.0"
So I know it is running the code,but when I go in and look at the registry after running it is still set to 1.
I can manually change it on the PC no problems...

Top
#209895 - 2015-01-29 03:51 AM Re: Java update hater [Re: GAW]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Like said before, you are changing it elsewhere. Check under syswow32 registry and most likely it's changed there
_________________________
!

download KiXnet

Top
#209897 - 2015-01-30 09:32 PM Re: Java update hater [Re: Lonkero]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Java... The Devil rears it's ugly head. Was #1 method of helping to allow computers get infected. Now Adobe Flash appears to be #1

Code for both gets compromised frequently and they run with System rights....

Top
#209899 - 2015-01-31 03:03 AM Re: Java update hater [Re: NTDOC]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
System rights? Ref please
_________________________
!

download KiXnet

Top
#209900 - 2015-02-02 07:05 AM Re: Java update hater [Re: Lonkero]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Correct Lonk (not under system) - often it is the user that is running under admin rights and when compromised code is run it too gains those rights.
Top
Page 1 of 1 1


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

Who's Online
0 registered and 1183 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.037 seconds in which 0.015 seconds were spent on a total of 13 queries. Zlib compression enabled.

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