»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 09-20-2003, 10:04 AM   #1 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 17
Pritesh is on a distinguished road
Auto Text file write

Hi People,

I have an unusual one this time.

I have a folder that fills up with *.htm files as a result of another program running in the back round, it is a network scanner that scans for vulnerabilities on my network at work.
Now it is very tedious going through each *.htm file, so i want to make a batch/script file that will sort through the countless *.htm files and look for particular words that i am looking out for and put them in a text file with the private ip of the computer.
So there is a *.htm file that has "port 444=open/accesible" in one of the htm files, with the IP of that computer at the top of the file.
I want the script to look for "port 444" and "open" if found i want that to go in to a *.txt file in this format
0.0.0.0 (privateIP) "port 444" "open"
Any help would be excellent, as i am very much stuck with writing this bat file.

Thank you to anyone that offers assistance.
Pritesh

Pritesh is offline   Reply With Quote
Old 09-20-2003, 10:32 AM   #2 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Hmmm you could use GREP for windows to search through the text... not so sure about it pulling the IP out..

Typically I write up vbscripts to pull data like that so that is a possibility if you want to look into it.
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 09-20-2003, 11:32 AM   #3 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 17
Pritesh is on a distinguished road
Thanks for your help, but i can't change the scanner that they are using at work. Its custom made, apparently.
I've heard of a parse command that i can make through a batch file, that is what i am looking for. So if there is any help in writing a script i would be very grateful.
Thank you,
Pritesh
Pritesh is offline   Reply With Quote
Old 09-20-2003, 11:36 AM   #4 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 17
Pritesh is on a distinguished road
Whoops sorry,
I totally missed what grep was. Sorry m8.
It is sort of what i want, but it doesn't pull the ip address.
It is important that i get an ip address with the port info as well, that way i can tell which computer needs attention.
Thank you, grep is a very nice tool and will help me in other areas.
I do appologise for 'jumping the gun'
But i am still looking for an alternative.
Thanks guys, sorry to be a tire-some fool.
Pritesh
Pritesh is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 05:19 AM.