kingooo Posted December 9, 2010 Posted December 9, 2010 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
iamtheky Posted December 9, 2010 Posted December 9, 2010 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" ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now