Results 1 to 16 of 16

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Get a Mac moridinbg's Avatar
    Join Date: Dec:2004
    Location: 0x00000000
    Posts: 4,211

    ASP.NET Remote Process Start

    , ASPNET .

    - :

    , . , .

    2 . WMI. , WMI , . permissions Management Consoles WMI DCOM.

    credetentials . :
    1. , , WMI , .
    2. Production Server , .

    limited , Users Group, WMI .

    System.Management. , ConnectionOptions, ManagedPath, Scope .. . - .

    ( , , , (: ):
    Code:
    ConnectionOptions options = new ConnectionOptions();
    options.Username = "COMPUTER_NAME\USER";
    options.Password = "PASSWORD";
    options.Authentication = System.Management.AuthenticationLevel.PacketPrivacy;
    ManagementScope scope = new ManagementScope(@"\\COMPUTER_NAME\root\cimv2:Win32_Proc", options);
    scope.Connect()
    , exception.
    ConnectionOptions Authority, (, , , ). EventLog- , , Security Audit, Kerebros. ConnectionOptions NTLM.

    Authentication , Packet, PacketPrivacy.

    ,
    Code:
    //   ,     ,      
    options.Authority = @"Kerebros:\\COMPUTER_NAME"
    Exception- :
    1) Access Denied scope.Connect()
    WMI query-.

    2) RPC Service is Unavailable,
    , WMI DCOM.
    -----------------------------------
    SP2
    IIS , , 2003 Standart.
    .NET Framework 2.0 Visual Studio 2005


    , - (:

    , .

  2. #2
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    ISAPI extension ' WinAPI.

    :
    The LogonUser function attempts to log a user on to the local computer. The local computer is the computer from which LogonUser was called. You cannot use LogonUser to log on to a remote computer. You specify the user with a user name and domain, and authenticate the user with a plaintext password. If the function succeeds, you receive a handle to a token that represents the logged-on user. You can then use this token handle to impersonate the specified user or, in most cases, to create a process that runs in the context of the specified user.

    BOOL LogonUser(
    LPTSTR lpszUsername,
    LPTSTR lpszDomain,
    LPTSTR lpszPassword,
    DWORD dwLogonType,
    DWORD dwLogonProvider,
    PHANDLE phToken
    );

    ...
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  3. #3
    Get a Mac moridinbg's Avatar
    Join Date: Dec:2004
    Location: 0x00000000
    Posts: 4,211
    Managed Code. , API ((: . Framework- , , ...
    The LogonUser function attempts to log a user on to the local computer.
    .

  4. #4
    Registered User kernel_daemon's Avatar
    Join Date: Nov:2005
    Location: at 0000:7c00
    Posts: 940
    windows . .. com ? . dll (in-process) exe - stand alone GUIID . GUIID . C , . . , wrapper .
    An year spent in artificial intelligence is enough to make one believe in God.
    Powered by ArchLinux.

  5. #5
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    , . . ? , ? ?
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  6. #6
    Get a Mac moridinbg's Avatar
    Join Date: Dec:2004
    Location: 0x00000000
    Posts: 4,211
    . named pipe (:
    , , .

  7. #7
    Get a Mac moridinbg's Avatar
    Join Date: Dec:2004
    Location: 0x00000000
    Posts: 4,211
    . Wrapper , -, , .
    , , ( ).

  8. #8
    Registered User
    Join Date: Jul:2006
    Location:
    Posts: 480
    managed , , , RPC/COM/DCOM .NET . , .NET unmanaged code. Rpc-API-.

  9. #9
    Get a Mac moridinbg's Avatar
    Join Date: Dec:2004
    Location: 0x00000000
    Posts: 4,211
    framework e API-. , . :

    Code:
                ConnectionOptions options = new ConnectionOptions();
                options.Username = "COMPUTER_NAME\\USERNAME";
                options.Password = "PASSWORD";
                options.Authentication = System.Management.AuthenticationLevel.PacketPrivacy; *
                options.Impersonation = System.Management.ImpersonationLevel.Impersonate;
    
                ManagementPath path = new ManagementPath("\\\\COMPUTER_NAME\\root\\cimv2:Win32_Process"); **
                ManagementScope scope = new ManagementScope(path, options);
                scope.Connect();
                ObjectGetOptions obj = new ObjectGetOptions();
                ManagementClass classInstance = new ManagementClass(scope, path, obj);
                ManagementBaseObject inParams = classInstance.GetMethodParameters("Create");
                inParams["CommandLine"] = @"c:\Example.exe";
                ManagementBaseObject outParams = classInstance.InvokeMethod("Create", inParams, null);
    * PacketPrivacy user credentials.
    **Win32_Process , , . Win32_LogicalDisk

    NTLM.

  10. #10
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    .NET WMI (Windows Management Instrumentation), DLL-, COM RPC
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  11. #11
    Registered User
    Join Date: Jul:2006
    Location:
    Posts: 480
    icaci, , ... COM RPC unmanaged API , ... .NET, , ? , .

  12. #12
    Get a Mac moridinbg's Avatar
    Join Date: Dec:2004
    Location: 0x00000000
    Posts: 4,211
    System.Management layer WMI, framework-. MFC- layer Win32 API-. . . .

    tips - Framework-. ( multithreading ASP.NET).

  13. #13
    Registered User
    Join Date: Oct:2003
    Location:
    Posts: 4,317

  14. #14
    Get a Mac moridinbg's Avatar
    Join Date: Dec:2004
    Location: 0x00000000
    Posts: 4,211
    Update . .
    Network Share. System.Management.ImpersonationLevel.Imp ersonate , , Anonymous User, EventViewer-. System.Management.ImpersonationLevel.Del egation, Authority- Kerebros.

    Microsoft- ...

  15. #15
    UnRegistered User Nevermore's Avatar
    Join Date: May:2007
    Location: Sofia
    Posts: 615
    .NET remoting / WCF . , service- . ... , . , .DLLs . . run- xe- .

    http://www.codeproject.com/csharp/RemotingExec.asp

    Last edited by delian; 23rd November 2007 at 12:27. Reason:

  16. #16
    Get a Mac moridinbg's Avatar
    Join Date: Dec:2004
    Location: 0x00000000
    Posts: 4,211
    _ . . , , . .NET .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |