**********************************
**********************************
**      BROUGHT TO YOU BY:	**
**********************************
**********************************
**				**
**	[TEAM ASSEMBLY]		**
**				**
**   www.team-assembly.com	**
**				**
****************************************************************************
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
****************************************************************************



****************************************************************************
**  SOURCE FILES INCLUDED IN THIS RELEASE: 
****************************************************************************
**
**	TAUnlockHDD.CPP - General IDE HDD Unlocking Code 
**
****************************************************************************



UPDATE LOG:
----------------------------------------------------------------------------
Date: 05/20/2003
By: UNDEAD [team-assembly]
Reason: Prepared for Public Release
----------------------------------------------------------------------------



	This Little Utility will unlock any locked XBOX hdd provided the eeprom contains the correct HDDKEY that this 
	drive was locked with.. IF you want to modify it to unlock using the Master Password, feel free to do so...
	
	Please Remember there is NO screen displayed while running.. Only the XBOX LED will let you know whats going on..





	******************************************************************************************
**  PLEASE MAKE SURE YOU HAVE THE LATEST XKUTILS FROM TEAM-ASSEMBLY WEB SITE !!	**  THIS CODE WILL NOT WORK WITHOUT IT !!!
******************************************************************************************





	In this Source Code you Will learn how to:
	-------------------------------------------
	* Play with the XBOX LED colors and sequences.. eg. flash it yellow and green..
	* Load en Decrypt the EEPROM contents.
	* Detect and Validate the XBOX Version.
	* Identify the IDE HDD Model and Serial
	* Check the IDE HDD Status
	* Unlock the IDE HDD


	This is what this utility does IF the EEPROM is Valid AND HDD is Locked..
	--------------------------------------------------------------------------
	1. XBOX LED Turns Yellow
	2. Load and Decrypt EEPROM..
	3. Detected XBOX Version
	4. Perform ATA IDENTIFY on HDD.
	5. Print HDD Model
	6. Print HDD Serial
	7. Print HDD Password
	8. Perform ATA SECURITY UNLOCK on HDD
	9. Perform ATA SECURITY DISABLE on HDD
	10. Flash XBOX LED Green !
	11. End and sit in infinite Loop..


	This is what this utility does IF the EEPROM is Valid AND HDD is NOT Locked..
	------------------------------------------------------------------------------
	1. XBOX LED Turns Yellow
	2. Load and Decrypt EEPROM..
	3. Detected XBOX Version
	4. Perform ATA IDENTIFY on HDD.
	5. Print HDD Model
	6. Print HDD Serial
	7. Print HDD Password
	8. Print HDD is NOT locked Error..
	9. Turn XBOX LED Solid RED !
	10. End and sit in infinite Loop..


	This is what this utility does IF the EEPROM is INVALID (Corrupted)
	-------------------------------------------------------------------
	1. XBOX LED Turns Yellow
	2. Load and Decrypt EEPROM..
	3. Print EEPROM Invalid Error..
	4. Turn XBOX LED Solid RED !
	5. End and sit in infinite Loop..