For AFK, you need the shields maxed out with engineering and Guardian shield boosters. and you need long-range lasers. My T10 has 8000MJ thermal resistance, and I still have to help it out sometimes. An unengineered T10 with no Guardian stuff would be 750Mj and there would be no fast charge between attacks. it would be better to fight the pirates actively in a tanked up Python, which you could leave for maybe a couple of minutes between attacks.
Your gain in combat rank depends on the difference between your rank and the rank of the ship you kill. The higher your own rank, the less points you get. You can see it in the table in the attched link. Basically, when you get to Deadly, you can't get any more points from a low RES, and even when Dangerous, your progress would be very slow.
Combat is an archetypal pilot career recognized by the Pilots Federation. Combat encompasses multiple sub-roles, such as Assassin, Bounty Hunter, Mercenary, and Pirate. Increasing Combat rank requires destroying other ships, and defeating pilots with higher Combat ranks rewards a greater amount...
elite-dangerous.fandom.com