mojocaster
MIS
Quick situation:
1. I am not a coder, nor do I pretend to be one
2. I use the same tools a lot, and for the sake of consistency, I decided to script their use using perl
3. As of yesterday, I knew nothing about perl
4. I created my first script which automates scans using nikto, nmap and nessus.
5. As part of the script, a text file is created using nano. Each line contains one IP address and that's it.
6. Some of the tools I use can refer to a "target file" and parse it themselves. Some cannot.
7. For those that cannot, I want perl to look at that file, and basically "feed" it line by line to the over all tool command so that it can scan each IP address separately.
8. Darn if I can do what #7 says
So basically, if I have a command that goes like this:
tool <targetip>
I want for perl to look at the defined target file.txt, and grab each IP address one by one, and feed it into the command above... I hope I am making sense.
Thanks for any help you may be able to bring me on this!
PS: good thing I am not a coder by trade... my kids would go hungry many a night...
1. I am not a coder, nor do I pretend to be one
2. I use the same tools a lot, and for the sake of consistency, I decided to script their use using perl
3. As of yesterday, I knew nothing about perl
4. I created my first script which automates scans using nikto, nmap and nessus.
5. As part of the script, a text file is created using nano. Each line contains one IP address and that's it.
6. Some of the tools I use can refer to a "target file" and parse it themselves. Some cannot.
7. For those that cannot, I want perl to look at that file, and basically "feed" it line by line to the over all tool command so that it can scan each IP address separately.
8. Darn if I can do what #7 says
So basically, if I have a command that goes like this:
tool <targetip>
I want for perl to look at the defined target file.txt, and grab each IP address one by one, and feed it into the command above... I hope I am making sense.
Thanks for any help you may be able to bring me on this!
PS: good thing I am not a coder by trade... my kids would go hungry many a night...