主攻 has both military and civilian uses. In academic contexts it means your main field of study (similar to
主修). In business, it refers to the main market or product a company focuses on. In military contexts, it denotes the primary direction of attack.