Two antennas back to back can make a variable attenuator.
Strip two cable ends having the center conductors poke out of the cables, and place cables near each other. If you make them about 1/4 wavelength center conductors you may get good VSWR on your attenuator.
Put them in a box to stop leakage. you can have from about 6 dB up to 40 dB attenuator ranges. You could probably put them in a metal box and make some slide mechanism or tuning screw arrangement to move them apart and set your attenuation level if you're mechanically clever.
One long cable with loss is another way to make an attenuator. It has very good VSWR too.
kch
PS: Attenuators with resitors always require 3 of them to make a X dB attenuator and maintain good VSWR. Two in series with one to ground (T type), or one in series and two to ground (Pi type). Search Resistive T or Resistive Pi attenuator and you'll find good details. I don't suggest trying this though with normal attenuators, usually companies make a tiny package that you insert into a microstrip package.