Originally military jargon describing the four basic infantry combat moves on a training ground (
摸 grope,
爬 crawl,
滚 roll,
打 fight). Generalized in modern Chinese to mean 'paid one's dues through real hands-on grind' — most often in
在...
摸爬滚打多少年 ('grinded through X for N years').