Hosts Egypt beat Italy 4-2 in a thrilling climax to the group stage of the FIFA Under-20 World Cup to join the Azzurrini in the Round of 16.
Ahmed Shoukri scored twice in the first half, either side of Umberto Eusepi's neat finish for Italy.
Michelangelo Albertazzi levelled again for the Azzurrini with a header early in the second half, before Bogy scored with his first touch of the match with a diving header after coming on as a substitute.
Bogy then got his second ten minutes from time, chesting the ball down and then volleying the ball into the net to secure the Pharaohs' passage into the last 16.
Francesco Rocca's Italy were already guaranteed a place in the knock-out stage, as four points was enough to go through as one of the best four third-placed sides, but wanted to top the group with a positive result at Cairo's International Stadium.
The win means Egypt go through as Group A winners, Paraguay, who drew 0-0 in their final game against Trinidad & Tobago, as runners-up and Italy qualifying in third.
[FIFA Under-20 World Cup 2009] - [Italy squad]