Hi all,
I am working on an academic project where I need to be able to run port scans from a C# WPF desktop application.
I had a little brainwave last night (whilst waiting for the longest nmap scan to run in history) on how I can improve my application, but I’m not even sure it is even possible…
The idea would be to download and install Nmap locally to the windows machine and run the commands via my application behind the scenes silently on the command line think of it on the lines of SPARTA.
From my research this can be done by a batch file that I can’t really see working… is there a way to just run this silently?
e.g PowerShell.exe -windowstyle hidden nmap -sV -sT -Pn -sC -T5 -O xxx.xxx.xxx.xxx
I would then take the output from that scan into my application results page.
So add IP address in here…

Then the detailed results end up in here…

For those that are intersted, the full code base is here:
(Yeah, I know the UI is cheesy as hell, its meant to be… (it’s also animated ))
Any help or advice on things to google or to take over to stack for a formulated question would be appreciated.