Add initial 'depends' sources from w00depends
[msysgit.git] / src / depends / README.txt
blobc943dc5c17418e2eea94a02cf2b02d03f2e649e3
1 w00w00 improved version of depends.exe (minus the GUI + automated searching)\r
2 Matt Conover (shok@dataforce.net)\r
3 April 2003\r
4 \r
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.\r
6 \r
7 Usage: w00depends test.dll c:\dir\test.exe\r
8         Report if c:\dir\test.exe imports test.dll\r
9         \r
10 Examples:\r
11 w00depends test.dll!funcname c:\dir\test.exe\r
12         Report if c:\dir\test.exe imports test.dll!funcname\r
13 w00depends test.dll c:\dir\r
14         Find executables importing test.dll in c:\dir\r
15 w00depends test.dll!funcname c:\dir\r
16         Find executables importing funcname from test.dll in c:\dir\r
17 w00depends test!funcname c:\dir\r
18         Find executables importing funcname from test.dll in c:\dir\r
19 w00depends test!ord_1234 c:\dir\r
20         Find executables importing ordinal 1234 (in decimal) from test.dll in c:\dir\r
21 w00depends -e funcname c:\dir\r
22         Find all DLLs exporting funcname in c:\dir\r
24 Output will look like this:        \r
25 C:\> w00depends kernel32!CreateFileA c:\winnt\system32\r
26 Match found: c:\winnt\system32\ACrd10SM.dll imports kernel32!createfilea\r
27 Match found: c:\winnt\system32\actmovie.exe imports kernel32!createfilea\r
28 Match found: c:\winnt\system32\ACUMon.exe imports kernel32!createfilea\r
29 Match found: c:\winnt\system32\ADVAPI32.DLL imports kernel32!createfilea\r
30 Match found: c:\winnt\system32\advpack.dll imports kernel32!createfilea\r
31 Match found: c:\winnt\system32\atmadm.exe imports kernel32!createfilea\r
32 Match found: c:\winnt\system32\AUTMGR32.EXE imports kernel32!createfilea\r
33 Match found: c:\winnt\system32\Axntbc32.dll imports kernel32!createfilea\r
34 Match found: c:\winnt\system32\Axntcp32.dll imports kernel32!createfilea\r
35 Match found: c:\winnt\system32\cabinet.dll imports kernel32!createfilea\r
36 Match found: c:\winnt\system32\catsrvut.dll imports kernel32!createfilea\r