Militants attacked police post in the posh Srinagar suburbs with automatic weapons injuring a policeman on Friday.