I am planing to develop an application using python 2.6 which should scan my company network (which is a domain ex: www.xyz.com) and list all systems. Our systems contains both Linux and Windows.
Asked
Active
Viewed 54 times
1 Answers
1
Here's a simple script I just made for you. Install Nmap on a Linux machine and make a chron tab to run this script once a day or something and it will output that XML file that is referenced in the script.
import os
os.system("nmap -A -O -oX XML.XML target.whatever")

thesonyman101
- 791
- 7
- 16
-
does nmap works on windows also. i am trying for a a multi-platform code. For time being Windows and LInux – Rao Aug 09 '16 at 05:39
-
Yes it does work. :) Heres a link, https://nmap.org/book/inst-windows.html – thesonyman101 Aug 09 '16 at 05:41
-
And instead of using cron you could do something like this http://stackoverflow.com/questions/15088037/python-script-to-do-something-at-the-same-time-every-day – thesonyman101 Aug 09 '16 at 05:43