After going through the code under parseNmap(filename) I found the following:
The below variables are not used:
ipList=[]
stateList=[]
serviceList=[]
Line 205 and 209 uses same code which executes on either conditions
The statement is: tmpportsList.append([str(ip),str(services.port),services.protocol,services.service])
After going through the code under
parseNmap(filename)
I found the following:The below variables are not used:
ipList=[]
stateList=[]
serviceList=[]
Line 205 and 209 uses same code which executes on either conditions The statement is:
tmpportsList.append([str(ip),str(services.port),services.protocol,services.service])
My changes: