Search Results - VBForums

Search:

Type: Posts; User: taigon

Page 1 of 6 1 2 3 4

Search: Search took 0.08 seconds; generated 3 minute(s) ago.

  1. Thread: App Domains

    by taigon
    Replies
    3
    Views
    1,021

    Re: App Domains

    Well, I found my answer. Once you load in the library into the new AppDomain there is no was to currently unload just that one AppDomain without unloading all of them.
    ...
  2. Thread: App Domains

    by taigon
    Replies
    3
    Views
    1,021

    Re: App Domains

    I just got a bit further. I managed to hook into the event handler on the other library but I still can't get it to run on the new AppDomain. It's telling me that the method within the call to...
  3. Thread: App Domains

    by taigon
    Replies
    3
    Views
    1,021

    Re: App Domains

    I just added the following code to he method being executed when ExecuteInNewAppDomain is called and I get "Type 'NiRDs.NiRDsApp' in assembly 'NiRDs, Version=1.0.0.0, Culture=neutral,...
  4. Thread: App Domains

    by taigon
    Replies
    3
    Views
    1,021

    App Domains

    So I'm a bit new to the AppDomains but I have most of it figured out. I've managed to create a new AppDomain within a WPF Application in the Application_Startup event, which calls a method that...
  5. Replies
    0
    Views
    5,837

    [RESOLVED] App Domains

    So I'm a bit new to the AppDomains but I have most of it figured out. I've managed to create a new AppDomain within a WPF Application in the Application_Startup event, which calls a method that...
  6. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    You certainly did help very much with several aspects especially re-directing the standard output/input. It took a while to get it through the named pipe to the client machine but it works flawlessly...
  7. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Hey Chris,

    Just to update you on my remote execution tool, I have sucessfully created a working application with a GUI interface that allows the creation of a remote processes on a Windows XP...
  8. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Yeah, that's what I thought. I'll give it a try again soon with the new service start code.
  9. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    I have just recently made a slight change to the way the service starts. I'm just waiting to test it. I will make sure that .Net 4.0 is installed on the test Win7 machine. Also, I should probably try...
  10. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Hey Chris,

    So what I did was copied that service template and compile a service that literally does nothing. I tested this service on an XP machine and it started fine. I tried on a Windows 7...
  11. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Yes I'll definitely take a copy of a service project that works and ill try compiling it and running it on a win7 machine that we have at work. It might just have something to do with the custom win7...
  12. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    I'm actually using visual c# express which doesn't give me a service template so I just started a new console app and inherit the servicebase.
  13. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    True, that loop does look strange and I don't know why I added it but it wasn't causing an issue in XP. The OnStart method of the service itself completes after starting the new thread....I dunno....
  14. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    I just recently changed it as you can see from the commented line and I just added the base.onstart(args). I haven't gotten to test it yet.


    using System;
    using System.Collections.Generic;...
  15. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Oh ok, so if that is true then my interactive prompts should still technically work. I haven't had a chance to test on Win 7 until now but I need to at least get the service started. I can't even...
  16. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Hi Chris, I did some digging and what I think the problem might be is that on Windows 7 machines, services are no longer permitted to communicate interactively with any window stations and my service...
  17. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Ok, Chris, I'm stuck.

    Just so you know, I don't use ANY WMI API for the windows service component of this tool.

    The main problem is that after I create a service on a remote machine, I can't...
  18. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    LoL, Ok, I'm gonna try to figure this one out then. Almost out of time for the day, lol. I switched to C# mostly because every job I look for out their in relation to programming are looking for C#...
  19. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Ok, I'm back at my desk now. What I was trying to say is how can I send just a single carriage return to the stdin handle without any actual data.


    public static void SendInput(string...
  20. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Lol sorry I'm in training at work right now. In your examPle to redirect input and output, the writefile function to send input to the process has a carriage return and a line feed followed by...
  21. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Hey Chris do you know off hand what character string would be used to send a return code to the stdin without specifying a command first. I currently use command + "\r\n" + "\r" but remOving the...
  22. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Let me know if you do so I can eliminate this second server executable. LoL
  23. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Service.exe -> [CURRENTLY LOGGED IN USER's SESSION]-> TargetGUIApplication.exe works fine.

    Service.exe -> [LOGONUSER ALTERNATE CREDENTIALS]->TargetGUIApplication.exe does not work. It launches the...
  24. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    This is the reason why I created a second executable to run with the server service to launch a new gui application as a different user. Now I have to do this again.
    ...
  25. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Hi Chris,

    And now I've finally got the option to launch the process as the currently logged in user working interactively and non-interactively.


    uint ConsoleSessionId =...
  26. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Hi Chris,

    After 3 days of messing around with this, I finally got CreateProcessAsUser to launch a process as another domain user under the system account and can perform this operation...
  27. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Hi Chris,

    I already have the duplication of the handles in place in the same manor. I'm going to try this actually and see if it works. Very strange because the same code works fine with just...
  28. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Hi Chris,

    I tried your suggestion of using CreateProcessAsUser. It seems that it works perfectly fine to launch an interactive process on the remote desktop from the SYSTEM account but as soon as...
  29. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Hi Chris,

    Actually, before I started messing around with everything, the only thing I did was try to pass the structure byref to the API function. This didn't work either. It may be though that...
  30. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    LoL, sorry about the hi-jacking. I got it to work properly now. Communication is working perfectly between the 2 server pipes.

    First it was the structure for the SECURITY_ATTRIBUTES. Had to change...
  31. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Hi Chris, I actually just figured it out. Now the only problem is my security descriptor string. I'll let you know as soon as possible.
  32. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Hey Chris,

    I really need some help right now. I haven't tried your last posting yet because I'm having an issue with the named pipe.

    The client side application opens a server based "Response"...
  33. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Nice, I'm going to try that out once I get around to adding the option to launch as the current user into my tool. Thanks Chris. I can't wait to get this finished! lol. Need more time in a day.
  34. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    I'm actually going to try out those 2 methods you have mentioned instead because I've been hearing that some virtual Windows environments have several explorer.exe processes running on the same...
  35. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    I've had the remote execution going for about a year now but they were solely interactive processes although the nice thing is that I could pull the security token from the Explorer process and...
  36. Replies
    62
    Views
    15,311

    Re: Redirect Process Input/Output with Windows API

    Alright Chris, I'm back and I'm going to redirect the input/output through a named pipe over the network:) I'll let you know how it goes.
  37. Replies
    53
    Views
    10,110

    Re: [RESOLVED] VB.Net CreateProcessAsUser API

    There ya go!
  38. Replies
    53
    Views
    10,110

    Re: [RESOLVED] VB.Net CreateProcessAsUser API

    Ok, here is the full code for the service running on the remote machine to obtain the process token from explorer.exe and create the process as the user.

    Private Declare Function...
  39. Replies
    53
    Views
    10,110

    Re: [RESOLVED] VB.Net CreateProcessAsUser API

    Hi Chris,

    I hadn't gotten around to it yet because I've been working on an enormous project that I've almost completed. I'm leaving the re-direction code until last. LoL. Thanks for your...
  40. Replies
    53
    Views
    10,110

    Re: [RESOLVED] VB.Net CreateProcessAsUser API

    As mentioned in this thread, I can't provide the code due to legality issues but if you use the correct API's from Pinvoke and follow these steps, you will be able to do exactly what I have...
Results 1 to 40 of 207
Page 1 of 6 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.