Commit Graph

6278 Commits

Author SHA1 Message Date
pancake
79c5b24bfe Fix pxw/pxq width for hex.cols=1 2014-10-19 12:18:40 +02:00
pancake
c7a4f3ce14 Refix ptrace-write problem 2014-10-19 11:53:07 +02:00
pancake
4fae552735 Fix #1536 - Fix compile error in cmd_search.c 2014-10-19 11:49:25 +02:00
pancake
feb2e03bef PDB: errors to stderr, messages to rcons and use RSandBox.fopen()
- Fix some indentations
- Fix an overflow in filename
- Use R_FREE instead of handmade alternative
2014-10-18 19:49:56 +02:00
inisider
83fb5d6ee9 Fix all crashes for fuzz-pdb testsuite 2014-10-18 19:49:51 +02:00
inisider
04a8ad1e7d remove warnings PDB, null ptr checks and add print of ENUM 2014-10-18 19:49:36 +02:00
pancake
bbea37a4e1 Fix build and add some notes to the PDB parser 2014-10-18 19:49:31 +02:00
inisider
621d757487 rabin2: add pdb print infortmation option
Conflicts:
	binr/rabin2/rabin2.c
2014-10-18 19:49:26 +02:00
inisider
d547b037c9 Initial implementation of the PDB parser
* Contains 78 rebased commits

- add R_PDB struct
- add implementation of init_pdb_parser()
- add stub for init_pdb7_root_stream()
- add init_pdb_stream() function
- add functions for working with stream_file
- do fixes for stream_file_read
- add getting of sizes
- save streams to rlist
- add light implementation of read_root function
- add stubs for parsed_pdb_stream_init
- add parsing of pdb info stream
- start of parsing tpi header
- add stub for tpi stream
- fix stream file read. +stubs for eFIELD_LIST
- add parsing of lf_enumerate
- add parsing of lf_nesttype()
- add parsing of LF_METHOD
- add parsing of lf_member
- add some additional parsing of types
- fix some memory leaks
- add support of LF_METHOD and LF_MEMBER
- add support of LF_NESTTYPE
- add support of LF_ENUM
- add parsing of lf_structure
- add parsing of lf_pointer
- start of lf_array implementation
- back implementation of lf_array
- add implementation of LF_MODIFIER
- add implementaion of lf_arglist
- add implementaion of lf_mfunction
- add useful macros
- add implementation of lf_procedure
- add implementation of lf_union
- add free of sval and printf name of sval
- add implementation of LF_BITFIELD
- add implementation of LF_CLASS
- add implementation of LF_VTSHPAE
- start of refactoring
- finish refactor of the code
- fix memory leak issues
- some refactor of memory managment
- fix memory managment
- add supprot of ushort type
- add function for printing type name and value
- add API for getting leaf types members
- refactor of SType and STypeInfO
- add implementation of get_name/val/... for new types
- fix cast in some function of getting name, val, etc
- add stubs for resolving type
- add pointers to function for getting types
- add connections for types function pointers
- add stub for printing structures
- update memory manadgement and fix some problems in API for working with types
- add process of result from init_pdb function
- print more info about structure
- refactor of printing structure info
- Revert of 9fa8e7083c

refactor structure info printing

more pretty print

refactor code

add parsing of dbi header

add structure stabs for dbi stream

add parsing of dbi_ex_headers

add free for dbi stream

finish parsing of dbg stream

add stubs for streams from dbg stream

add fpo parsing

add free for fpo stream and do some refactor

add parsing of gdata stream

add parsing of pe stream

add parsing of fpo new stream

add fpo new stream

add omap stream parsing

add implementation of printing gvars

add setting parameters for pdb_parser

delete unused comments

delete unused comments
2014-10-18 19:49:22 +02:00
pancake
7b65bb16b2 Implement LEA ptr references for x86.udis and x86.cs 2014-10-18 06:30:51 +02:00
pancake
c2f54e700c ragg2 use system default asm.bits 2014-10-18 04:05:54 +02:00
pancake
99e14a753f Fix #1532 - Implement /V command 2014-10-18 02:14:38 +02:00
skuater
a8fe3ee47e Implement 'dsh' to step over reps 2014-10-18 01:20:11 +02:00
condret
71a0e34954 some prework for r_io_reopen 2014-10-18 01:10:24 +02:00
pancake
718e175892 Add $p for getpid(), hide UNKNOWN refs, 'cat' works with bigger chunk if unknown size 2014-10-18 00:25:55 +02:00
pancake
45a04948b7 Remove debug printf 2014-10-17 18:35:00 +02:00
condret
051de62f9e add r_io_desc_list (possibly useful for bughunting) 2014-10-17 18:31:59 +02:00
pancake
c20e2c70db Add movs{bwd} opcodes in x86.nz assembler 2014-10-17 17:10:15 +02:00
pancake
bd14b08ba0 Add zenburn theme 2014-10-17 15:23:05 +02:00
pancake
4ba808e637 Handle x86 prefixes on x86.cs plugin 2014-10-17 14:40:14 +02:00
condret
32dbb24325 remove a pointless memset in r_io_desc_free 2014-10-17 13:09:28 +02:00
pancake
492298e16f Handle #\t as comment too 2014-10-17 11:24:56 +02:00
pancake
757ae729c6 Added 'twilight' theme 2014-10-17 10:20:08 +02:00
pancake
cc8566b671 Add RAnalOp.prefix and handle it from x86.udis, Colorize 'ao' 2014-10-17 01:15:17 +02:00
pancake
1c4c0cdb68 dbg.forks and dbg.threads are now set to false by default 2014-10-17 00:38:37 +02:00
pancake
1c583a4b39 Added 'oob', 'oon' and 'oo?'. Close RBinObjects with RCoreFiles 2014-10-17 00:36:00 +02:00
pancake
da866539ee Fix 'oo' bug (sync rcorefile and riofile lists), Better 'ob' 2014-10-17 00:04:52 +02:00
pancake
907d17460f Close all non-tty fds for rarun2 before start 2014-10-16 11:24:17 +02:00
pancake
b192d39161 Fix #1526 - Implement 'dccu' (continue until unknown call) 2014-10-16 11:23:57 +02:00
pancake
0b322f5e99 Fix r2 -d ./ls 2014-10-16 10:45:33 +02:00
pancake
7c152282a8 Use latest Capstone (Fixes relative branch on PPC and SPARC) 2014-10-16 10:19:37 +02:00
pancake
8e381135e4 Add Shdr and struct sizes, fixes for ELF64 with r2 -nn
- Remove debug printfs in 't'ypes
2014-10-16 03:46:58 +02:00
pancake
25d2821696 Autodisable asm.flags when asm.flagsinbytes is set, fix esil for x86 call 2014-10-16 02:16:52 +02:00
pancake
859daf9a5b Add consonance and tango themes. Add asm.flaginbytes
* invalid instruction color is now configurable
* fixed SAR as unknown instruction issue
* Bring back dead code to render flags between the offset and opcode
* Fixes for the rasta and solarized themes
2014-10-16 01:51:48 +02:00
pancake
49e4abc2ca Add solarized theme 2014-10-15 23:35:51 +02:00
pancake
49cc0001c2 Fix #1519 - Jumps creating new functions 2014-10-15 16:10:55 +02:00
pancake
2ed4c7ad1a Attach IO to new pid with =!pid when doing dpa pid. Add program|library to 'ai' 2014-10-15 16:05:47 +02:00
pancake
0e0dc63aa8 Fix r2 -d problem not loading syms. Redo the ASLR/PIE again 2014-10-15 15:41:02 +02:00
pancake
1d390d4767 Do not asume 'unk' is heap 2014-10-15 12:44:24 +02:00
NighterMan
5e9788ca26 Added support for new search modes 2014-10-15 12:41:07 +02:00
Maijin
7b55e920f0 Update Enum/Bitfield Help 2014-10-15 02:53:20 +02:00
pancake
3e38ffe0db Add AddrInfo esil method for /E 2014-10-15 02:42:08 +02:00
pancake
42232354a7 Add 'ai' - address info, Enhace 'ad' (support patterns and sequences)
- ai shows: exec,read,write,flag,func,stack,heap,reg
- Add r_reg_regset_get()
- Implement r2.cmdj in r2.js
2014-10-15 02:24:22 +02:00
pancake
676ed9e861 Add 'afC' for calling convention changes in function definitions 2014-10-14 17:09:42 +02:00
Fedor Sakharov
0b9abbd87a Move arch headers from ./lib/include 2014-10-14 14:24:22 +02:00
pancake
8c625b2c27 Fill RAnalOp.mnemonic with RAsmOp.buf_asm in RCore.anal_op 2014-10-14 12:29:34 +02:00
pancake
c9754da05f Initial support for function declarations in Cparse (loaded into sdb) 2014-10-14 11:55:02 +02:00
Skia
8e7c4c67be Fix double bitfield and double enum in pf 2014-10-13 16:29:03 +02:00
NighterMan
08274d9f28 Added JSON output support for multiple search cmds
JSON output support has been added for the following cmds:
| / foo\x00              search for string 'foo\0'                         // Si
| /j foo\x00             search for string 'foo\0' (JSON output)           // Si
| /! ff                  search for first occurrence not matching          // Si
| /+ /bin/sh             construct the string with chunks                  // No
| /!x 00                 inverse hexa search (find first byte != 0x00)     // No
| //                     repeat last search                                // Si
| /a jmp eax             assemble opcode and search its bytes              // Si
| /b                     search backwards                                  // Si
| /B                     search recognized RBin headers                    // No
| /c jmp [esp]           search for asm code (see search.asmstr)           // Si
| /C[ae]                 search for crypto materials                       // No
| /d 101112              search for a deltified sequence of bytes          // Si
| /e /E.F/i              match regular expressions                         // Si
| /E esil-expr           offset matching given esil expressions %%= here   // No
| /i foo                 search for string 'foo' ignoring case             // Si
| /m magicfile           search for matching magic file (use blocksize)    // No
| /p patternsize         search for pattern of given size                  // No
| /P                     show offset of previous instruction               // Si
| /r sym.printf          analyze opcode reference an offset                // No
| /R [grepopcode]        search for matching ROP gadgets, comma-separated  // Si
| /v[1248] value         look for an `asm.bigendian` 32bit value           // Si
| /w foo                 search for wide string 'f\0o\0o\0'                // Si
| /wi foo                search for wide string ignoring case 'f\0o\0o\0'  // Si
| /x ff..33              search for hex string ignoring some nibbles       // Si
| /x ff0033              search for hex string                             // Si
| /x ff43 ffd0           search for hexpair with mask                      // Si
| /z min max             search for strings of given size                  // Si
2014-10-13 16:27:54 +02:00
NighterMan
82b0626fb0 Fix for crash when using regexp searches
Since commit baf3145598 buffers for
bin_keyword and bin_keymask at RSearchKeyword structure need to be
allocated dynamilly. The allocation was missing causing a crash.

Added check to avoid empty regexp filters
2014-10-13 16:26:52 +02:00