I play on the PC, so I do not know of any tricks that would give you unlimited caps.
Probably the best thing to do is to earn caps legally by building a water purification farm. I initially started doing that a Starlight Drive. I began with simply putting in 6 water pumps near the workbench that would generate anywhere between 9 - 14 purified water per day. Then I installed a large generator and two industrial water purifiers (40 purified water each). I generally get between 60 - 75 purified water per day. I surround them with a wall just in case... but Starlight Drive was never attacked. I have since started to build up the settlement and have 9 settlers there.
Scrap the radioactive barrels to get rid of the radiation.
Based on my charisma (8 ??) and charisma boosting clothes I can sell each water for 16 caps. That means every time I visit Starlight Drive there is 960 to 1200 caps worth of water to sell. Note, water does not automatically accumulate over the days. Water production stops when the game places water in the workbench. You must remove it before any more water is generated.