I had to replace my hood struts the other day.  Essentially I would open the hood on my 2006 Dodge RAM 1500 and there wasn’t enough strength left in the hydraulic hood struts to keep the hood lifted.  I ended up having to take a scrap piece of 2×4 wood and jam it to keep the hood up.

So I looked around the local part places and it seemed to be more money that some I could find on Amazon.  I ended up purchasing the hood shocks/struts at this paid link:

ARANA Qty(2) 4364 Front Hood Shocks/Strut/Front Lift Supports/Gas Springs Compatible with 2002-2010 Dodge Ram 1500/2500/3500/4500/5500 (paid link)

Once they arrive, you can probably figure it out yourself, but if not there are many hood strut videos available on YouTube, but I found this one useful.