There is no "Pokerus code" for Poke Farms—or any Pokémon game. This is a persistent myth conflating two unrelated concepts.
Pokérus (Pokémon Virus) is a random in-game event (Gen II+). When a Pokémon contracts it (≈1/21,845 chance per battle), it gains double EVs from battles. It spreads to party members. It cures naturally after 1–4 days (midnight-based), but the EV bonus remains permanently. No code, cheat, or action triggers it. It's RNG.
Poke Farms are third-party auto-leveling services (bots/scripts). You deposit Pokémon; they grind battles/steps 24/7. They automate gameplay. They have nothing to do with Pokérus mechanics.
Warning: Poke Farms violate ToS. Risk: ban, save corruption, stolen Pokémon. Play the game. The virus will come—or it won't. Either way, no code exists.