-1

From the blog, I try run the .writemen command,

0:000> lm
start             end                 module name
00000000`00ad0000 00000000`00ad2c00   bbwfjlpm   (deferred) 
0:000> .writemen c:\stringtest\aa.dll 00000000`00ad0000 (00000000`00ad2c00 -0x1)
                                                                               ^ Syntax error in '.writemen c:\stringtest\aa.dll 00000000`00ad0000 (00000000`00ad2c00 -0x1)'
0:000> .writemen c:\stringtest\aa.dll 00000000`00ad0000 00000000`00ad2c00
                                                                        ^ Syntax error in '.writemen c:\stringtest\aa.dll 00000000`00ad0000 00000000`00ad2c00'
0:000> ? 00000000`00ad2c00 - 00000000`00ad0000
Evaluate expression: 11264 = 00000000`00002c00
0:000> .writemen c:\stringtest\aa.dll 00000000`00ad0000 L 2c00
                                                             ^ Syntax error in '.writemen c:\stringtest\aa.dll 00000000`00ad0000 L 2c00'

why I got 'Syntax error'?

Martin G
  • 17,357
  • 9
  • 82
  • 98
gfan
  • 1,027
  • 1
  • 14
  • 28

1 Answers1

2

I can't believe my old eyes caught the fact that you have mistyped the command. You typed ".writeme*n*" (with the last char being an 'n'). The correct command is ".writeme*m*" (with the last char being an 'm'). Your first attempt (with the spelling fixed) works for me:

.writemem c:\stringtest\aa.dll 00000000`00ad0000 (00000000`00ad2c00 -0x1)
Marc Sherman
  • 2,303
  • 14
  • 22