Chairing a high-level meeting to review legal aspects of the anti-terrorism national action plan, Sharif emphasised that no one could remain neutral in the war against terrorism.
"The country's civil and military leadership is united against terrorism and militancy," he said.
"We will not let the sacrifices of our soldiers and the blood of innocent children in Peshawar go in vain," Sharif said.
Legal and constitutional matters for the formation of special courts for trials of terrorism cases are being discussed during the meeting.
The prime minister said terrorists tried to change "our attitude by creating fear, but they will not be successful under any cost".
"We will take the war to terrorist safe havens," Sharif was quoted by The News as saying.
The prime minister during the meeting also directed Foreign Affairs Advisor Sartaj Aziz to raise the issue of two Pakistani Rangers allegedly killed by Indian forces.
