The GS Ball cannot be obtained via cheat codes in Pokémon Black. It was distributed exclusively through a limited-time Nintendo Wi-Fi event to unlock the Mythical Pokémon Genesect. Since the event has ended, the GS Ball is no longer legitimately obtainable.
The GS Ball triggers a specific script flag that cheat devices (Action Replay, etc.) cannot reliably replicate without corrupting the save file. Using unauthorized hacks risks:
For Genesect in modern play, use Pokémon HOME transfers from later games where it was redistributed (e.g., Pokémon GO, Sword/Shield events).