The BatteringRam gem provides a nice interface to run continuous login attempts against a given url.