Great White Shark
A great white shark pictured in South Africa, Oct. 19, 2009. Getty Images

A terrifying footage showing the moment a great white shark going too close to a scientist filming underwater footage of the animal swimming around went viral. The video shows the 12-foot-long shark showing its sharp teeth as it bites the GoPro camera used by the scientist in the waters near Monomoy Island, Massachusetts.

Scientist Greg Skomal, who was in the U.S. on Sunday for a research trip, saw the shark coming close to him and attacking the device with which he was filming the predator. The marine expert from the Massachusetts Division of Marine Fisheries (DMF) captured the incredible footage.

Read: Fishermen Catch Largest Blue Shark Ever Captured In British Waters

The video titled "camera meets shark" was posted online by Massachusetts DMF with a caption that read: "Every week is shark week for DMF Scientist Greg Skomal. ... Check out this amazing underwater footage of one of the regions visiting white sharks from yesterdays research trip."

The DMF confirmed that the scientist escaped unhurt in the incident and his camera, which was attacked by the shark, was also not damaged.

Skomal has been working with the Atlantic White Shark Conservancy, which supports great white shark research, education, and conservation.

"By tracking local movements, scientists can work with local officials to help keep the public safe and by monitoring large scale movements, we can learn more about shark behavior once they leave the Cape," the group said. "Public education on great white sharks will bring a greater awareness and appreciation for this vulnerable apex predator."

"By supporting research and education, the Atlantic White Shark Conservancy is taking steps to ensure the future of this magnificent species," it added.

Watch the video below.

Recently there have been several encounters of swimmers and professional photographers or researchers coming close to great white sharks. In some cases, the sharks have also attacked those in the waters near them.

Photographer Phil Bonds got lucky when he was able to snap a picture of 16-foot great white a mere inches away from him while diving last year off Guadalupe Island in Mexico, reports said Monday. Bonds' photo, posted on Facebook and his personal photography website, was widely circulated on social media.

“I was looking at the camera, at him and all of the sudden I see teeth and an open mouth and it’s coming right at me,” Bonds told AZ Family on Monday.

Read: Shark Attacks 2 12-Year-Old Girls On South Carolina Beach

“The Legend (name of shark) was pretty jazzed up and the crew had pulled all of the baits in preparation for our departure from Guadalupe,” he wrote. “The stuff hanging from his lower jaw isn’t dental floss. Earlier during the day, he had scored a tuna snack and a piece of biodegradable twine the crew was using got caught on one of his lower teeth.”