shERis
August 2nd, 2004, 11:42
I downloaded and used OllyScript. Itīs really a great tool! Many thanx for that! And of course Olly for his great debugger.
But now I would need some more functionality of OllyScript.
This is my desire to debug a proggy without running it:
1. A function OPCODE addr, which sets the $RESULT variable to the opcode bytes, $RESULT_1 variable to mnemonic opcode (i.e. MOV ECX,EAX) and $RESULT_2 to the lenght of the opcode. If an invalid opcode appears, $RESULT_2 should be 0.
2. A function NEXTOP addr, which sets the $RESULT variable to next opcode of addr. If any error occurs, $RESULT should be 0.
3. A function PREOP addr, which sets the $RESULT variable to previous opcode of addr. If any error occurs, $RESULT should be 0.
4. A function REF addr, which works as "Find references to .. Selected command" and "Find references", Ctrl R, in OllyDbg. Now the problem is, that there are not defined arrays. The $RESULT variable should now be set to the first reference addr and $RESULT_1 to the opcode if available and $RESULT_2 to the comment (like reference window).
5. A function NEXTREF addr, which works as REF, but results in the next reference. Another call of NEXTREF should result in the next reference and 0 if no more is found.
6. Another way could be to extract data of the references window with some get functions.
7. It would be useful to directly write something to a specified file with a WRT (Write) and WRTA (Write append) function.
This should be enough for today.
If there is an ability to realize this functions, I would be very, very glad ;-))
Many thanx for your work
Bye
~hERi~
But now I would need some more functionality of OllyScript.
This is my desire to debug a proggy without running it:
1. A function OPCODE addr, which sets the $RESULT variable to the opcode bytes, $RESULT_1 variable to mnemonic opcode (i.e. MOV ECX,EAX) and $RESULT_2 to the lenght of the opcode. If an invalid opcode appears, $RESULT_2 should be 0.
2. A function NEXTOP addr, which sets the $RESULT variable to next opcode of addr. If any error occurs, $RESULT should be 0.
3. A function PREOP addr, which sets the $RESULT variable to previous opcode of addr. If any error occurs, $RESULT should be 0.
4. A function REF addr, which works as "Find references to .. Selected command" and "Find references", Ctrl R, in OllyDbg. Now the problem is, that there are not defined arrays. The $RESULT variable should now be set to the first reference addr and $RESULT_1 to the opcode if available and $RESULT_2 to the comment (like reference window).
5. A function NEXTREF addr, which works as REF, but results in the next reference. Another call of NEXTREF should result in the next reference and 0 if no more is found.
6. Another way could be to extract data of the references window with some get functions.
7. It would be useful to directly write something to a specified file with a WRT (Write) and WRTA (Write append) function.
This should be enough for today.
If there is an ability to realize this functions, I would be very, very glad ;-))
Many thanx for your work
Bye
~hERi~