Export registry value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Export registry value

    I'm trying to save YM password from:

    HKCU\Software\yahoo\pager
    "Yahoo! User ID"="someID"
    "ETS"="longstring..."

    What I want, is to export the above two values to a .reg file.
    I tried everything I know and found:

    TextFile.WriteFromString
    Code:
    Psw = Button.GetState("btn_Psw");
    	if Psw == 1 then
    		YID = Registry.GetValue(HKEY_CURRENT_USER, "Software\\yahoo\\pager", "Yahoo! User ID", true);
    		TextFile.WriteFromString(_DesktopFolder.."\\Yahoo! User Password.reg", YID, false);
    	end
    INIFile.SetValue
    Code:
    Psw = Button.GetState("btn_Psw");
    	if Psw == 1 then
    		ETS = Registry.GetValue(HKEY_CURRENT_USER, "Software\\yahoo\\pager", "ETS", true);	
    		INIFile.SetValue(_DesktopFolder.."\\Yahoo! User Password.reg", "HKEY_CURRENT_USER\\yahoo\\pager", ETS, ETS);
    	end
    As you can see, both metods are close but not good, because the .reg file I'm trying to create must contain:
    Windows Registry Editor Version 5.00 to be the first line and after this line, my exported values :(

    I know the inside/out of registry editing, I'm not a noob, but this...
    Also, I know you can export a key, using either reg.exe or regedit.exe but why not a value too

    If I try to use TextFile.WriteFromString to write the ETS value to a file, all i get is garbage text. The only way I've found to properly write this value (ETS) is by using INIFile.SetValue, but that is just not enough, I can't form a complete .reg file.
    I tried many other tricks but nothing worked, above is just some left-over code to show that I really tried :(



    Put it simply, I need to know how to export these two values:
    "Yahoo! User ID"
    "ETS"

    located here:
    HKCU\Software\yahoo\pager

    to a .reg file.

    If I can't do it using AMS, maybe somenone knows of a command line utility, script, or whatever, wich exports registry values too, not only keys.

    Thanks for taking the time to read my problem and sorry for this -not so well written- post.
    Last edited by Guest; 04-20-2008, 06:42 PM.
  • rexzooly
    No longer a forum member
    • Jul 2007
    • 1512

    #2
    Why Would you need to take this info?
    you should already know this ?

    and if you don't meaning your tring to steal peopls usersname and passwords
    as most please have it sign them in auto.

    Comment


    • #3
      Because I've made an utility for Yahoo! Messenger.

      If I've wanted to steal the password, I could export the entire key:
      HKCU\Software\yahoo\pager


      So please, can we continue without insinuating things like that?

      Comment

      • rexzooly
        No longer a forum member
        • Jul 2007
        • 1512

        #4
        Originally posted by BlueMe View Post
        Because I've made an utility for Yahoo! Messenger.

        If I've wanted to steal the password, I could export the entire key:
        HKCU\Software\yahoo\pager


        So please, can we continue without insinuating things like that?
        still why would you need the users passwork ?

        i am not insinuating anything there would be no reason for this its very unsafe
        to do something like this i am just intreated thats why i as "Why Would you need to take this info?"

        So please anwser you question with the anwser not trying to prove you not wanting
        the passwords simple anothe question really
        Last edited by rexzooly; 04-20-2008, 07:46 PM.

        Comment


        • #5
          Does this answer your question:

          Comment

          • rexzooly
            No longer a forum member
            • Jul 2007
            • 1512

            #6
            Originally posted by BlueMe View Post
            Does this answer your question:

            don't see why this option is needed at all but your app looks really nice :yes
            but yahoo already as this options and works very well.

            Comment


            • #7
              Glad youy like it and thanks

              It's for users who forgot their password but they still have enabled "Remember my ID and password".
              If you want to reinstall your OS, then this option will be useful, at least to some.

              So, can I get some help with this?

              Comment

              • rexzooly
                No longer a forum member
                • Jul 2007
                • 1512

                #8
                Originally posted by BlueMe View Post
                Glad youy like it and thanks

                It's for users who forgot their password but they still have enabled "Remember my ID and password".
                If you want to reinstall your OS, then this option will be useful, at least to some.

                So, can I get some help with this?
                not sure how to call that key but don't yahoo encypt it?

                Comment


                • #9
                  Yes, it's encrypted but I don't need to decrypt it. Just simply, export those two keys as you would normaly do with a key using regedit.

                  Comment

                  • rexzooly
                    No longer a forum member
                    • Jul 2007
                    • 1512

                    #10
                    Originally posted by BlueMe View Post
                    Yes, it's encrypted but I don't need to decrypt it. Just simply, export those two keys as you would normaly do with a key using regedit.
                    why can't you just take the hole key?

                    Comment


                    • #11
                      - because saving all the settings could cause trouble with future versions of YM
                      - because i can't have the label "Save psw" and actually save a bunch of other information
                      - for user convinience
                      - for doing just what is suppose to do? (save password)

                      Comment

                      • rexzooly
                        No longer a forum member
                        • Jul 2007
                        • 1512

                        #12
                        Originally posted by BlueMe View Post
                        - because saving all the settings could cause trouble with future versions of YM
                        - because i can't have the label "Save psw" and actually save a bunch of other information
                        - for user convinience
                        - for doing just what is suppose to do? (save password)
                        well get the key and then use just wants needed ? if they are reinstalling that it would be nice to have all the key settings back well this i just what i feel.

                        Comment


                        • #13
                          That won't do rexzooly, Yahoo changes stuff from version to version and I want to avoid all future problems.

                          Comment

                          • RizlaUK
                            Indigo Rose Customer
                            • May 2006
                            • 5552

                            #14
                            get the registry values with AMS actions as normal, then build a text string from the values in the regedit format then save the text file as "anything.reg" now you have a exported set of keys
                            Embrace change in your life, you never know, it could all work out for the best

                            Comment


                            • #15
                              Now I have:

                              Code:
                              Psw = Button.GetState("btn_Psw");
                              	if Psw == 1 then
                              		ETS = Registry.GetValue(HKEY_CURRENT_USER, "Software\\yahoo\\pager", "ETS", true);
                              		YID = Registry.GetValue(HKEY_CURRENT_USER, "Software\\yahoo\\pager", "Yahoo! User ID", true);
                              
                              		TextFile.WriteFromString(_DesktopFolder.."\\Yahoo! User Password.reg", ETS, false);
                              		TextFile.WriteFromString(_DesktopFolder.."\\Yahoo! User Password.reg", YID, true);
                              	end
                              But how do I add the rest of the text?

                              Code:
                              Windows Registry Editor Version 5.00
                              
                              [HKEY_CURRENT_USER\Software\Yahoo\pager]
                              "ETS"=
                              "Yahoo! User ID"=
                              Also, YID appends to ETS because if I dont, I'll overwrite the first value, ETS

                              Comment

                              Working...
                              X