Account for upstream separating the completion and prompt scripts
[msysgit.git] / src / depends / README.txt
blob701ca14f81d85eddda06fdf39eebe2dcaccd9969
1 w00w00 improved version of depends.exe (minus the GUI + automated searching)
2 Matt Conover (shok@dataforce.net)
3 April 2003
5 This will find *.exe, *.dll, *.sys, and *.pyd (Python DLLs) that imports a certain DLL or function in a DLL (e.g., import wsock32.dll or import msvcrt.dll!_snprintf) or export a certain function. It can be useful when you don't know what libraries export a certain function (like RtlInitUnicodeString) or you want to find all applications using a function in a DLL with a known vulnerability.
7 Usage: w00depends test.dll c:\dir\test.exe
8         Report if c:\dir\test.exe imports test.dll
9         
10 Examples:
11 w00depends test.dll!funcname c:\dir\test.exe
12         Report if c:\dir\test.exe imports test.dll!funcname
13 w00depends test.dll c:\dir
14         Find executables importing test.dll in c:\dir
15 w00depends test.dll!funcname c:\dir
16         Find executables importing funcname from test.dll in c:\dir
17 w00depends test!funcname c:\dir
18         Find executables importing funcname from test.dll in c:\dir
19 w00depends test!ord_1234 c:\dir
20         Find executables importing ordinal 1234 (in decimal) from test.dll in c:\dir
21 w00depends -e funcname c:\dir
22         Find all DLLs exporting funcname in c:\dir
24 Output will look like this:        
25 C:\> w00depends kernel32!CreateFileA c:\winnt\system32
26 Match found: c:\winnt\system32\ACrd10SM.dll imports kernel32!createfilea
27 Match found: c:\winnt\system32\actmovie.exe imports kernel32!createfilea
28 Match found: c:\winnt\system32\ACUMon.exe imports kernel32!createfilea
29 Match found: c:\winnt\system32\ADVAPI32.DLL imports kernel32!createfilea
30 Match found: c:\winnt\system32\advpack.dll imports kernel32!createfilea
31 Match found: c:\winnt\system32\atmadm.exe imports kernel32!createfilea
32 Match found: c:\winnt\system32\AUTMGR32.EXE imports kernel32!createfilea
33 Match found: c:\winnt\system32\Axntbc32.dll imports kernel32!createfilea
34 Match found: c:\winnt\system32\Axntcp32.dll imports kernel32!createfilea
35 Match found: c:\winnt\system32\cabinet.dll imports kernel32!createfilea
36 Match found: c:\winnt\system32\catsrvut.dll imports kernel32!createfilea