Go Back   BWHacks > General > Hardware and Software

Hardware and Software Talk about or get help with programs, computers, and other related topics.

Reply
 
LinkBack Thread Tools

Old 10-13-2008, 01:07 AM   #1 (permalink)
Eppie
No abbr. allowed.

High Priest
 
Eppie's Avatar
 
Join Date: Nov 2005
Location: I live everywhere at once. Like God.
Posts: 1,880
Eppie is a jewel in the rough
Default Registry Write

I want to have an exe that writes itself into the startup. It will be located in the root of the G: drive. What key do I need to write to the registry to make this happen?

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Test", "TestKey", "REG_SZ", "Hello this is a test")

That is an example given in the AutoIt help file, for syntax reference.
__________________
Eppie 15 0|\|11|\|3 |\|0\/\/   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links


Old 10-13-2008, 01:19 AM   #2 (permalink)
Mr.Lampy
Name's Lampy, Mr.Lampy
Senior Member
Moderator
Gold Member

Saint
 
Mr.Lampy's Avatar
 
Join Date: Aug 2004
Location: NO U
Posts: 5,846
Mr.Lampy has disabled reputation
Send a message via AIM to Mr.Lampy Send a message via MSN to Mr.Lampy Send a message via Yahoo to Mr.Lampy
Default

How to Remove Startup Programs | O'Reilly Media
after reading that you should understand how to make them run at startup :p
__________________



www.ohhaithar.com

Mr.Lampy 15 0FF11|\|3   Reply With Quote

Old 10-13-2008, 01:30 AM   #3 (permalink)
Shimano

Advocate
 
Shimano's Avatar
 
Join Date: Jan 2007
Location: Boise, ID
Posts: 258
Shimano is on a distinguished road
Send a message via MSN to Shimano
Default

Also check rohitab.com - Feed Your Brain they have lots of source codes that show how to do this.
__________________

Shimano 15 0FF11|\|3   Reply With Quote

Old 10-13-2008, 01:33 AM   #4 (permalink)
Eppie
No abbr. allowed.

High Priest
 
Eppie's Avatar
 
Join Date: Nov 2005
Location: I live everywhere at once. Like God.
Posts: 1,880
Eppie is a jewel in the rough
Default

So then it would be:?

RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Wi ndows\CurrentVersion\Run", "SCREWUPURCOMP", "REG_SZ", "G:\screwup.exe")
__________________
Eppie 15 0|\|11|\|3 |\|0\/\/   Reply With Quote

Old 10-13-2008, 03:50 AM   #5 (permalink)
Avalon[FR]
Posting disabled

Deviant
 
Avalon[FR]'s Avatar
 
Join Date: Jul 2008
Location: Harrisonburg, VA
Posts: 127
Avalon[FR] is on a distinguished road
Send a message via AIM to Avalon[FR] Send a message via MSN to Avalon[FR]
Default

off topic but Shimano:what an excellent website
__________________
TF2 = Boot-Record[FR]
PvKii = Boot-Record[FR]
BW@US-east = l_Ol_
BW@US-west = l[ActiOn]l
BW@Europe = l[ActiOn]l
Avalon[FR] 15 0FF11|\|3   Reply With Quote

Old 10-13-2008, 03:51 AM   #6 (permalink)
Eppie
No abbr. allowed.

High Priest
 
Eppie's Avatar
 
Join Date: Nov 2005
Location: I live everywhere at once. Like God.
Posts: 1,880
Eppie is a jewel in the rough
Default

So then it would be:?

RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Wi ndows\CurrentVersion\Run", "SCREWUPURCOMP", "REG_SZ", "G:\screwup.exe")
__________________
Eppie 15 0|\|11|\|3 |\|0\/\/   Reply With Quote

Old 10-13-2008, 07:24 AM   #7 (permalink)
ViperSRT3g

Zealot
 
ViperSRT3g's Avatar
 
Join Date: Feb 2006
Location: Jacksonville, NC
Posts: 797
ViperSRT3g has a spectacular aura about
Send a message via AIM to ViperSRT3g Send a message via MSN to ViperSRT3g Send a message via Skype™ to ViperSRT3g
Default

Depending upon what language you are using, this will require using a Windows API.By default, Visual Basic 6 can write to the registry without needing any APIs. But that is only to a certain place in the Registry. In order to write to anywhere else in the registry, you need APIs. Don't know how the other languages write to the registry since I don't code in anything else that I've had to use to write to the registry.
ViperSRT3g 15 0FF11|\|3   Reply With Quote

Old 10-13-2008, 09:14 AM   #8 (permalink)
hypn
inactive
Gold Member

Disciple
 
hypn's Avatar
 
Join Date: Sep 2005
Location: South Africa
Posts: 510
hypn has disabled reputation
Default

If you just want it to run for the user who's currently logged in, use this:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Run]


If you want it to run for anyone using the computer, use this:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Run]

And your "RegWrite" looks right to me...
__________________
http://www.hypn.za.net
hypn 15 0FF11|\|3   Reply With Quote

Old 10-13-2008, 10:21 AM   #9 (permalink)
el-camino-ss
Senior Member

Inquisitor
 
el-camino-ss's Avatar
 
Join Date: Jun 2004
Location: Chico
Posts: 4,994
el-camino-ss is a name known to allel-camino-ss is a name known to allel-camino-ss is a name known to allel-camino-ss is a name known to allel-camino-ss is a name known to all
Send a message via AIM to el-camino-ss Send a message via MSN to el-camino-ss Send a message via Skype™ to el-camino-ss
Default

trying to make a virus are we?
__________________

Quote:
TuckerApc (8:29:55 PM): so if I have to be there at 10am, I'll get up at 6
TuckerApc (8:30:01 PM): give myself some time to take a ****
el-camino-ss 15 0FF11|\|3   Reply With Quote

Old 10-16-2008, 09:28 PM   #10 (permalink)
Eppie
No abbr. allowed.

High Priest
 
Eppie's Avatar
 
Join Date: Nov 2005
Location: I live everywhere at once. Like God.
Posts: 1,880
Eppie is a jewel in the rough
Default

Sort of. Just something to screw up people at school.
EDIT: Woot, it seems to be working.
__________________

Last edited by Eppie : 10-16-2008 at 09:44 PM.
Eppie 15 0|\|11|\|3 |\|0\/\/   Reply With Quote

Old 10-19-2008, 03:42 AM   #11 (permalink)
DarthSlyGuy

Anti-24kazukin
Senior Member
Gold Member
Moderator

Blessed
 
DarthSlyGuy's Avatar
 
Join Date: May 2004
Location: Nar Shadda, Korriban
Posts: 2,479
DarthSlyGuy is a splendid one to beholdDarthSlyGuy is a splendid one to beholdDarthSlyGuy is a splendid one to beholdDarthSlyGuy is a splendid one to beholdDarthSlyGuy is a splendid one to beholdDarthSlyGuy is a splendid one to behold
Send a message via ICQ to DarthSlyGuy Send a message via MSN to DarthSlyGuy Send a message via Yahoo to DarthSlyGuy
Default

If you are going to write a virus or something like that its best to attach/infect/inject or at least it name it like something that has to be running for windows to operate. That way your average school IT manager won't have a clue how to fix it. I would go with svchost.exe if you are going to do it the nub way and just name it something. If you can, make it as indistinguishable from the real thing as possible.
__________________

DarthSlyGuy 15 0FF11|\|3   Reply With Quote

Old 10-19-2008, 03:56 AM   #12 (permalink)
Eppie
No abbr. allowed.

High Priest
 
Eppie's Avatar
 
Join Date: Nov 2005
Location: I live everywhere at once. Like God.
Posts: 1,880
Eppie is a jewel in the rough
Default

I don't want to do anything malicious to my school that would get me in trouble. I found out that writing to the registry on school computers is disabled anyway.
__________________
Eppie 15 0|\|11|\|3 |\|0\/\/   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[C++/CLI] Registry Configurator Class Dyndrilliac Programming 0 02-08-2008 04:56 AM
bootable registry editor kds Hardware and Software 3 03-02-2007 12:57 PM
cd key help ChiTownHustler Starcraft Hacking Related 22 12-05-2005 08:24 AM
What to write in Timer offset... LockesRabb Programming 2 06-20-2005 04:12 AM


All times are GMT. The time now is 12:03 AM.


vBulletin style developed by Transverse Styles

Powered by vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
Copyright © 2004-2008 BWHacksAd Management by RedTyger