2009-08-25

Registry value types

Name

Type

Data

(Default)
BigEndian Value
Binary Value
DWORD Value
Expandable String Value
LittleEndian Value
Multi-String Value
None Value
String Value

REG_SZ
REG_DWORD_BIG_ENDIAN
REG_BINARY
REG_DWORD
REG_EXPAND_SZ
REG_DWORD
REG_MULTI_SZ
REG_NONE
REG_SZ

xunrage 
0xff000000
32
0x00000020
A text here
0x00000100
"Line One" "Line Two"
10 00 00
A text here

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\xunrage]
@="xunrage"
"BigEndian Value"=hex(5):ff,00,00,00
"Binary Value"=hex:32
"DWORD Value"=dword:00000020
"Expandable String Value"=hex(2):41,00,20,00,74,00,65,00,78,00,74,00,20,00,68,\
00,65,00,72,00,65,00,00,00
"LittleEndian Value"=dword:00000100
"Multi-String Value"=hex(7):4c,00,69,00,6e,00,65,00,20,00,4f,00,6e,00,65,00,00,\
00,4c,00,69,00,6e,00,65,00,20,00,54,00,77,00,6f,00,00,00,00,00
"None Value"=hex(0):10,00,00
"String Value"="A text here"

Automatic logon script for Windows XP

I have created a command line script for setting the windows registry values to logon automatically in Windows XP. To set these values manually go to a previous post here.

@echo off
echo Automatic Logon in Windows XP

if exist "%SystemRoot%\system32\reg.exe" (
 echo REG.EXE was found...
 goto :runscript
)
goto :exitfail

:runscript
if /i "%1" equ "set" (goto :activelogon) else (if /i "%1" equ "unset" (goto :unactivelogon) else (goto :exitfail))

:activelogon
set /p theuser="Default User Name:"
set /p thepassword="Default User Password:"
echo Running REG.EXE to set the required values...
echo. 
echo Setting DefaultUserName...
"%SystemRoot%\system32\reg.exe" add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /t REG_SZ /d "%theuser%" /f
echo.
echo Setting AutoAdminLogon...
"%SystemRoot%\system32\reg.exe" add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /t REG_SZ /d "1" /f
echo.
echo Setting DefaultPassword...
"%SystemRoot%\system32\reg.exe" add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /t REG_SZ /d "%thepassword%" /f
set theuser=
set thepassword=
goto :exitnormal

:unactivelogon
echo Running REG.EXE to delete the required values...
echo.
echo Deleting AutoAdminLogon...
"%SystemRoot%\system32\reg.exe" delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /f
echo.
echo Deleting DefaultPassword...
"%SystemRoot%\system32\reg.exe" delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /f
goto :exitnormal

:exitfail
echo.
echo Failed.
goto :eof
:exitnormal
echo.
echo All operations completed successfully.

You can also download it from the box.

2009-08-24

Some tweaks for Windows XP

To disable the sending of unique player ID for Windows Media Player modify or create the following value:

[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences]
"SendUserGUID"=hex:00

You can use the reg command for this as follows:

reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences" /v "SendUserGUID" /t REG_BINARY /d "00" /f

Set the value back to 01 to send the ID again.

To protect against SYN attacks: From this documentation results that the minimum settings required is as follows:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"SynAttackProtect"=dword:00000002
"TcpMaxPortsExhausted"=dword:00000005
"TcpMaxHalfOpen"=dword:000001f4
"TcpMaxHalfOpenRetried"=dword:00000190

These values are not present on a fresh installed system.


Disable Remote Registry service using the sc command (also discussed here):

sc stop RemoteRegistry
sc config RemoteRegistry start= disabled

Set the default back with:

sc config RemoteRegistry start= auto
sc start RemoteRegistry

2009-08-08

Search Engines in Opera

To set search engines in Opera 9.24 go in Tools -> Preferences... and then choose the Search tab. Now you can click the Add... button to add a new entry or use the Edit... button to edit an existing entry. Of course to delete an entry you have the Delete button. Let's assume you want to add the new search engine from Microsoft, Bing. You put Bing in the Name field, choose an unused letter like b in the Keyword field, and finally the important part, put http://www.bing.com/search?q=%s in the Address field. The %s is replaced with the string you type in the search box. You can also write something like b search_text in the address bar of the browser to invoke a search for search_text on Bing.

Search engines list:

Name

Keyword

Address

Bingbhttp://www.bing.com/search?q=%s
UTraceuhttp://en.utrace.de/?query=%s
Hallodhttp://hallo.ro/search.do?d=en&l=ro&type=both&query=%s
Merriam-Webstermhttp://www.merriam-webster.com/dictionary/%s
WebDEXxhttp://www.webdex.ro/online/dictionar/%s