Late penalties from Matthew Taylor and Jack Collison saw West Ham reach the League Cup quarter-finals with a 2-0 win at 10-man Burnley.
Taylor converted the first spot-kick 14 minutes from time after Jason Shackell was adjudged to have brought down Kevin Nolan.
Keith Treacy was then sent off for bringing down Collison in stoppage time, the Wales international picking himself up to send Tom Heaton the wrong way.
Earlier, Kieran Trippier had rattled the West Ham crossbar with a rasping free-kick at Turf Moor.
Defeat was Burnley's first in 12 games and ended the Championship leaders' eight-match winning streak, while for a much-changed West Ham side, victory came as a welcome boost after an indifferent start to the club's Premier League campaign.
Sean Dyche made four changes to his Burnley team with three regular starters rested and David Jones missing out through suspension.
Former West Ham man Junior Stanislas was among those recalled while Sam Allardyce made nine changes from Sunday's 0-0 draw with Swansea City, only James Tomkins and Mohamed Diame retaining their starting berths.
It was Stanislas who had the game's first effort of note in the 11th minute, taking on debutant Pelly Ruddock before fizzing in a low drive from 25 yards that Adrian had to tip behind.
From the resulting corner, Stanislas fed Danny Ings inside the box, Burnley's top scorer turning and firing a shot on goal that the goalkeeper parried over the bar.
The hosts enjoyed much the better of the opening half, with Treacy in the 20th minute and Stanislas on the stroke of half-time both testing Adrian from distance, but on both occasions the Spaniard was able to move comfortably and gather the ball.
The visitors started the second half with much greater attacking intent, Tomkins seeing his goalbound header cleared in the 52nd minute, before Joe Cole's acrobatic effort was ruled out for offside a minute later.
Burnley responded in the 57th minute, Treacy thumping a volley over Adrian's bar following a clever short corner between Ings and Stanislas.
The hosts then went agonisingly close 10 minutes later, Tripper thundering a 25-yard free-kick against the crossbar with Adrian well beaten.
Second-half substitutes Stewart Downing and Collinson then combined, the latter seeing his powerful effort from close range blocked by Shackell.
Six minutes later came the game's key moment as Modibo Maiga flicked the ball on and Nolan, only just on as a substitute, fell under the challenge of Shackell and the referee pointed to the spot.
Taylor stepped up and sent his penalty to Heaton's left, the goalkeeper getting fingers to the ball on its way into the top corner.
As the hosts pressed for an equaliser, Heaton's rushed clearance fell to Collison, who looked set to fire into the unguarded net before being brought down by Treacy, who saw red for denying a goalscoring opportunity.
Collison calmly converted the penalty to seal the win and send West Ham into the quarter-finals.
|Coach: S. Dyche|
for J. Stanislas 84'
for D. Edgar 90+2'
|Mumbai City name Anelka player-manager|
|Olivia the parrot predicts Japan to win Women´s World Cup|
|Lusitans coach blasts Bilic´s ´lack of respect´|
|Sakho eyes more Europa League wins|
|Gareca wants Peru to keep building|
|Chile ´no chance´ if Argentina produce their best - Diaz|
|Ocampos joins Marseille permanently|
|Europa League Review: Cloud-nine Brondby ignite opening round|
|West Ham 3 Lusitans 0: Sakho nets twice at start of Europa League journey|
|Holebas makes Watford move|
|Milan secure Adriano signing|
|Peru v Paraguay: Diaz counts cost of semi-final loss|
|Bastia hit out at reports of extra debt|
|Hernandez has successful surgery|
|Odemwingie signs one-year Stoke extension|
|Uth signs for Hoffenheim|
|Henen seals Everton return|
|Cattermole pens long-term Sunderland deal|
|United States v Guatemala: Klinsmann backs Dempsey ahead of Gold Cup warm-up|
|West Ham working on Jenkinson return - Gold|
|Milan agree deal for Bacca|
|Real buy back Vazquez from Espanyol|
|Richards leaves Swansea for Fulham|
|McShane signs for Reading|
|Giggs tells youngsters to seize US chance|
|Hammond pens Leicester extension|
|Only Schweinsteiger can decide Bayern future - Guardiola|
|Cech plans to play until he´s 40|
|Montoya arrives in Milan ahead of Inter move|
|Hernandez out of Gold Cup|
|US asks Switzerland to extradite seven FIFA officials|
|MLS Preview: Sounders seek momentum switch|
|Mexico 0 Honduras 0: Hernandez injury sours friendly|
|Hernandez taken to hospital|
|Garay in doubt for Copa America final|
|Wambach: USA peaking for World Cup final|
|Bassett ´an absolute hero´ despite own goal - Sampson|
|Japan 2 England 1: Late own goal breaks English hearts|
|Salvo quits as Valencia president|
|Costa not Ribery cover - Bayern director Sammer|
|Chile, Argentina deserve final spots - Mena|
|Ramos keen on United switch - Calderon|
|B36 1 The New Saints 2: Wilde leaves it late to secure advantage|
|Sevilla agree deal for Rami|
|Celtic snap up United teenager Janko|
|Beauvue passes Lyon medical|
|Roma bring in Falque|
|Coates completes permanent Sunderland switch|
|Vallecano to make charity donations from shirt sales|
|Angella commits to Watford|
|Gundogan pens new Dortmund deal|
|Juve reject €80million Barca offer for Pogba, says Marotta|
|Ruiz seals permanent Villarreal move|
|Mourinho respects Cech´s decision to quit Chelsea|
|Claridge excited by potential Pearson successors|
|Miranda completes Inter switch|
|Blind takes over as Netherlands coach|
|Mourinho: Premier League tougher to win than ever|
|Hamburg make Holtby move permanent|
|Southampton terminate Osvaldo contract|
|BREAKING NEWS: Swansea swoop for Eder|
|Abbiati extends Milan stay|
|Cruyff: Barcelona have lost their values|
|Vydra seals Watford move|
|Ambitious Clyne targets trophy haul with Liverpool|
|Claridge: Off-field incidents cost Pearson his job|
|Clyne becomes Liverpool´s sixth close-season signing|
|Imbula leaves Marseille for Porto|
|FIFA chief Blatter challenges critics to prove corruption claims|
|Distin joins Bournemouth|
|Bayern seal Costa deal|
|Arsenal confirm Diaby departure|
|Blatter to miss Women´s World Cup final|
|Bogdan sets sights on being Liverpool number one|
|Danilo eager to get started at Real Madrid|
|Leicester´s Wood joins Leeds|
|Porto confirm Atletico move for Martinez|
|Lloyd: Repetition key to netting penalty|
|Sheffield Wednesday job a ´dream´ for Carvalhal|
|´We played a complete game´ - Messi|
|Diaz upbeat despite heavy Copa loss to Argentina|
|Martino lauds Messi for selfless performance|
|Viviani makes surprise Verona switch|
|Estonian team wins cup match 31-0|
|No meeting with Arsenal has occurred - Vidal´s agent|
|United States 2 Germany 0: Ellis´ team reach World Cup final|
|Argentina 6 Paraguay 1: Messi leads Martino´s men to Copa final|
|UEFA Europa League Review: FK Zeljeznicar and FC Dacia Chisinau open with wins|
|UEFA Champions League Review: FC Pyunik make winning start|