Jump to content
Sign in to follow this  
kingooo

netsat in DOS how to close opened ports

Recommended Posts

kingooo

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
iamtheky

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.