There is no way to make this card affect your opponent. It affects "you", and "you" means the controller of the spell. It has no targets.

Artwork
Loading artwork…
Demonic Consultation
Mystery Booster 2 · #181 · EN
Nonfoil—Foil—
Card rules
Choose a card name. Exile the top six cards of your library, then reveal cards from the top of your library until you reveal a card with the chosen name. Put that card into your hand and exile all other cards revealed this way.
Abandon hope . . . .
Uncommon · Illustrated by Chris Seaman
Format legality
Commander Legal
Duel Legal
Oathbreaker Legal
PreDH Legal
Tlr Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Legacy Banned
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
Premodern Banned
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Vintage Restricted
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You must name a card that actually exists in the game of Magic.
You don't name a card until Demonic Consultation resolves.
If you don't reveal the named card (perhaps because it was in the top six cards of your library), you'll end up exiling your entire library. You don't lose the game at that point, but will lose the next time you're instructed to draw a card.