PhatHack

The Hacking Hoedown => PhatBox Hacking => Topic started by: TheJohnny on May 04, 2007, 12:55:36 PM

Title: problems with backupdms.bat - problem solved/workaround
Post by: TheJohnny on May 04, 2007, 12:55:36 PM
Hello,

I wanted to hack my DMS, but I got stuck very early with backupdms.bat.

The Phatnoise Music Manager is not running, the Virus Scan is not running.

The batch says, that it found multiple or no new drives.

diskpart.nodms:



Microsoft DiskPart Version 5.1.3565

Copyright (C) 1999-2003 Microsoft Corporation.
Auf Computer: NOTEBOOK

  Datentr.  Status      Größe    Frei     Dyn  GPT
  --------  ----------  -------  -------  ---  ---
       0    Online        93 GB      0 B         



diskpart.dms:



Microsoft DiskPart Version 5.1.3565

Copyright (C) 1999-2003 Microsoft Corporation.
Auf Computer: NOTEBOOK

  Datentr.  Status      Größe    Frei     Dyn  GPT
  --------  ----------  -------  -------  ---  ---
       0    Online        93 GB      0 B         
       1    Online         9 GB      0 B         




Edit: title
Title: Re: problems with backupdms.bat
Post by: VorTechS on May 04, 2007, 01:55:53 PM
I had the same problem, and there is as yet no work-around.
The second disk part, when called as part of the script is failing.

On the bright-side, PhatHack Media Manager will so have the hack available [subject to testing].

A little more patience and you shall have a hacked box!

[It's also possible judb might be able to help you, and I'm sure he'll answer with an appropriate suggestion if he can]
Title: Re: problems with backupdms.bat
Post by: judb on May 04, 2007, 02:52:58 PM
Well his log shows the new drive in the second file, which if I recall correctly VorTechS was not doing that.

Try deleting those files and restart the process.. only wait like a minute before you progress forward, we maybe should have forced a delay in there.
Title: Re: problems with backupdms.bat
Post by: VorTechS on May 04, 2007, 03:15:38 PM
I did a quick check by writing something similar in a .bat file without using any additional script.

The problems lies with diskpart and being part of a batch file.  I don't think there's any way you can get round it.
Title: Re: problems with backupdms.bat
Post by: TheJohnny on May 04, 2007, 03:47:12 PM
Thanks for the answers so far.

I think (part of) the problem is that I'm using a German Windows XP Version.

An English Windows will show this on the screen (taken from VorTechS' post):

Microsoft DiskPart version 5.1.3565

Copyright (C) 1999-2003 Microsoft Corporation.
On computer: STUART_M

  Disk ###  Status      Size     Free     Dyn  Gpt
  --------  ----------  -------  -------  ---  ---
  Disk 0    Online       233 GB      0 B         
  Disk 1    Online        19 GB      0 B         


A German Windows will show that on the screen:

Microsoft DiskPart Version 5.1.3565

Copyright (C) 1999-2003 Microsoft Corporation.
Auf Computer: NOTEBOOK

  Datentr.  Status      Größe    Frei     Dyn  GPT
  --------  ----------  -------  -------  ---  ---
       0    Online        93 GB      0 B         
       1    Online         9 GB      0 B         


Correct me if I'm wrong, but the shell script searches for "Disk" which is not to be found in the ouput of the German version.
Title: Re: problems with backupdms.bat
Post by: VorTechS on May 04, 2007, 04:13:27 PM
Yes, you could be right there ;)

I'm sure jud will help you modify the script files as necessary - or if you prefer you can wait for my Windows Wizard to be released which should be language independent.
Title: Re: problems with backupdms.bat
Post by: judb on May 04, 2007, 07:37:42 PM
you are correct, I didn't read close enough to notice the language problem. 

There are several instances where the language change will have to be fixed.

The commands in the file like "grep Disk" and "grep Partition" etc will have to be modified to match the german version of the text.

This will have to happen in all the .sh files in that folder in order for it to work, or you'll have to do the hack on a US English version of Windows XP.
Title: Re: problems with backupdms.bat
Post by: TheJohnny on May 04, 2007, 08:49:49 PM
Hello,

I wrote 'Disk' in the partition lines of diskpart.dms and diskpart.nodms and write protected both files.

I could execute the hackdms.bat, but couldn't complete the hack in my car.

There is only the message "EJECT" on my stereo.
Title: Re: problems with backupdms.bat
Post by: sbingner on May 05, 2007, 09:29:12 AM
Make it search for "Online" that's all that will match the proper lines
Title: Re: problems with backupdms.bat
Post by: Devil1978 on May 07, 2007, 05:47:08 PM
I have the same problem on my german windows xp too.
Can i install a new hdd in my DMS manually without this tools?
Title: Re: problems with backupdms.bat
Post by: TheJohnny on May 07, 2007, 08:13:04 PM
I don't know. But I would say no.

But it's easy to do a workaround for this problem.

Just let 'backupdms.bat' run one time so that the files diskpart.dms and diskpart.nodms are created. Open both files with Wordpad (not Editor, because it can't read the line break) and insert 'Disk' in both files in the one or two lines as seen in the example:
Microsoft DiskPart Version 5.1.3565

Copyright (C) 1999-2003 Microsoft Corporation.
Auf Computer: NOTEBOOK

  Datentr.  Status      Größe    Frei     Dyn  GPT
  --------  ----------  -------  -------  ---  ---
  Disk 0    Online        93 GB      0 B         
  Disk 1    Online         9 GB      0 B         

Take care of the spaces so that the first line in both files is exactly the same.
Then write-protect both files, so that can't be overwritten anymore and let 'backupdms.bat' run. If you do this don't change the HDD configuration of your system! The DMS must always be the same number, no. 1 in the example above.

You will get two errors, that the files can't be written and one error that the files can't be deleted, but that doesn't matter.

You can use this method with all '*.bat' except for 'newdms.bat' because then your drive is another one. Just go through the above again and create two new files with the new HDD.
Title: Re: problems with backupdms.bat - problem solved/workaround
Post by: VorTechS on May 07, 2007, 09:47:32 PM
Or wait about 2 weeks for the new Wizard to be approved, and this should work for all languages!
Title: Re: problems with backupdms.bat - problem solved/workaround
Post by: sbingner on May 08, 2007, 11:32:55 AM
Hmm... sounds like we need to make the scripts see if it couldn't update the files and error out :p

Just edit the .sh file and change where it looks for "Disk" to look for "Online" -- should be lines containing "grep"
Title: Re: problems with backupdms.bat - problem solved/workaround
Post by: Dirtboy on May 19, 2007, 04:03:05 PM
Quote from: VorTechS on May 07, 2007, 09:47:32 PM
Or wait about 2 weeks for the new Wizard to be approved, and this should work for all languages!

I'm having the same problem...  Patiently waiting the 2 weeks... ;D
Title: Re: problems with backupdms.bat - problem solved/workaround
Post by: judb on May 19, 2007, 04:41:54 PM
http://forum.phathack.com/index.php/topic,1189.0/topicseen.html go get the file and see if it works for you
Title: Re: problems with backupdms.bat - problem solved/workaround
Post by: VorTechS on May 20, 2007, 01:22:20 PM
PLEASE NOTE: Do not use PhatHack Media Manager in order to try out the hack!
I found a bug and didn't get enough time to patch up the hack process compared to the standalone wizard that is now available - I don't believe it will work for anyone.

If you wish to join the controlled beta for the new Hack Process, please reply to the thread [as you have done Dirtboy] and I'll add you to the mailing list, send me a PM, or send me a personal mail (see my profile).

The next release of PhatHack Media Manager WILL be up-to-date!