Sign in to follow this  
Followers 0
kingooo

netsat in DOS how to close opened ports

3 posts in this topic

hi

how are you

if you type in DOS

netstat

automatically, will show all opened ports

what is the correct method to close this opened ports by autoit script

Share this post


Link to post
Share on other sites



Ports would be closed by killing the process that has it open -

maybe output the results of a "netstat -b" to a text file

then parse it for the strings between []

then loop through those running "taskkill /IM $string"


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0