hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Leonnetje
OK, what i wanna know is how i can add a registry-key to the register so that a program automatically runs @ startup.

And now i wanna know how to do this in DOS so the best way is probably to make a .bat-file and put the commands in there.

The registry-key to use should be (correct me if i'm wrong):
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

I've made a file called "file.reg" and put this inside:
CODE

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
   "whatever"="%SystemRoot%\system32\file.exe"


If that's already the problem, please correct me.....

The question only is: How can i made a correct bat-file which adds the key to the register so that the program running everytime the host starts up.

Tnx in advance smile.gif
DumpZ
The Command is :

regedit /s file.reg
Leonnetje
QUOTE (DumpZ @ Feb 29 2004, 12:30 PM)
The Command is :

regedit /s file.reg

I've tried that.... didn't seem to work ...

after i typed the regedit-command i type: "net start whatever" and then it says:
'the servicename is invalid'

** EDIT **

And when i look what processes are running on my machine, then it looks like regedit is 'hanging'
DumpZ
hmm that's strange cuz I never had any problems with that.
Maybe you Reg Key is wrong. Have u tried it on you own box?



Leonnetje
Nope, not yet.. working on that...
DumpZ
I always test my files on a test OS or something, because then i know if the should work or not.
usch
u can use a tool called "setit.exe" if u don`t find it with google,contact me i`ll send you.
u should use it like that:setit.exe urprogram.exe
it creates a reg entry in blabla\blabla\microsoft\windows\currentversion\run
Leonnetje
QUOTE (usch @ Feb 29 2004, 03:29 PM)
u can use a tool called "setit.exe" if u don`t find it with google,contact me i`ll send you.
u should use it like that:setit.exe urprogram.exe
it creates a reg entry in blabla\blabla\microsoft\windows\currentversion\run

Haven't found it yet.... what's the file-size ???

Maybe you can upload it ?? biggrin.gif
DumpZ
Yes indeed sounds like a nice tool, could i get a copy of that as well?
Leonnetje
I think i've got it.. wink.gif

Tnx anyway !!
DumpZ
thanks i'll try it
bmx
i will try that aswell thnx
FiNaLBeTa
QUOTE (Leonnetje @ Feb 29 2004, 12:42 PM)
QUOTE (DumpZ @ Feb 29 2004, 12:30 PM)
The Command is :

regedit /s file.reg

I've tried that.... didn't seem to work ...

after i typed the regedit-command i type: "net start whatever" and then it says:
'the servicename is invalid'

** EDIT **

And when i look what processes are running on my machine, then it looks like regedit is 'hanging'

y would net start work after you made that reg setting? tongue.gif
you never installed it as service.
rockerx
there is a very handy to use program called registry.exe
its syntax is
registry.exe svchost.exe path/to/file/to/be/added/program.exe

ive google a try to get the registry.exe



greez
rockerx
[eXPhase
QUOTE (Leonnetje @ Mar 1 2004, 08:36 PM)
I think i've got it.. wink.gif

Tnx anyway !!

This will be usefull sometimes

Thanx for providing it
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.