关于"cmd.exe ftp.exe的解决方法"

本文分享了一种解决cmd.exe与ftp.exe异常启动的方法,通过禁用SQL Server中的扩展存储过程xp_cmdshell,成功阻止了可疑进程的自动运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


 关于"  cmd.exe    ftp.exe的解决方法"


前些日子偶的机子也出此问题!很是头疼啊!用了几款杀毒软件如:NOD32、瑞星、Mcafee等都无济于事!只有Mcafee查出在system32下发现两个文件eq和tt,但清除掉后,过上一会就会自动生成了!总是无发彻底清除!

后用木马杀客v5.31查看网络状态,发现1433访问量非常大!1433不是sqlserver的默认端口嘛?说明有人在连接我的数据库(机子上装有slqserver2000用来临时测试用),同时还发现ftp.exe进程在访问一个远程计算机的端口,不知道在下载什么!估计不是什么好东西!看来偶的机子是被人监控了!怎么办?关掉ftp.exe和cmd.exe两个进程后!没多久就又自动被打开了!但我发现被打开的时间没有规律!有时很快就被打开调用,有时则很长时间才又会出现!看来是被别人手动的执行的呢!仔细想了下!看来问题是出在sqlserver 上了,到网上查了下相关资料,最后注意到这个存储过程上xp_cmdshell,网上资料解释说:

xp_cmdshell 操作系统命令外壳 。这个过程是一个扩展存储过程,用于执行指定命令串,并作为文本行返回任何输出。

一般情况下,xp_cmdshell对管理员来说也是不必要的,xp_cmdshell的消除不会对Server造成
  任何影响。
   可以将xp_cmdshell消除: 
=================================================================
 xp_cmdshell的删除和恢复 
 删除扩展存储过过程xp_cmdshell的语句:
exec sp_dropextendedproc 'xp_cmdshell' 

恢复cmdshell的SQL语句
EXEC sp_addextendedproc xp_cmdshell ,@dllname ='xplog70.dll'

在sqlserver的query analyer中运行以下命令就可以去掉sa的xp-cmdshell权限: 
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[xp_cmdshell]') and OBJECTPROPERTY(id, N'IsExtendedProc') = 1) exec sp_dropextendedproc N'[dbo].[xp_cmdshell]' GO

一般SQL2000是通过下面语句恢复: EXEC sp_addextendedproc xp_cmdshell ,@dllname ='xplog70.dll' 
而SQL97是通过下面语句恢复 EXEC sp_addextendedproc xp_cmdshell ,@dllname ='xpsql70.dll'

sp_addextendedproc'xp_cmdshell','xpsql70.dll' (sql 7.0) sp_addextendedproc'xp_cmdshell','xplog70.dll' (sql 2000) 
 

=================================================================




   
  [经验]
   最好把Server的xp_cmdShell存贮过程消除。

于是便将其关闭掉!呵呵。。。。再用木马杀客查看网络状态!哈。。1433端口也比较正常了,而且ftp.exe和cmd.exe也再没有出现过了!看来问题确实出在安全设置上啊!把这次经历贴出来,希望碰到同样问题的朋友能有个参考了!
 

 

Star FTP Server Freeware for non-Commercial use ================================================ Copyright (c) 2005 - Fightersoft Multimedia SRL e-mail: fightersoft@gmail.com site: http://www.fightersoft.ro SOFTWARE LICENSE AGREEMENT & DISCLAIMER -------------------------------------------------------------------------------- BY INSTALLING OR USING THIS SOFTWARE YOU INDICATE YOUR ACCEPTANCE OF THIS AGREEMENT. IF YOU DO NOT ACCEPT OR AGREE WITH THESE TERMS, YOU MAY NOT INSTALL OR USE THIS SOFTWARE ! LICENSE AGREEMENT Star FTP Server is a freeware software application, free of any charge for non-commercial use. For commercial use, please contact Fightersoft Multimedia SRL. This Limited Use Software License Agreement (the "AGREEMENT") is a legal agreement between you ("LICENSEE"), the end-user, and Star FTP Server author ("AUTHOR") for the use of the Star FTP Server software product, and may include associated media, printed materials and any "online" or electronic documentation ("SOFTWARE"). By using this SOFTWARE or storing this program on a computer hard drive (or other media), you are agreeing to be bound by the terms of this AGREEMENT. If you do not agree to the terms of this AGREEMENT, you may not install or use the SOFTWARE and you must delete it from all storage media. This SOFTWARE may be distributed freely on online services, bulletin boards, or other electronic media as long as the files are distributed only "AS IS" in this installation package. This SOFTWARE may not be distributed on CD-ROM, disk, or other physical media for a fee without the permission of the Author. The SOFTWARE may not be bundled or distributed with any other package without written permission of the author. The SOFTWARE is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. You may not alter this SOFTWARE in any way, including changing or removing any messages or windows. You may not decompile, re
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值