Jump to content











Photo

[App Scripts Guide] Adding Registry keys


  • Please log in to reply
4 replies to this topic

#1 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 24 August 2008 - 09:58 PM

App Scripts Guide





Index

Chapter 1 - Introduction
Chapter 2 - How to create a new app script
Chapter 3 - Adding Registry keys




Chapter 3 - Adding Registry keys






Introduction



On the previous chapter we've learned how to create a single script that only required to add a few files and nothing else.

But what happens when if your program needs to read keys from the registry?

For these cases, we'll explain exactly how you can write your own registry keys on the target registry so that everything works as you need.



Explaining Registry Hives



When we are building a boot disk based on windows, it's most often the need for editing the registry structure of this boot disk and the registry keys are all collected inside binary files called registry hives.

Registry hives can commonly be found inside the Windows\System32\Config folder and as a few other special hives such as setupreg.hiv

To avoid the need of knowing the full pathnames to hives or even knowing the equivalent hives across different platforms like XP vs Vista, we use a set of alias to make your life a bit easier when it comes to know in which hive you need to write your data.

These are the values you can use when specifying a hive:
[User,Default or HKCU],[Machine or HKU] and [System or HKLM]

Note that you can select only one of the values inside brackets [].



Loading and unloading Hives




On our app script code we need to load a registry hive before writing anything new and then unload the hive when we no longer need it so that other scripts can also use the same hives.


Here is the code used for loading and unloading an hive:
Hive_Load,HKCU

Hive_Unload

Notice that the first command will tell to load the HKCU hive - this is an alias that means "Header Key for Current User" that we mentioned above.

Using this Hive_Load will tell the system to load and prepare our hive to be written. This hive will only be unloaded when we the final lines mentioning Hive_Unload are used.






Writing registry keys




After loading the respective hive comes the time when you will be able to write your registry keys.

This is done using the Reg_Add command.

Here is an example:
reg_add,0x1,"%reg%\Software\Microsoft\Windows\CurrentVersion\Explorer\Test,Temp,ABCDEFG

This code snippet will write a registry key on Software\Microsoft\Windows\CurrentVersion\Explorer\Test on valuename Temp with the ValueData of ABCDEFG

As it expected on registry keys you will also need to specify the type of key to write.

Here is a quick list of supported types:

0x1 - Plain text
0x2 - Text with expandable variables
0x3 - Binary data
0x4 - Numbers
0x7 - Multi text entries

You will need to include %reg%\ on the beginning of each registry write because this is a variable that will later be used to replace with the correct path to your loaded hive, nothing you need to worry about but very important for this command to work.





Deleting registry keys



There are cases where it might be necessary to delete keys and values from the registry.

On this situation one can use the reg_del command.

The syntax is the following:
Reg_Del,Section,Value

Using the previously mentioned example, if we now wanted to delete the newly created value we could use:
reg_del,"%reg%\Software\Microsoft\Windows\CurrentVersion\Explorer\Test,Temp


Very simple, isn't it? :whistling:




In conclusion




I hope that after reading this tutorial you're ready to start writing your own registry keys, if you're still not very confident how they are used then you can always use other app scripts as example for your own codings.

Here is an example of a few scripts using reg keys:
http://livexp.boot-l...leZilla3.script
http://livexp.boot-l...onverter.script
http://livexp.boot-l.../WackGet.script


Please post your doubts on this topic and you're also welcome to suggest what should be added or changed in the tutorial.

Thank you.

;)

#2 Reptile

Reptile

    Newbie

  • Members
  • 11 posts
  •  
    Switzerland

Posted 06 February 2013 - 11:36 AM

How can I find out which keys I have to add, If I only know the application name?

Diskcryptor for example?



#3 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 06 February 2013 - 11:40 AM

How can I find out which keys I have to add, If I only know the application name?

Diskcryptor for example?

You get them from the BartPE plugin you have:

http://reboot.pro/to...builder-script/

 

Or you trace the program, with dependency walker, procmon (or filemon and regmon) and/or similar tools.

 

:cheers:

Wonko


  • Brito likes this

#4 Reptile

Reptile

    Newbie

  • Members
  • 11 posts
  •  
    Switzerland

Posted 06 February 2013 - 01:08 PM

BTW Winbuilder gives an error reg add unkown?

Is now something different?

I saw new scripts with Reg add Key

 

Diskcryptor always wants a reboot

Of course I cant restart.


Edited by Reptile, 06 February 2013 - 01:10 PM.


#5 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 06 February 2013 - 01:29 PM

Reptile :),

the general idea of a topic is that it stays "on topic".

 

This thread is not "post here whatever issue you have with diskcryptor".

 

You already started a thread related to this.

 

Post THERE a link to the BartPE plugin you have, someone may be able to help you doing the conversion, there is a tool that usually gives good results:

http://reboot.pro/to...uilder-project/

 

Try it, then post THERE the issues you have with the generated script (if any).

 

Till now you have NOT provided any meaningful information, you won't get help unless you try and put other members in the condition to be able to help you.

 

Report what you have been trying, what EXACTLY you did, what EXACT issue you are having, etc., etc., check against this:

http://homepage.ntlw...ard-litany.html

 

 

:cheers:

Wonko



#6 mutter1978

mutter1978
  • Members
  • 0 posts
  •  
    Mexico

Posted 19 January 2023 - 05:34 PM

https://t.me/pump_upp- best crypto pumps on telegram
Make 1000% and more within 1 day, join channel @pump_upp !

#7 ProfessorMM

ProfessorMM
  • Members
  • 0 posts
  •  
    Germany

Posted 02 February 2023 - 05:44 AM

https://t.me/pump_upp- best crypto pumps on telegram
Make 1000% and more within 1 day, join channel @pump_upp !

#8 camsus2004

camsus2004
  • Members
  • 0 posts
  •  
    Belgium

Posted 05 February 2023 - 08:25 AM

https://t.me/pump_upp- best crypto pumps on telegram
Make 1000% and more within 1 day, join channel @pump_upp !

#9 Camino

Camino
  • Members
  • 0 posts

Posted 05 February 2023 - 02:19 PM

https://datebest.net- visit website and win smartphone!

#10 zenix

zenix
  • Members
  • 0 posts
  • Location:132135

Posted 14 February 2023 - 07:23 AM

https://t.me/pump_upp- best crypto pumps on telegram
Make 1000% and more within 1 day, join channel @pump_upp !

#11 CharlesPar

CharlesPar
  • Members
  • 0 posts
  • Location:Tunisia
  • Interests:Billiards, pool
  •  
    Tunisia

Posted 26 February 2023 - 11:01 AM

Человек всегда ищет там, где лучше. Это аксиоматическое выражение давно вошло в обиход функционирования человеческого общества. Да, люди всегда являлись и являются потребителями различных благ. Огромное значение для каждого из жителей планеты имеют блага материальные. Откуда же могут появиться достаток, финансовая независимость и прочие притягательные атрибуты обеспеченной жизни? Единственно правильный ответ на этот вопрос, их нужно заработать.
В стремлении заработать большее количество денег, нет ничего постыдного и противоестественного. Наоборот, это стремление дает человеку силы для самореализации и профессионального роста, а также стимулирует его на более качественное выполнение своих обязанностей. Любой из людей участвует в ежедневном мировом обороте капиталов, и неоспоримо то, что денег всегда и всем не хватает. Есть вариант того, что не все согласятся с этим утверждением, но большинство это точно.
Всегда, когда индивидуум поднимается по социальной лестнице и зарабатывает, соответственно, больше денег, его запросы возрастают, и на горизонте возникает новый ориентир в финансовом плане. В современном мире достаточно примеров того, как денежное неравенство влияет на запросы и возможности конкретного человека. Однозначно, что все будут едины в своем стремлении повысить свой уровень финансового благосостояния, смотря на то, как другие единовременно оперируют суммами, которые составляют их полугодовой или даже годовой доход.
Существует огромное количество способов увеличить свой доход различными легальными путями. Один из таких способов это торговля на Форексе. Торговля на форекс доступна практически любому, и работая там не обязательно находиться где то в офисе. Данная торговля подходит людям, имеющим, в первую очередь, незаурядный ум, некоторую долю авантюризма, обладающим незавидной скоростью мыслительного процесса и быстротой реакции на постоянно меняющиеся условия обстановки.
Форекс это биржа на которой продают и покупают валюту. Товаром на этом рынке, естественно, выступает валюта различных стран, которая беспрерывно продается и покупается. Участие в этом процессе могут принимать как финансовые учреждения (например, банки), так и самостоятельные трейдеры. Возможен и вариант, когда торговые операции с валютой проводят специально нанятые посредники – брокеры. Несомненно, зарабатывать деньги подобным образом – предел мечтаний для многих. Однако, не все так просто. Для того чтобы преуспеть в Форекс – торговле, необходимо многое знать и уметь. С первого раза получить солидную прибыль вряд ли получится. Большинство тех кто сейчас торгует на форексе, это трейдеры самоучки, которые поднимались с нуля. Современный рынок предлагает в интернете огромное количество компаний, которые готовы научить торговле на форекс cauvocapital
Всем тем, кто хочет научиться зарабатывать реальные деньги, обязательно необходимо обратить свое внимание на специализированный сайт, где вы найдете абсолютно все, что нужно знать при торговле на форекс. Только здесь новички смогут найти весь тот массив информации, который сможет прояснить все неясности и ответить на все вопросы. Сайт очень информативен и разнообразен, на нем оперативно размещается самая свежая финансовая информация, проводятся мероприятия обучающего характера, обзоры форекс-брокеров, даются советы по инвестициям в криптовалюту и многое другое. Все материалы и блоги сайта отличаются простотой и доходчивостью, которая является немаловажным фактором в обучении всех, кто делает первые шаги на Форексе.

#12 RonnyMem

RonnyMem
  • Members
  • 0 posts
  •  
    Afghanistan

Posted 17 June 2023 - 03:38 PM

Welcome, this is a clearnet construct of the official The Hidden Wiki providing visitors with a continously updated laundry list of deepweb website links.
Patently for confidence matters you cannot scan through this links using your familiar browser so you intent impecuniousness to download and inaugurate Tor Browser victory (tie to tor download).
If after some work out (we strongly advisable using Tor Browser) you are unqualified to use tor, there is another way you can access the links listed shout and that is by using a substitute between apprehensible and deepweb. It's basically a bridge that connects Tor network with the everyday one.
Arrange for's select the in of The the hidden wiki as an example. Its accepted .onion in(.onion is tor network's .com) is: which you can upon using tor browser only. Just now detonate's take a look how we can pick up to that tie up via Chrome or Firefox by using a representative, we unqualifiedly be enduring to amplify .pet or .ws at the end of the onion tie-up
That practice applies to all tor's onion links.
The concealed wiki is compare favourably with to the sheerest well known Wikipedia. It came to lifetime in 2007 and it holds let's say unheard-of services secret from the eye of the invariable internet user. Services like marketplaces, financial services, secretiveness focused e-mail and hosting providers and so on. During years it's administrators faced a occasional road bumps like DDOS attacks and law enforcement inherit downs (website's realm has been changed a few times, was the primary, was the younger and sometimes there's the updated V3 lecture which we shared with you over and as you can see V3 onion addresses are longer than the ones then used making them harder to basically constraint therefor making them safer).

#13 NaKrutkAGelo

NaKrutkAGelo
  • Members
  • 0 posts
  • Location:Russia
  • Interests:Fast, High-Quality Fast Promotion of Instagram subscribers

Posted 18 January 2024 - 02:27 PM

I will quickly, Efficiently Wind up subscribers in Insta
http://telegram.me/N...m_Invaiter_bot/
Quickly, Efficiently I will get subscribers on Instagram
Quickly, Efficiently I will get subscribers on Instagram




3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users