C# - Programmatically bypassing the .Net Framework Security

Discussion in 'OT Technology' started by Scoob_13, Sep 5, 2003.

  1. Scoob_13

    Scoob_13 Anything is possible, but the odds are astronomica

    Joined:
    Oct 5, 2001
    Messages:
    73,787
    Likes Received:
    38
    Location:
    Fort Worth. Hooray cowgirls.
    Basically I've written a small app to track logins and toss information regarding the login, the user's machine, and various system variables and information into a DB for tracking purposes. We're attempting to run it from a login script, where the script launches it from the %logonserver% folder, so the program runs under the "Intranet" security level for .Net - which throws a security exception due to the fact that it doesn't have sufficient rights since the code isn't "trusted."

    I can simply bypass it by copying it to the computer and running it from there, however that's unneeded bandwidth usage, which is something that I want to avoid.

    Anyone have any experience with getting these things to work? Even if the code was in VB I could translate (hint hint, Herb ;) )
     
  2. Scoob_13

    Scoob_13 Anything is possible, but the odds are astronomica

    Joined:
    Oct 5, 2001
    Messages:
    73,787
    Likes Received:
    38
    Location:
    Fort Worth. Hooray cowgirls.
    The answer is that you generate a login script to copy the file locally and just run it that way ;)


    If anyone was curious :o
     
  3. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!

Share This Page