Pakistan has admitted that the Mumbai attacks were partly planned in Pakistan .