Crawl through the hole and enter the shop. Once inside, you need to use Salim's technique to quickly climb the nearby rope before the cobras below hit you. As soon as you're at the top, jump and grab the next rope, then go on the platform. Drop down and dispose of the two guards, being careful of the snakes in the baskets.
Find the next rope to perform the Climbing Cobra on, then make your way around the room to the platform where you need to drop the rugs from. When you get to the caverns below, feel free to destroy the scorpion nests, then crawl through the hole on the north side of the room. There's more scorpions in this next room, but ignore them and use the hooks to get to the rope at the end.
Keep climbing the ropes until you enter the palace. It's better to take out the nests, then use the lever in the middle of the room to make a pillar rise (up and down with the analog stick). Start ascending the tower, being mindful to use the Climbing Cobra to avoid the snake ropes. There's a guard at the next spot, which you must shimmy across, so wait until he's distracted to move farther.
The next climbable objects are some chains, which will break as soon as you normally try to climb them. Of course, this requires the Climbing Cobra technique, so make sure you use it on the first one and the last one as soon as you grab it. There's another spot where you have to sneak past a flashlight guard, but you can use the pillars this time to hide. If you go in the area with the guards and take them out, you can grab a Secret Sly Mask on top of a table.
Continue on, where you must use the Climbing Cobra to hurry up some chain ropes, then up three snake basket ropes. Sneak past the guard, then use the switch to make the snake statue's tongue come out. Hurry up and cross it, then sneak past the spotlight. Use the next switch to do the same as the last, then sneak past the two spotlights and climb the last set of ropes to the top of the tower.
It's time for another hacking mini-game with Bentley, this one being a Sixaxis control one. This one can be a little bit challenging, as there are bumpers and conveniently placed holes that might make you fail a few times. Once you complete it, though, the mission will be over.