Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 348 Vote(s) - 3.51 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing to Registry type REG_MULTI_SZ

#1
I am trying to write to the Registry using Jscript.
I am able to do this [command][1] for REG_SZ, but it doesn't support REG_MULTI_SZ.

How can I write to the Registry using Jscript when the Registry I am trying to change is of type REG_MULTI_SZ?
<!-- language: lang-js -->

var WshShell = Wscript.CreateObject("Wscript.Shell");
var regPath = "HKLM\\SOFTWARE\\PROGRAM\\ProgramName";
var newVal = "com.settings=changed";
var regType = "REG_SZ";

WshShell.RegWrite (regPath, newVal, regType);


[1]:

[To see links please register here]

Reply

#2
I did not end up using Penton.RegObject. but that link did send me to finding a solution.

instead I did [this][1] to change the REG_MULTI_SZ:

<!-- language: lang-js -->

var objShell = new ActiveXObject("Shell.Application");

var commandtoRun = "reg.exe "; //"C:\\Windows\\System32\\reg.exe ";
var regPath = "HKLM\\SOFTWARE\\PROGRAM\\ProgramName";
var newVal = "com.settings=changed\\0com.user=newUserName\\0";

var args = "ADD \""+regPath + "\" /v Options /t REG_MULTI_SZ /d "+newVal;

objShell.ShellExecute(commandtoRun,args);


[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through