Boston Police are investigating a shocking video that was posted to Facebook that shows a thrill-seeking teenager climb onto the roof of a moving Massachusetts Bay Transportation Authority (MBTA) subway car to perform dangerous stunts.

At one point - as his friend behind the camera yells, "Put your head down!" - the teen ducks just as the train passes under a bridge, narrowly avoiding certain death.

Police say they know who the teenager is and are working with his school to bring him and his friend who recorded the video into custody. Both are facing criminal trespassing charges.

Watch the crazy video from "Fox and Friends Weekend" above.

WATCH: Motorcyclist T-Bones Two Cars, Lands Between Them!

Violent Carjack-Hit & Run Caught on Tape Outside Miami Hotel

WATCH: Luckiest Cyclist in the World Cheats Death Twice

Boy Amazingly Not Hurt After SUV Runs Him Over

Massive Fireball After Fighter Jet Crashes into Apartment

VIDEO: Flash Flooding Forces Dramatic Rescue