Or ....
Galvanized pipe and nipples
2 couplings or caps,
2 90's,
3 nipples at whatever lengths you need,
4-6 hoseclamps.
Make a u shape with the couplings or caps at the ends so the u dont slide thru the hose clamps and tighten clamps around ladder sides and u pipe.
Position clamp screws away...