查看端口并杀进程python脚本代码
作者:admin' or 1=1 时间:2022-06-26 21:58:32
我就废话不多说,直接上代码吧:
# -*- coding: utf-8 -*-
import os
out=os.system('netstat -aon|findstr "25"')#25端口号
print(out)#输出进程
out=os.system('tasklist|findstr "3316"')#3316进是程
print(out)#输出程序名字
out=os.system('taskkill /f /t /im MESMTPC.exe')#MESMTPC.exe程序名字
print(out)#
依次手动执行每个命令
来源:https://blog.csdn.net/u013187790/article/details/80700951
标签:端口,杀进程,python
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python 读取、写入txt文件的示例
2023-09-29 22:04:18
![](https://img.aspxhome.com/file/2023/7/63237_0s.png)
数据库技巧——MySQL十大优化技巧
2011-01-31 16:44:00
![](https://img.aspxhome.com/file/UploadPic/20111/2011131175530832s.jpg)
Mootools 1.2教程(9)——输入过滤第二部分(字符串)
2008-12-01 12:25:00
phpMyAdmin安装配置方法
2009-09-09 20:15:00
如何让框架的网页背景透明
2008-04-08 14:24:00
oracle-快速删除重复的记录
2008-01-16 19:12:00
对Python Pexpect 模块的使用说明详解
2022-10-24 02:14:09
Python实现向服务器请求压缩数据及解压缩数据的方法示例
2023-03-14 05:02:08
Go事务中止时是否真的结束事务解析
2023-07-07 11:35:35
你喜欢篮球吗?Python实现篮球游戏
2023-10-26 00:28:36
![](https://img.aspxhome.com/file/2023/6/68456_0s.png)
python self,cls,decorator的理解
2023-12-21 00:09:35
Python用list或dict字段模式读取文件的方法
2022-07-16 18:29:07
spyder快捷键与python符号化输出方式
2023-08-23 11:58:24
画好线框图的20个步骤
2009-09-01 19:46:00
长文章自动分页asp实例-支持HTML
2007-10-10 21:29:00
基于Python制作打地鼠小游戏
2022-04-07 09:13:34
解决大字段在Form中Post出错的方法
2008-04-17 14:00:00
为您解读CSS优先级
2009-06-18 18:29:00
![](https://img.aspxhome.com/file/UploadPic/20096/18/01-66s.gif)
Microsoft SQL Server数据库开发问题详解
2009-10-23 14:16:00
天气预报调用代码
2008-11-18 15:59:00
![](https://img.aspxhome.com/file/UploadPic/200811/18/g20081115162112-94s.jpg)