Sunday, October 22, 2006

Enable Windows Serive

I was pentesting a Win2003 on my VM, and telnet had been disabled. So I thought I have to write a vbscript to enable, but it seems too much work compare to this:

echo Windows Registry Editor Version 5.00 >open-tel.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TlntSvr] >>open-tel.reg
echo "Start"=dword:00000004 >>open-tel.reg

Then execute regedit /s open-tel.reg
Remember to get rid of your trail del open-tel.reg
So this can extend to any other registry hack, locate the key you need to hack on local machine,then echo to reg file.

Lesson is that I should be more creative and seek different way to achieve the same goal.Hum....

No comments: