The magnetic behavior of dirty superconductors