Set Phasers to LOL

Just "how" did the Empirial Forces find the Rebel base on Endor?