Page 1 of 1

[SOLVED] Registry Package Creation / Syntax

Published: Dec 22, 2022 - 09:03
by walibix
Good morning,

I'm sorry to bother you, probably for something silly

I want to modify a registry key and I get an error during my tests, yet I can't see it

So I want to place the FC0 value in the DWORD TlsVersion, it doesn't seem complicated...

Code: Select all

registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM/CurrentControlSet/Services/RasMan/PPP/EAP/13','TlsVersion', '00000FC0' , type=REG_DWORD)    <= KO
registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM/CurrentControlSet/Services/RasMan/PPP/EAP/13','TlsVersion', 'FC0' , type=REG_DWORD)    <= KO
registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM/CurrentControlSet/Services/RasMan/PPP/EAP/13','TlsVersion', FC0 , type=REG_DWORD)    <= KO
I did some research on the forum and in the documentation, and I based my work on the following example:

Code: Select all

registry_setstring(HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows Live\\Common",'TOUVersion','16.0.0.0', type=REG_SZ)
(By the way, the link in the "hint" is dead:) https://www.wapt.fr/en/api-doc-1.5/sour ... _setstring // It redirects to the current page, therefore without the details)

Thanks again for the help

Commander

Re: Registry Package Creation / Syntax

Published: Dec 22, 2022 - 3:06 PM
by sfonteneau
Good morning

You can pass the value directly to it in hexadecimal

Code: Select all

registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM/CurrentControlSet/Services/RasMan/PPP/EAP/13','TlsVersion', 0x00000FC0 , type=REG_DWORD)

Re: Registry Package Creation / Syntax

Published: Dec 22, 2022 - 3:19 PM
by walibix
My master!

Thank you!!!

Perfect, I hadn't thought of using 0x for the hexadecimal