#3 Dump variables to File

closed
None
5
2012-05-05
2012-05-02
Anonymous
No

It will be good if DILE supports dumpo variable to a hex file, this is extemely useful to dump array, which may contain the decrypted data.

Discussion

  • Petrény Zsolt
    Petrény Zsolt
    2012-05-02

    Are you trying to convert a byte array to string? If that's all you need then you can simply add the mscorlib.dll to your project and during debugging in the Object Viewer window evaluate an expression like (assuming that V_0 is your byte array):
    System.Text.Encoding.Unicode.GetString(V_0)

    Does this help?

     

  • Anonymous
    2012-05-03

    Actually I am dumping a hex array, (e.g.the decrtyped PE file bytes). It could be up to hundred of kilo-bytes. -that's why I prefered to dump to a file Is there a handy way to do this via Object Viewer?

     
  • Petrény Zsolt
    Petrény Zsolt
    2012-05-03

    Can you convert your array to another type, let's say a string like in the example I sent below? If you can, then you can just right click on the converted value in the grid of the Object Viewer and copy the value to clipboard and do whatever you want with it.

     

  • Anonymous
    2012-05-03

    I am really sorry that my .net programming experiece is almost zero.( I am pretty much working on reverse-engineering side of .net actually). So I am not sure how I can actually covert the byte array to String.

     

  • Anonymous
    2012-05-03

    Oh, looks like this one works

    System.BitConverter.ToString(A_0);

     
  • Petrény Zsolt
    Petrény Zsolt
    2012-05-05

    Good to hear that this solved your problem.

    I'll close down this feature request then. I just felt like having such a feature would be too specialized and wouldn't really be used in 99% of the cases.

     
  • Petrény Zsolt
    Petrény Zsolt
    2012-05-05

    • assigned_to: nobody --> zsozsop
    • status: open --> closed