A former Jet2 IT contractor with a grudge against the firm has been jailed after his cyber-attack shut down the airline's computer network for 12 hours.
A court heard how only fast-thinking by one member of staff at the airline prevented Scott Burns' actions being a "complete disaster" for the company.
Despite that intervention, the company estimated 27-year-old Burns's attack cost it £165,000 in lost business, the court heard.
Jailing Burns for 10 months, Judge Andrew Stubbs QC heard how the motive was revenge because Burns was unhappy about how Jet2 dealt with a disciplinary matter against him relating to an incident at a "roadshow in Benidorm " in 2017.
No further details of the incident were outlined in court.
Judge Stubbs told Burns: "What you intended to do was to cause as much damage to Jet2's computer system as you could.
"But for the prompt measures of an employee of Jet2, this would have been disastrous and brought their computer system crashing down.
"This went far beyond being mischievous. This was a revenge attack for a perceived slight you had suffered."
Judge Stubbs rejected a plea from Michael Walsh, defending, to suspend Burns's sentence.
The judge said he needed to send a message about the "pernicious and far reaching impact" of cyber-crime and to "those who are minded to commit this type of offence".
Prosecutor Rebecca Austin told the court Burns used logins he still had to access the system and delete all user accounts, including those with admin privileges, in January 2018.
She said one quick-thinking IT worker in the firm managed to create a new, hidden admin account as the attack was ongoing and, through this, was able to avert a "complete disaster" and rebuild the accounts from a back-up.
The prosecutor said Burns, of Morley, Leeds, also accessed the email account of Jet2 chief executive Steve Heapey.
The defendant pleaded guilty to eight counts under the Computer Misuse Act at a previous hearing at Leeds Crown Court.
A Jet2 spokesman stressed that Burns had not been an employee of Jet2 but worked for IT contractors Blue Chip.
He said: "We welcome this sentencing, which sends out a strong message to others.
"We would also like to thank the National Crime Agency and the Crown Prosecution Service for pursuing this case.
"Our IT teams initiated a quick and comprehensive response, and there was no loss or theft of any customer, supplier or group data whatsoever."