CFanatic

Go Back   CFanatic > Programming > Win32 Programming

Join CFanatic Forum Now

How to bypass security check while opening a file? topic posted under Win32 Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 03-17-2010, 12:30 AM
Junior Member
 
Join Date: Mar 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
unmeshjoshi is on a distinguished road
| More
Question How to bypass security check while opening a file?

Hello,

I want to open a file using say open API or CreateFile API like:

hDevice = CreateFile((_T("\\\\.\\C:")),GENERIC_READ, FILE_SHARE_READ ,NULL, OPEN_EXISTING,0,NULL);

If this call fails due to security check, What can we do to bypass the security check?
As I just want to read the file, I may be given the access to the file, which might already be opened in WRITE mode.
Reply With Quote
  #2  
Old 03-18-2010, 09:41 PM
shabbir's Avatar
Administrator
 
Join Date: Sep 2006
Posts: 1,163
Thanks: 57
Thanked 63 Times in 44 Posts
shabbir has a spectacular aura aboutshabbir has a spectacular aura about
| More
Re: How to bypass security check while opening a file?

You will not be able to bypass the security check because you are using the API library which enforces security on you by default.
Reply With Quote
  #3  
Old 03-18-2010, 11:23 PM
Junior Member
 
Join Date: Mar 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
unmeshjoshi is on a distinguished road
| More
Re: How to bypass security check while opening a file?

In that case, will INLINE ASSEMBLY help me out?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Immediate opening for C Programmer abhi4537 Looking to hire 6 02-01-2011 02:51 PM
Opening post here. Neexattescero Introduce yourself 3 02-21-2010 08:55 PM
Ho to all (opening for c programmer) abhi4537 Introduce yourself 1 02-17-2009 05:23 AM
how to check internet connection Hystrio MFC Programming 1 07-24-2008 11:58 PM
tristate check box sunil MFC Programming 1 02-26-2008 02:29 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 01:41 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board