Monday, September 23, 2013


I was trying to audit the IP Address of the company, where halfway (10PCs) I decided to write a python script to simplify the process.

Rather than opening up CMD and typing nbtstat -a "ipaddress" every single time, I add all of those command to a variable and a string so you only need to input the last digit of the address. be advised that the CLASS IP preset is 192.168.1.X network only, though you can edit the script simply.

 # NBTSTAT TOOL  
 restart = 0  
 import os,sys  
 while restart == 0:  
   ipaddress = raw_input("NBSTAT this address: 192.168.1.")  
   command = "nbtstat -a 192.168.1." + ipaddress  
   os.system(command)  
   raw_input()  
   os.system("CLS")  

You could download it here, remember you need python runtime to run this.

1 comment: