OK, Seems that there has been alot of confusion so I'm editing this and just going to add the "how to" below if this isnt' good enough you can check another source with an alternate method here Magic Rooting - AndroidWiki
Ok going to make it easier on everyone hope this helps a bit...
You will need USB debugging on the device turned on... You will also need ADB, and fastboot if you don't have ADB you will need the SDK and can get it here: Android SDK if you do not have fastboot you can get it here: HTC Downloads
Next Download Haykuro's Magic rootme and Recovery...
Now that you have all the required stuff connect your phone to your pc and open cmd(windows) or terminal(linux) go to your SDK folder then sub directory tools.
Once in the tools directory you will want to copy all the files you have just downloaded into that directory...
When that is done we can start the process....
From CMD or Terminal (still in the sdk tools directory) type the following:
(win) adb devices
(linux) ./adb devices
You should see your Android phone's serial listed at this point. If you get nothing in the list, you need to check your USB driver. (In linux try sudo ./adb kill-server then again type ./adb devices, this will reset the connection and adb)
Now unzip the recovery-new.img.zip file. Put both the recovery and rootme files in your "tools" directory. Make sure your phone is connected with the USB cable, pull down the notification bar, select mount the SD card. Rename rootme-signed.zip to update.zip and copy both the newly named update.zip and the recovery-new.img to the phone's SD card. Once this is complete go back to the notifications bar and unmount the phone.
Now we need to get to the bootloader, first power off the device... Now depending on which version of the Magic you have, this might differ so try these:
Turn on the device holding down back button and power(end call) button
Once you're in there you will need to run this command:
(win) fastboot boot recovery-new.img
(linux) ./fastboot boot recovery-new.img
Once you see the recovery screen on the phone you will need to apply your update.zip by hitting (ALT+S) let it complete the process...
When the install has completed, reboot by hitting HOME+BACK, It is VERY important to allow it to boot fully. (it can take some time)
Once booted go back to your computer, from CMD or Terminal type the following command :
(win) adb shell flash_image recovery /sdcard/recovery-new.img
(Linux) ./adb shell flash_image recovery /sdcard/recovery-new.img
To be able to run and apply nandroid backups download either Engineering Bootloader or Haykuro's SPL
Once you have selected and downloaded either the Engineering Bootloader or Haykuro's modded SPL go to the notification bar and mount your phone again... Rename this file to update.zip as you did previously copy to your sd card...
Now to install
Power on your phone holding HOME+POWER to get into recovery mode.
Apply the update (ALT+S) again wait for the process to complete, upon completion hit HOME+BACK buttons on the phone to reboot..
Now that you have everything setup it's time to actually get root you will need to download one more thing....
First you will need the SU (Super User)
Now from your computer go to either Terminal or CMD (make sure your phone is still connected) and type the following commands:
(win) adb push su /data/local
(linux)./adb push su /data/local
This will push the new SU to your phone...
Next, again from Terminal or CMD type
(win) adb shell
(linux) ./adb shell
Next from your ADB shell type
SU
you should see the text change from $ to # if you have done this correctly so far...
Next from the # type
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/xbin
mv su osu
cat /data/local/su > su
chmod 6755 su
Now to make sure you've done it right type
ls -l *su
if you see this ( -rwsr-sr-x root ) that means it worked...
Finally type
sync
reboot
Wait until your phone finishes booting and now you're Fully rooted and ready....
Enjoy!
Ok going to make it easier on everyone hope this helps a bit...
You will need USB debugging on the device turned on... You will also need ADB, and fastboot if you don't have ADB you will need the SDK and can get it here: Android SDK if you do not have fastboot you can get it here: HTC Downloads
Next Download Haykuro's Magic rootme and Recovery...
Now that you have all the required stuff connect your phone to your pc and open cmd(windows) or terminal(linux) go to your SDK folder then sub directory tools.
Once in the tools directory you will want to copy all the files you have just downloaded into that directory...
When that is done we can start the process....
From CMD or Terminal (still in the sdk tools directory) type the following:
(win) adb devices
(linux) ./adb devices
You should see your Android phone's serial listed at this point. If you get nothing in the list, you need to check your USB driver. (In linux try sudo ./adb kill-server then again type ./adb devices, this will reset the connection and adb)
Now unzip the recovery-new.img.zip file. Put both the recovery and rootme files in your "tools" directory. Make sure your phone is connected with the USB cable, pull down the notification bar, select mount the SD card. Rename rootme-signed.zip to update.zip and copy both the newly named update.zip and the recovery-new.img to the phone's SD card. Once this is complete go back to the notifications bar and unmount the phone.
Now we need to get to the bootloader, first power off the device... Now depending on which version of the Magic you have, this might differ so try these:
Turn on the device holding down back button and power(end call) button
- if this didn't work try this one
Once you're in there you will need to run this command:
(win) fastboot boot recovery-new.img
(linux) ./fastboot boot recovery-new.img
Once you see the recovery screen on the phone you will need to apply your update.zip by hitting (ALT+S) let it complete the process...
When the install has completed, reboot by hitting HOME+BACK, It is VERY important to allow it to boot fully. (it can take some time)
Once booted go back to your computer, from CMD or Terminal type the following command :
(win) adb shell flash_image recovery /sdcard/recovery-new.img
(Linux) ./adb shell flash_image recovery /sdcard/recovery-new.img
To be able to run and apply nandroid backups download either Engineering Bootloader or Haykuro's SPL
Once you have selected and downloaded either the Engineering Bootloader or Haykuro's modded SPL go to the notification bar and mount your phone again... Rename this file to update.zip as you did previously copy to your sd card...
Now to install
Power on your phone holding HOME+POWER to get into recovery mode.
Apply the update (ALT+S) again wait for the process to complete, upon completion hit HOME+BACK buttons on the phone to reboot..
Now that you have everything setup it's time to actually get root you will need to download one more thing....
First you will need the SU (Super User)
Now from your computer go to either Terminal or CMD (make sure your phone is still connected) and type the following commands:
(win) adb push su /data/local
(linux)./adb push su /data/local
This will push the new SU to your phone...
Next, again from Terminal or CMD type
(win) adb shell
(linux) ./adb shell
Next from your ADB shell type
SU
you should see the text change from $ to # if you have done this correctly so far...
Next from the # type
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/xbin
mv su osu
cat /data/local/su > su
chmod 6755 su
Now to make sure you've done it right type
ls -l *su
if you see this ( -rwsr-sr-x root ) that means it worked...
Finally type
sync
reboot
Wait until your phone finishes booting and now you're Fully rooted and ready....
Enjoy!