~300 million civilians v ~2.5 million military personnel. Assuming we could find a way stop a tank/helicopter, we'd have a pretty damn good chance. There's a reason why quantity v quality tactics work well.
Tanks can be disabled with IED's. A moltov exploding on the back of the rear engine of an abrams can stop it. It could force the crew to abandon the vehicle and wait for a recovery team to take it back for repairs. Also only foolish officers send tanks into urban fights and I can go into more detail why its a bad idea to send a tank into an urban fight.
Helicopters like the huey and black hawk are vunerable to small arms fire. Looted M136 launchers could destroy an idle or low flying chopper. Apaches are tougher to crack. You'll need a stinger missle, 20mm anti-tank rifle, or a flak gun.
Also no no large group of soldiers would attack there country. Makes you wonder why the government wants to replace human soldiers with robots.