Introduction: How to Root and S-Off the HTC One ( M7 International , T-mobile , AT&T). (Install Custom Recovery Also.) HTC One M7 , NOT SPRINT)

Pre-requests.
Unlcoked Bootloader - http://www.htcdev.com Use MINI SDK to finish faster http://www.androidrevolution.nl/downloader/download.php?file=mini-sdk.rar -Follow steps on HTCDEv
revone - http://revolutionary.io/revone
CWM - http://www.clockworkmod.com/rommanager
Mini-SDK - http://www.androidrevolution.nl/downloader/download.php?file=mini-sdk.rar
Root zip - http://download.clockworkmod.com/superuser/superuser.zip
and the latest drivers from htc , (It comes with sync manager) install those. 
Have your phone pl.ugged in.

and your choice of rom. I'd recommend Android Revolution HD by Mike 1986 Link  http://forum.xda-developers.com/showthread.php?t=2183023 (DO NOT INSTALL ON SPRINT ONE.)

* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.

Step 1: Beginning

Now that you have unlocked your bootloader we will now install the custom recovery .\
Extract all the files in Mini sdk and download your CWM recovery from the link i've provided (MAKE SURE YOU PICK THE RIGHT ONE!!!)
Now get the cwm file you've downloaded and rename it to Recovery.img and put it into the Mini sdk folder. Overwrite as necessary.
Now open the folder and hold shift and right click , and click on open command prompt....
Next Put your phone into fastboot mode. (Shut down , Hold volume down and power and let go at the menu where you can choose ,  and with the volume buttons go onto fast boot and click it (press power/sleep /top button once.)
Now in that command promt (black window ) Type in 
Fastboot flash recovery recovery.img 

Now it will install the CWM recovery give it a few seconds and it should say done. 
Now reboot the phone for the next step.

Step 2: Rooting.

Now that your phone is on Connect it to your computer (if you unplugged it for what ever reason connect it and put the root zip(superuser.zip) onto the internal storage , Link is on first page labeled prerequest.

Once you've done that reboot into bootloader (same as going into fastboot but dont select fastboot this time...)
and choose recovery.

now with the new recovery select install zip and find the superuser.zip and install it. (Say yes to anything it asks..)
now reboot and you should be rooted.
NEXT STEP.

Step 3: S-OFFING.

Now that your rooted and in the normal phone enable Devoloper mode (USB DEBUGGING) 
Go to setting , then devoloper settings and check the USB Debugging option.
Now when usb debugging is on go onto the computer where the cmd (black windows) is open. 
now put revone in the MiNI sdk folder.
(NOTICE Every thing im putting here is a command Ive seperated them by line each is on its own and must be put in seperated in the cwm)
Type in
adb push revone /data/local/tmp/
adb shell
cd /data/local/tmp
chmod 755 revone
su
./revone -P                                        (Here if it says to reboot the phone do so and type in adb push revone /data/local/tmp/ .)
cd /data/local/tmp
./revone -s 0 -u
./revone -t
exit
adb reboot bootloader


-------------------------------------------------------Now in bootloader it should say s-off.

credits to guys on here http://forum.xda-developers.com/showthread.php?t=1743780


Go to next step

Step 4: Custom Romming.

Now go into the recovery and select back up , use common sense thru this one.
Now reboot phone and put the rom onto your phones internal storage.
Now go back to the recovery and wipe data , wipe cache , then flash the rom (The name is what ever the roms name is) (DONT EXTRACT ANYTHING)


Now it should ask some questions like what you want and what phone you have , select your phones version and you can just press next thru the rest.

Now reboot your phone 
If it all went well 
HAVE FUN
If not go onto XDA and do some research.

Donate to me :D:D http://tinyurl.com/DONATETOHIDDEN     thats my main radio page , the donate link are on the side. thanks :D