BabyShark is a basic C2 generic server written in Python and Flask. This code has based idea to GTRS, which…