Notifications
Clear all

ads viewer - code?

18 Posts
7 Users
0 Reactions
1,762 Views
 Add0
(@add0)
Trusted Member
Joined: 18 years ago
Posts: 71
Topic starter  

Hi guys, i know ads's can now be see in vista via the command prompt, however i was wondering if anyone on these forums has ever programmed a tool to view them in Windows XP? or anything close? i'm thinking of doing it myself for a project, however i haven't programmed for a very long time, and would really need to practice some c++ (which is the language i'd prefer) i was wondering if anyone knows the level of skill required or if you can point me to sources that will help me?

any tips or thoughts appreciated

thanks a lot


   
Quote
azrael
(@azrael)
Honorable Member
Joined: 19 years ago
Posts: 656
 

I'm not a fantastic expert on Windows or Vista, however, from work that I have done previously, I know that "Active Directory and all that Jazz" is nothing more than LDAP and Kerberos. ( Messed about with, like most Microsoft implementations of open formats, but none-the-less … ) [ Hence the fact that if you are really bothered, although I can't imagine why … You can authenticate Linux/UNIX against AD… More details available on request 😉 ]

So, anyway, to the point - you might like to try looking at the available code for things like "ldapsearch", "ldapadd", "ldapmodify" and "ldapdelete" for getting in and doing things … It is available on Cygwin as well as other Linux/UNIX derivatives, and is, I believe (judging from file extensions), in plain C.

I hope that this might give some ideas perhaps ?


   
ReplyQuote
keydet89
(@keydet89)
Famed Member
Joined: 21 years ago
Posts: 3568
 

Hi guys, i know ads's can now be see in vista via the command prompt, however i was wondering if anyone on these forums has ever programmed a tool to view them in Windows XP? or anything close?

I've programmed Perl code to find ADSs, all you have to do is use the BackupSeek() and BackupRead() APIs.

Here are some links
http//msdn2.microsoft.com/en-us/magazine/cc163677.aspx
http//msdn2.microsoft.com/en-us/library/ms810604.aspx#ntfs5_topic3 (includes a VBScript code sample)
http//msdn2.microsoft.com/en-us/library/aa362667.aspx

HTH,

H


   
ReplyQuote
azrael
(@azrael)
Honorable Member
Joined: 19 years ago
Posts: 656
 

Sorry - been doing networks all month - and Active Directory Server was on the mind …

What H said … 😉


   
ReplyQuote
(@thedigitalthinker)
Active Member
Joined: 18 years ago
Posts: 10
 

I'm currently completing an application of which ADS detection is one feature, I'm using win API however Its quite slow, so I'm looking at direct identification (currently researching).


   
ReplyQuote
 Add0
(@add0)
Trusted Member
Joined: 18 years ago
Posts: 71
Topic starter  

yeah, i hear that it can be done with one API call?

would you mind sharing some working source code for only this function using Win 32 API?
although you've said you havn't found it a perfect method it would be something to study and a starting point.

if anyone has any other useful information, it would be great if you posted

thanks again


   
ReplyQuote
 Add0
(@add0)
Trusted Member
Joined: 18 years ago
Posts: 71
Topic starter  

also, thanks for the info azrael and harlan, will come in handy although i'm quite interested in the Win 32 API method for now


   
ReplyQuote
keydet89
(@keydet89)
Famed Member
Joined: 21 years ago
Posts: 3568
 

Add0,

Maybe I wasn't clear…the Perl code accessed the Win32 APIs to do it's work…

See example 3.8 here
http//www.codeproject.com/KB/books/1578702151.aspx


   
ReplyQuote
 Add0
(@add0)
Trusted Member
Joined: 18 years ago
Posts: 71
Topic starter  

thanks Harlan, btw is this the same code to view ADS's that comes with your book? what differs? unfortunately my copy is around 200 miles from where i am now (


   
ReplyQuote
keydet89
(@keydet89)
Famed Member
Joined: 21 years ago
Posts: 3568
 

I don't think I included any Perl code to address ADSs in WFA.

Also, if you follow the link that I sent you, you'll quickly see that its not to a book that I wrote…

h


   
ReplyQuote
Page 1 / 2
Share: