Thread: Opening files without permissions

  1. #1
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002

    Opening files without permissions

    Is it possible to open files(that are in use) if they were opened without sharing read access?
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

  2. #2
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    I hope not.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Visalia, CA, USA
    Long story short, yes. But I suffice to say, its a bit over your head.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    There are several ways - some much harder than others.

    The easiest I can think of is to simply inject your code into the process that has the file open. A single process can open a file multiple times without sharing.

    Three Ways To Inject Your Code Into Another Process

    If you don't know which process has the file open, it gets a little harder


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Opening files.
    By omnificient in forum C Programming
    Replies: 9
    Last Post: 02-25-2008, 02:05 PM
  2. Opening ASCII files in C?
    By Mavix in forum C Programming
    Replies: 6
    Last Post: 04-25-2007, 02:23 PM
  3. Need help opening a series of files
    By ramparts in forum C Programming
    Replies: 9
    Last Post: 11-14-2006, 05:49 PM
  4. Opening files with UNICODE file names
    By decohk in forum Linux Programming
    Replies: 2
    Last Post: 11-09-2006, 05:25 AM
  5. Opening files with korean file names
    By tek in forum C++ Programming
    Replies: 4
    Last Post: 08-28-2003, 10:22 PM