reko icon indicating copy to clipboard operation
reko copied to clipboard

Implement the reko console

Open uxmal opened this issue 10 years ago • 1 comments

Reko has a console window that does nothing, This would be a great place to implement a scripting language to allow repetitive tasks to be carried out without using UI gestures.

Some ideas for a scripting language: <address> scan [<name>] [<reg>=<value>]* Scans a procedure starting at <address>, giving it an optional name and optionally a set of assumed register / value pairs.

<address1>[,<address2>] type <type-specification> <address1>[l <byte-length>] type <type-specification> Set the type of the global variable at <address1>-<address2> to <type-specification>. If the type is finite in size i.e. not an array of undetermined size, there is no need to specify address2 or a length.

[<address1>[,<address2>]] search <byte pattern> Find all addresses within the optional address range that match the byte pattern. This could be used to feed scan; i.e. 0134,0200 search(#55 8b EC#) | scan would find a list of addresses that start with the sterotypical push ebp; mov ebp, esp signature and feed them to the procedure scanner.

<address1[,<address2>][l <length>] wb #00# <address1[,<address2>][l <length>] wh #0000# <address1[,<address2>][l <length>] ww #00000000# <address1[,<address2>][l <length>] wq #0000000000000000# Writes the byte(halfword, word, doubleword) into the address range specified.

uxmal avatar Aug 21 '15 12:08 uxmal

I have started https://github.com/ptomin/reko/tree/scripting branch. It could be possible solution for this issue

ptomin avatar Apr 01 '21 17:04 ptomin