[[quoteright:300:[[Webcomic/BiggerThanCheeses http://static.tvtropes.org/pmwiki/pub/images/dueling_hackers_6317.png]]]]
[[caption-width-right:300:That's Hollywood. [[MundaneSolution Reality is]] [[CutTheJuice simpler]].]]

A head-to-head confrontation between two computer hackers, combining the excitement of [[MundaneMadeAwesome people typing]] with the thrill of [[TechnoBabble network protocol loopholes being exploited]].

One hacker is trying to penetrate a computer system while the second is busily trying to keep the first one out. Expect the hackers to consider each other to be a WorthyOpponent. Often mixed with an attempt to back-trace the invading Hacker's source, depicted much like phone back-tracing usually is. Expect plenty of HollywoodHacking jargon and visuals to keep the audience occupied.

Almost no one thinks to simply [[CutTheJuice unplug the target computer]] from the network because apparently EverythingIsOnline, always.



[[folder:Anime & Manga]]
* ''Manga/MahouSenseiNegima'': Chisame versus Chachamaru in the festival arc.
* In ''VisualNovel/GakuenHeaven'' of all things the vice-presidents of the student council and the treasury are constantly trying to hack each other and keep the other out.
* In ''Bloody Monday'' the protagonist has many duels with opposing hackers, both in the first and second seasons.
* ''Franchise/GhostInTheShell'' has a few examples. It also averts the trope in ''[[Anime/GhostInTheShellStandAloneComplex Solid State Society]]''. Section 9 actually does cut the power when they start getting hacked (via fireaxe to the power cords).
* Happens in ''Manga/CannonGodExaxxion'' as both sides run a propaganda war against each other.
* In ''Demon Hunters: Dead Camper Lake'', two Cyborg DuelingHackers complete with ominously named programs with skull icons, while sitting face to face at the same table. Eventually, the losing cyborg shrugs, picks up his laptop and clubs his enemy to death.
* A slowed down and scaled up version: The ''Franchise/DotHack'' plot-lines for the ''[[Manga/DotHackLegendOfTheTwilight Twilight]]'' manga and anime involve a group of hackers breaking down an {{MMORPG}} while the game's programmers try and counter the slow infection.
* ''Anime/HanaukyoMaidTai''. In episode 8 the Jihiyou family hacks into the MEMOL supercomputer to steal information (and possibly activate the mansion's SelfDestructMechanism). Grace manages to defeat them.
* It's not really made that much of, but this happens between Yatouji Satsuki and Imonoyama Nokoru in ''Manga/{{X1999}}''. She is trying to hack into the computers of CLAMP Campus and he is trying to keep her out. Given that Satsuki is a technopath working in tandem with a supercomputer, the fact that Nokoru actually manages to make it combat instead of a CurbStompBattle is [[CrowningMomentOfAwesome pretty impressive]].
* Happens often enough in ''Anime/DennouCoil'', since realspace and cyberspace are linked. A particularly heated one happens between Isako and Fumie early on.
* While it wasn't precisely done by hackers (mostly), the ''Anime/DigimonAdventure'' movie introducing Diablomon featured a fight between the viral creature and the hero 'mons... [-IN CYBERSPACE-].
* Mohawked cyber-hacker Gogul was kept out of the action of the first episode of ''Anime/CyberCityOEDO808'' by being constantly engaged in a hacking duel against the "virtual ghost" who was fighting him for control of not only the functions of the massive Oedo skyscraper the episode was set in (including the gyroscope that kept the ridiculously-tall structure stable), but also the 30 gigawatt satellite laser canon orbiting overhead, leaving Sengoku and Benten to handle all the physical stuff.

[[folder:Comic Books]]
* Oracle and [[EvilCounterpart Calculator]] faced each other online several times in ''ComicBook/BirdsOfPrey''. Typically, it was to get the other's location so they could send superhuman agents to arrest/kill each other.

[[folder:Films -- Live-Action]]
%%* ''Film/JohnnyMnemonic''.
* Part of the climax of ''Film/{{Hackers}}''. Also the scene where Dade tries to take over the TV studio. In reality, it's two robot arms trading a videotape. In Hollywood it's two titans meeting on the battlefield, if the kung fu clips interspersed with the robot arms and neat visual effects surrounding Dade's head are supposed to mean anything.
* The Film/JamesBond film ''Film/GoldenEye'' has a world map where the audience can see how the tracing back of the hacker works (in Hollywood!). The backtracing map is trivial to implement (traceroute, [=GeoIP=], Google Maps, whatever takes your fancy), its just that fancy {{Viewer Friendly Interface}}s tend to get in the way of most useful network administration or abusing activities. Also, PlayfulHacker Boris kills time by hacking into Western computers and taunting his opponents as they try to thwart him. He even thinks of unplugging his computer in the end, when he gets hacked back. He doesn't just pull the cable out though, but rips out whole racks of gear and throws them on the floor.
* In ''Demon Hunters: Dead Camper Lake'', two Cyborg DuelingHackers, complete with ominously named programs with skull icons, while sitting face to face at the same table. Eventually, the losing cyborg shrugs, picks up his laptop and [[FightingDirty clubs his enemy to death]].
* In the first ''Film/ResidentEvil'' movie Kaplan has a hacking duel with the Red Queen [=AI=] to bypass her defenses.
* ''Film/TheCore'' treated Rat's interaction with security systems this way, as though he were dueling with the security programmer. After breaking into DESTINI and shutting it down, "Your kung fu is not strong."
* In ''Film/WhoAmI'', two hackers with the alias ''[=WhoAmI=]'' and ''MRX'' try to outgambit one another.

* A regular element in Creator/VernorVinge's [[HugoAward Hugo]]-nominated novella, "Literature/TrueNames", especially in the climax, where Mr. Slippery and Erythrina are fighting the BigBad for control of the world's computer systems, including missile launch codes and military {{Kill Sat}}s.
* ''Literature/AFoxTail'' quickly switches from Vulpie controlling everything with an internet connection to Vulpie struggling for control against his own robotic duplicate Evil Vulpie.

[[folder:Live-Action TV]]
* On ''Series/{{Alias}}'' Marshall (the resident Omnidisciplinary Nerd) was in a hacking duel at least once, as someone tried to break into [=SD6=]'s system.
* ''Series/{{Smallville}}'', as Chloe tries to keep hackers out of Watchtower.
* ''Series/{{Leverage}}'' :
** Hardison got into one of these in "The Two Live Crew Job". Bonus points for the fact that the antagonist is played by Creator/WilWheaton.
--->'''Hardison:''' Chaos. I heard you were in jail. Guess I was wrong.\\
'''Chaos:''' Alec Hardison. [[LameComeback I heard you sucked]]. Guess I was right.
** When they re-match later in the episode, Chaos uses the oft-mentioned MundaneSolution (CutTheJuice) on Hardison's rig in his van. [[spoiler: Hardison had already set up a hand-cranked generator so he could restart all his equipment and come back online to save the day]]
** [[ClassyCatBurglar Parker]] also had a [[CookingDuel pickpocketing duel]] with her opposite number as well. This ends up backfiring, as the guy suddenly finds a lot of his stuff missing and immediately orders a lockdown.
* ''Series/CriminalMinds'':
** This is the set-up for a sort of online MeetCute between Penelope Garcia and her soon-to-be-boyfriend, Kevin Lynch, with Garcia as the hacker.
** It also happens once when Garcia '''lost''' and is out of commission all day while she rips apart her computer (physically) to get it running again.
* Used quite often in ''Series/{{NCIS}}'', predominantly with Abby and/or [=McGee=] against any villain of the week who has a modicum of techno savvy who is trying to hack them. Subverted in one episode where Gibbs, who is notoriously bad with technology and especially computers, does, in fact, simply pull the plug when the aforementioned brainy duo are being overwhelmed by a particularly skilled hacker. In fairness, the reason they can't typically do that is because they need that computer online to do [[FridgeLogic whatever they were doing on it in the first place]]. Especially since it's frequently time-sensitive.
* Kyle and Jessi do this in a second-season episode of ''Series/KyleXY''.
* A legendary duel occurs early in Season 7 of ''Series/TwentyFour'' between Chloe and Janis.
* During the Chairman arc of ''Series/WalkerTexasRanger'', at one point the hacker working for the BigBad and the one on Walker's team (who have some prior history between them) get into a duel while trying to crash Walker's plane and trying to save it respectively.
* In "Series/{{Chuck}} Versus the Hack-Off", Chuck has to participate in the episode's titular "hack-off" (a competition where hackers have to outduel their competition) in order to get some dirt on the villain of the week.
* Generally averted in ''Series/PersonOfInterest''. Most hacking affairs are entirely one-directional with the hacker working against the system security and either succeeding or failing to reach their objective. In the three cases where an enemy counter-hacks, the situation is generally resolved by [[CutTheJuice powering down the hacking device]] or [[CuttingTheKnot destroying it.]]
* In the ''Series/DoctorWho'' episode "[[Recap/DoctorWhoS33E6TheBellsOfSaintJohn The Bells of Saint John]]", the Doctor engages in this with the Shard organization when he hacks and [[ItMakesSenseInContext reverses an upload of Clara's soul]].
* ''Series/{{Arrow}}'':
** The episode "[[ArrowS2E14TimeOfDeath Time of Death]]" is all about this, with Felicity engaging in a hacking war with the Clock King.
** Two seasons later in "[[Recap/ArrowS4E12Unchained Unchained]]", she gets into it again with [[spoiler: her father]] the Calculator.

[[folder:Tabletop Games]]
* Can happen in {{Cyberpunk}} games when a hacker tries to break into a computer system guarded by defending programmers. For example, in ''TabletopGame/{{Shadowrun}}'' adventures whenever a decker tries to penetrate a system protected by defense deckers (known as "spiders").
** Since the Matrix in ''Shadowrun'' employs copious amounts of YourMindMakesItReal hacking duels between deckers and especially Technomancers can resemble a WizardDuel.
* Special mention goes to ''TabletopGame/{{Infinity}}'', where hackers can and will end up in duels where the loser's head explodes.

[[folder:Video Games]]
* According to emails in ''VideoGame/DeusExHumanRevolution'', Pritchard aka "[=Nucl3arsnake=]" got into one of these with Arie van Bruggen aka "Windmill". Pritchard managed to hold his own and would have won if Windmill hadn't discovered Sarif's hidden backdoor access.
* As ''VideoGame/{{Uplink}}'' is all about hacking, this is inevitable; lingering around the backdoor of a computer network brings you closer to the target system carrying out a back-trace, and there's also the risk of the system administrator coming online to deal with you.
* The SpiritualSuccessor ''VideoGame/{{Hacknet}}'' also has an example. [[spoiler: During a certain mission, [[TheCracker Naix]] will trace you, delete a file on your in-game PC and then execute a forkbomb to force a reboot.]]
* In ''VideoGame/InjusticeGodsAmongUs'', when the Alternate Universe Cyborg (who's working with Superman) finds his Main Universe counterpart trying to hack into the Watchtower's teleporters (and having beaten alternate Catwoman in the meantime), he sends a virus to his systems to hold him in place. Cyborg immediately counters by hacking into his double's systems to do the same. They stand before each other, using holographic screens to hack into the other's cybernetics for a good while, until they decide that isn't working and go on to just beat the crap out of each other.

[[folder:Visual Novels]]
* In ''VisualNovel/InvisibleApartment'', the protagonist tries to go after a hacker who nearly got her caught, but since the hacker can't be tracked directly, the "duel" eventually involves physically trying to track down the actual locations from which the other hacker could connecting.

[[folder:Web Comics]]
* A sequence in ''Webcomic/{{Megatokyo}}'' featured this.
* A CurbStompBattle [[http://xkcd.com/341/ happened in]] ''Webcomic/{{xkcd}}''.

[[folder:Real Life]]
* ''[[http://en.wikipedia.org/wiki/The_Cuckoo%27s_Egg_%28book%29 The Cuckoo's Egg]]'' is a first-hand account of real-life Dot Combat from 1986. Clifford Stoll was asked by his supervisor to find the cause of a $0.75 billing anomaly in the accounts; over ten months, he followed the trail from that, to a hacker who was breaching American military networks looking for information on the Nuclear and SDI programs and selling what he stole to the KGB.
** This story is notable for being the first properly documented case of computer hacking: Clifford Stoll was an astronomer, trained to document what he did in detail, and with the curiosity of a scientist - as opposed to the standard response of an IT guy, who would usually have just locked out the offending user accounts and forgotten all about it.
* Hackers from Taiwan and China have had actual hacking feuds going on. After all, why not try to hack your countries most likely enemy and get sympathy from your nearest neighbors, rather then making them mad?
** Israel and just about every Arab nation around also have this going on.
* Allegedly, the internet has recently been slowed down by a 'war' that started when [[http://digitaledge.excite.co.uk/monster-revenge-cyberattack-against-anti-spam-firm-causes-global-internet-slowdown-N45345.html SpamHaus, a non-profit organization that provides anti-spam services, decided to blacklist sketchy Dutch web filtering firm CyberBunker, who didn't take it lightly. They retaliated apparently not only with a massive strike of the Distributed Denial of Service (DDoS) kind - but also with a more vicious Domain Name System (DNS) attack.]]
* [[http://en.wikipedia.org/wiki/Core_War Core War]] is a nerdier version of gladiator fighting. Programmers write small "warrior" programs in a special language called Redcode, which are then released into a simulated computer to fight to the death.
* There are actual competitions - sponsored by technology companies - in which a team of programmers have to set up and operate a computer system that performs some function while a second team tries to hack into and take down the system.
* A [[https://en.wikipedia.org/wiki/Tiger_team Tiger Team]] can be thought of as a version of this: the security system they are trying to break is not always computer based, but the central notion - pitting two technological experts against each other - is very similar.