Jump to content

coldfire

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

coldfire's Achievements

Newbie

Newbie (1/14)

  1. # find our targets nmapScan = issue('nmap', '-sP','-oG','-', gateway+'/24') hostScan = [] for line in nmapScan.splitlines(): if 'Host' in line: line = line.replace('Host: ','').replace(' () Status: Up','') if ip != line and gateway != line: hostScan.append(line) That's the modified function
  2. I´ve been trying to use your script and I run into some trouble, first, the nmap output that your script was using was differente from the output nmap was sending here (mine shows the latency, I'm using nmap v5.0) that was easy to solve. I've modifed the "issue" command to use the greppable output (-oG) and modified the "replace" command accordingly , after that I've noticied that the hostScan was never receiving any ip, the source of this problem was because using the "not in" comparison it was checking for the existence of a substring so a gateway 192.168.1.1 and an ip 192.168.1.105 would return false and this made the script fail to add any ip to the list. The solution is pretty simple, just replacing the "not in" to != was enough. Anyway, thanks for the great script, I hope I was able to help, and sorry for any english mistakes since it's not my primary language
×
×
  • Create New...