coz they are dived in the box
A foul does not have to be near the ball. A foul must occur (1) by a player, (2) on the field of play, (3) against an opponent, and (4) while the ball is in play. If the foul you describe is by a defender, against an attacker, in the defender's penalty area then play is stopped and a penalty kick awarded. Depending on the severity, it could also be misconduct.
A direct free kick awarded from 12 yards in front of the goal would be within the penalty area. It would have to be a kick awarded to the defense, because if a defender had committed a direct free kick offense at that location the restart would, instead, have been a penalty kick for the attackers.
If the penalty was successful, then no goal is awarded and the kick is retaken. If the penalty was not successful, then no goal is awarded and an indirect free kick is awarded to the defense. They will not get a 2nd shot at the goal because their own player infringed.
If a player fouls an opposing team player in their 'own penalty box' a penalty is awarded
Yes. An indirect free kick, for either team, may be awarded within the penalty area. Only the defense may be awarded a direct free kick in the penalty area.
An indirect free kick may be awarded in the penalty area. It is not promoted to a penalty kick. If it is in the goal area, the kick location must be moved away from the goal line to the top of the goal area (6 yards out).
When a foul, specifically a direct free kick offense, is committed by a defender, against an attacker, in the penalty area.
There are penalty kicks in soccer. A penalty kick is awarded when a defender commits a direct free kick offense while within his own penalty area.
When a player commits a foul in his own penalty area (the one surrounding the goal that he is protecting), such as pushing an opponent, a penalty kick is awarded to the attacking team, unless advantage is played. In some places, very young players do not use penalty kicks, such as U-8 games in the United States, and sometimes all free kicks are indirect.
"Foul" is a term used to describe an offence punishable by a direct free kick. If a defender fouls an attacker in the defender's penalty area then a penalty kick is the prescribed restart. There's a loophole in your question. What if the attacker fouls the defender in the defender's penalty area? A direct free kick is awarded to the defense.
A direct free kick is awarded when someone commits a penal foul: handling the ball, tripping or attempting to trip, striking or attempting to strike, kicking or attempting to kick, jumping at, charging, or pushing an opponent. The ball is placed at the spot of the foul, and a player on the offended team takes the kick. The ball is in play when it is kicked and moves. If a direct free kick is awarded within the kicking team's own goal area, the ball may be placed anywhere in the goal area for the kick (similar to positioning for a goal kick). If a direct free kick is awarded within the kicking team's own penalty area (including the goal area), the ball is not in play until it is kicked directly out of the area. If the direct free kick is awarded in the offending team's penalty area, a penalty kick is awarded instead.
Assuming you're talking about soccer... it depends on who is fouled. If it's the same team as the goalkeeper, a free-kick is awarded. However - if it's a member of the opposing team, that would mean a penalty is awarded