Niger has given Ghana a lifeline in the 2025 Africa Cup of Nations (AFCON) qualifiers by thrashing Sudan 4-0 on Thursday.