Metasploit mailing list archives

Reading RHOSTS from a file.


From: a10n3.s7r1k3r at gmail.com (Kashif Iftikhar)
Date: Mon, 23 Apr 2007 22:39:08 +0000

Hello,

  I need suggestions to implement a way to read target hosts from a
file similar to the RHOSTS parameter in most scanner modules of type
OptAddressRange. What would be the best way to implement it? Should I
try adding another option type say 'OptAddressRangeFromFile' that
takes in a filename and reads addresses from it and then converts it
into address range sets? Or creating a plugin that adds a command to
MSF say 'read_addresses_from_file' and stores it into the specified
option?

- Kashif.



Current thread: