Five thugs pummeled a group of homeless men while they were sleeping on a Brooklyn sidewalk in a vicious attack caught on video, cops said.

The muggers punched and kicked the four homeless in front of a storefront on 60th Street near Fort Hamilton Parkway in Borough Park at about 6:45 a.m. on Feb. 23, according to police.

One of the victims was left in a coma and the attackers got away with just $5, cops said.

During the assault on the first victim, one of the fiends repeatedly shouted “money” before approaching a second homeless man and kicking him in the head.

The pack of brutes took turns beating the men, at one point stomping on one victim’s head.

Two of the victims, a 51-year-old and a 41-year-old, were rushed to a hospital soon after the attack.

Later that day, another of the homeless men complained of having head pain and was taken to NYU Langone Hospital-Brooklyn, cops said.

He later slipped into a coma at the hospital, a police source said.

Police are searching for the muggers.