Automated app modification for pentesting and reverse engineering