473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

script to read the Registry in Win32?

This location has a parasite checker using javascript. It is in a js file called parasite.js. It is freely available.

http://www.doxdesk.com/parasite/

He\She is the only one I trust on the Net who has such a thing. But their js I believe cannot detect
coolwebsearch parasites which are the most common such parasites on the Net today.

So I'd like to incorporate a check for those parasites in the js.

Any suggestions on how this can be done?

There is also the Netsky parasite variants. I believe this site suggests how they may be found inspecting the
registry:

http://www.us-cert.gov/cas/techalerts/TA04-028A.html

If I could read the registry value of this location:

[HKEY_CLASSES_ROOT\CLSID\{E6FB5E20-DE35-11CF-9C87-00AA005127ED}\InProcServer32]

and pull out the value there for the (default) key I could determine if Netsky is likely installed on that user's machine.
So can we read the registry using JavaScript say in this case too? Thanks.

--
George Hester
__________________________________
Jul 23 '05 #1
6 5531
"George Hester" <he********@hotmail.com> wrote:
This location has a parasite checker using javascript. It is in a js file called parasite.js. It is freely available.

http://www.doxdesk.com/parasite/

He\She is the only one I trust on the Net who has such a thing. But their js I believe cannot detect
coolwebsearch parasites which are the most common such parasites on the Net today.

So I'd like to incorporate a check for those parasites in the js.

Any suggestions on how this can be done?

There is also the Netsky parasite variants. I believe this site suggests how they may be found inspecting the
registry:

http://www.us-cert.gov/cas/techalerts/TA04-028A.html

If I could read the registry value of this location:

[HKEY_CLASSES_ROOT\CLSID\{E6FB5E20-DE35-11CF-9C87-00AA005127ED}\InProcServer32]

and pull out the value there for the (default) key I could determine if Netsky is likely installed on that user's machine.
So can we read the registry using JavaScript say in this case too? Thanks.


Use the System Registry Provider for WMI to access the registry
<URL:
http://msdn.microsoft.com/library/en...m_registry.asp
/>

Regards,
Steve
Jul 23 '05 #2
OK I will look at that. Did I misunderatnd that the js file that I provided the link to at the top of the op was reading the registry? Thanks.

--
George Hester
__________________________________
"Steve van Dongen" <st*****@hotmail.com> wrote in message news:ub********************************@4ax.com...
"George Hester" <he********@hotmail.com> wrote:
This location has a parasite checker using javascript. It is in a js file called parasite.js. It is freely available.

http://www.doxdesk.com/parasite/

He\She is the only one I trust on the Net who has such a thing. But their js I believe cannot detect
coolwebsearch parasites which are the most common such parasites on the Net today.

So I'd like to incorporate a check for those parasites in the js.

Any suggestions on how this can be done?

There is also the Netsky parasite variants. I believe this site suggests how they may be found inspecting the
registry:

http://www.us-cert.gov/cas/techalerts/TA04-028A.html

If I could read the registry value of this location:

[HKEY_CLASSES_ROOT\CLSID\{E6FB5E20-DE35-11CF-9C87-00AA005127ED}\InProcServer32]

and pull out the value there for the (default) key I could determine if Netsky is likely installed on that user's machine.
So can we read the registry using JavaScript say in this case too? Thanks.


Use the System Registry Provider for WMI to access the registry
<URL:
http://msdn.microsoft.com/library/en...m_registry.asp
/>

Regards,
Steve

Jul 23 '05 #3
George Hester wrote:
OK I will look at that. Did I misunderatnd that the js
file that I provided the link to at the top of the op
was reading the registry? Thanks.


www.doxdesk.com could not be found. Please check the name and try again
is what it tells me.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 23 '05 #4
George Hester wrote:
OK I will look at that. Did I misunderatnd that the js file that I provided the link to at the top of the op was reading the registry? Thanks.

--
George Hester


Javascript loaded into the user agent in the default security environment can not read the Registry. Full stop. Do not pass go. Do not collect $200.

That site <url: http://www.doxdesk.com/parasite/ />) "checks the Registry" by attempting to construct <object> tags using classid="" attribute
values of known malware. It calls "new ActiveXObject()" when it does not have a CLSID for the malware control.

It then checks the state of those generated <object> tags and constructed ActiveXObjects() to determine if they were successfully created.

I can duplicate the "trick" and "read your Registry" to tell you if you have the Adobe Acrobat ActiveX object installed too:

<script type="text/javascript">
testForAdobeAcrobat();
function testForAdobeAcrobat() {
document.write(
'<object id="A"' +
' classid="CLSID:CA8A9780-280D-11CF-A24D-444553540000">' +
'</object>'
);
var a = document.all['A'];
if (a && a.readyState != 0) {
alert('Your Registry was read and you have the Adobe Acrobat ActiveX control installed.');
} else {
alert('Your Registry was read and you do not have the Adobe Acrobat ActiveX control installed.');
}
}
</script>

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #5
Wow works OK here:

http://www.doxdesk.com/parasite/

Remember it loads a js file 2 in fact. One called parasite.js this is the link for that:

http://www.doxdesk.com/file/software/js/parasite.js

and another called report.js which is here:

http://www.doxdesk.com/script/report.js

If you do a whois search you ought to find it is a legitimate site.
Maybe it was just down when you tried.

--
George Hester
__________________________________
"Randy Webb" <hi************@aol.com> wrote in message news:Xf********************@comcast.com...
George Hester wrote:
OK I will look at that. Did I misunderatnd that the js
file that I provided the link to at the top of the op
was reading the registry? Thanks.


www.doxdesk.com could not be found. Please check the name and try again
is what it tells me.



--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 23 '05 #6
Ah thanks Grant.

--
George Hester
__________________________________
"Grant Wagner" <gw*****@agricoreunited.com> wrote in message news:40***************@agricoreunited.com...
George Hester wrote:
OK I will look at that. Did I misunderatnd that the js file that I provided the link to at the top of the op was reading the registry? Thanks.

--
George Hester


Javascript loaded into the user agent in the default security environment can not read the Registry. Full stop. Do not pass go. Do not collect $200.



That site <url: http://www.doxdesk.com/parasite/ />) "checks the Registry" by attempting to construct <object> tags using classid="" attribute
values of known malware. It calls "new ActiveXObject()" when it does not have a CLSID for the malware control.

It then checks the state of those generated <object> tags and constructed ActiveXObjects() to determine if they were successfully created.

I can duplicate the "trick" and "read your Registry" to tell you if you have the Adobe Acrobat ActiveX object installed too:

<script type="text/javascript">
testForAdobeAcrobat();
function testForAdobeAcrobat() {
document.write(
'<object id="A"' +
' classid="CLSID:CA8A9780-280D-11CF-A24D-444553540000">' +
'</object>'
);
var a = document.all['A'];
if (a && a.readyState != 0) {
alert('Your Registry was read and you have the Adobe Acrobat ActiveX control installed.');
} else {
alert('Your Registry was read and you do not have the Adobe Acrobat ActiveX control installed.');
}
}
</script>

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: brharsh17 | last post by:
I'm accessing the registry to get the value of the LASTACTIVESYNCTIME stored in bytes I'm trying to use the following code below to achive this but I'm running into System.InvalidCastException....
2
by: Dan Sikorsky | last post by:
Should application data be read and written to the Registry to persist state, or should the App.config file be used? If the Registry should be used, what .NET class reads and writes the...
1
by: Wm. Scott Miller | last post by:
I have a Custom DTS Task for SQL Server and I've got it working fine, except for when I try to access its properties from an ActiveX script. I have added a new property called Length and a method...
3
by: Washington | last post by:
In my application I have following part of code: using System; using Microsoft.Win32; using System.Diagnostics; .... RegistryKey key =...
3
by: Slimo | last post by:
Hello, I'm searching some example of code (VB) for reading remote registry subkeys and keys. Thanks
4
by: akhare1 | last post by:
OK, before I start, let me clarify a few things here. This is not the run of the mill failure to read a registry key while trying to write to the Event Log. Here's our setup: a) IIS 6.0...
2
by: Richard Thornley | last post by:
Hello, I am working on a VB.Net application and I am getting an error ONLY on the main computer that uses the application. The main computer is on the other coast so of course it would be the...
1
by: Mr. Roboto | last post by:
I need PyWin under the covers, that is, to install it as part of an application, but in such a way that it isn't visible to users. I'm concerned about a so-called "power-user", seeing the Python...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.