Feed on
Posts
Comments

Category Archive for 'Scripting'

FindTheHole.vbs

Recently I needed to write a script that could locate a folder on a system that had particular characteristics.  I was looking for hidden folders that the logged on user had rights to read, write/append and execute on.  ie, they can drop a binary into the folder and then run it.
This is the script I [...]

Read Full Post »

This is a bit of code I wish I’d found sooner. There is a – it seems mostly undocumented – feature of the ldap provider in Server 2003 that allows you to form an ldap query just on the SID of an account:

bindSid = “LDAP://<sid =” & SID & “>”
set oVal = GetObject(bindSid)
Result = [...]

Read Full Post »