693 Commits

Author SHA1 Message Date
Álvaro Felipe Melchor
647b4f29b5 Fix #4808 2016-05-13 21:52:28 +02:00
Álvaro Felipe Melchor
b7cc6c04d7 LDID parse signature in mach0 binaries
* added iC command to show signature info

in the case of mach it shows entitlements

* added rabin2 -OC to get signature info from binary

* change swap to r_read_bleX new API

* change eprintf to r_cons_printf

* add const char in plg->signature
2016-05-09 23:42:28 +02:00
Damien Zammit
5e1ad580db build: fix warnings 2016-05-08 12:21:11 +02:00
Damien Zammit
af0a865d9f WIP - Totally remove host endianness dependence
- Adds endian aware functions
- Removes references to host endian
- Uses binary detected endianness else tries LE and restricts by RAsmPlugin
- Fixes gdb debugger endianness when debugging BE qemu gdbserver

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-04 23:42:17 +10:00
NaveenBoggarapu
4c04b98b47 few memory leaks fixed 2016-04-13 21:55:48 +02:00
Álvaro Felipe Melchor
63990bef32 Fix #4589 2016-04-09 20:05:18 +02:00
Álvaro Felipe Melchor
8ba4c5b959 Fix #4585 2016-04-09 16:28:45 +02:00
Álvaro Felipe Melchor
79c7e5ec1f Fix #4587 - thx @revskills 2016-04-09 16:19:54 +02:00
Álvaro Felipe Melchor
38452b4052 Fix #4581 - thx @revskills 2016-04-09 12:49:09 +02:00
Álvaro Felipe Melchor
68d4a43aad Fix #4578 - thx @revskills 2016-04-09 12:28:26 +02:00
Jeffrey Crowell
0503b3e741 fix #4579
ty revskills
2016-04-08 21:41:22 -04:00
Álvaro Felipe Melchor
041fc7423a fix #4539 - null dereference 2016-04-07 21:16:55 +02:00
pancake
5867365cd5 Add dummy work for mach0 in rabin2 -O 2016-04-07 15:42:06 +02:00
Anton Kochkov
5b3f52f0b6 Fix CID 1353777 2016-04-05 11:59:58 +03:00
Álvaro Felipe Melchor
114ad79b95 fix xtr dyldcache 2016-04-04 23:28:02 +02:00
Álvaro Felipe Melchor
fc4f2a2a38 fix minor things to be able to load dyld 2016-04-04 23:28:02 +02:00
Álvaro Felipe Melchor
b0c6ae4409 Fix #4295 and #4155
This commit is the first attempt to improve relocation
recognition when dealing with relocatables elf-files
2016-04-04 23:09:58 +02:00
pancake
d0ddc1a226 Fix crash in bin.elf.has_canary 2016-04-04 02:15:31 +02:00
pancake
740e43eadd Fix some segfault and consistencies 2016-04-04 01:59:30 +02:00
pancake
d629165ec8 Remove unnecessary = NULL in bin/p/*.c 2016-03-27 23:02:29 +02:00
Evan Shaw
2ad75b67ec Fix NES memory mirroring
The mirror lists were never actually allocated.
2016-03-18 13:43:43 +01:00
Dax89
b9c34953a1 PSX Plugin: Use capstone disassembler, look for strings in TEXT segment 2016-03-16 16:45:49 +01:00
Evan Shaw
9f1ef0d721 Reduce OMF format false positives
While developing the SNES bin plugin, I noticed some SNES ROMs were wrongly
detected as OMF.

This commit adds two additional checks to check_bytes:

* Check that record size and string size in the first record agree with each other
* Check that the string in the first record is valid ASCII

Regression tests still pass.

This commit also fixes an assumption that the host is little endian.
2016-03-16 10:36:26 +01:00
Aneesh Dogra
5c3f5904ea Add a way to compare claimed CRC (in header) of PE files with the actual CRC. 2016-03-12 11:22:55 +01:00
Aneesh Dogra
0e3d4bf773 PE: Add support for parsing TLS and add TLS callback addresses to the list of entry points.
Only add the address if its valid.
2016-03-12 11:04:25 +01:00
pancake
02abba69f1 Fix #4253 - 1 byte oob read in mach0 2016-03-07 13:23:01 +01:00
pancake
36d7e5a412 Fix warns in smd bin plug 2016-03-04 15:45:54 +01:00
pancake
3624931cde Use proper endianness in SMD plugin 2016-03-03 14:15:17 +01:00
Martin Heistermann
fbd0905c56 Add initial indirect relocation (irel, ifunc) support. 2016-02-28 02:43:25 +01:00
pancake
3140749266 Fix #4095 - Export RBinSection info for mach0.la_symbol_ptr 2016-02-16 02:58:29 +01:00
pancake
384cfb1042 Fix last coverities 2016-02-16 02:08:09 +01:00
pancake
d8ab2fb55f Handle LANAI in the ELF plugin 2016-02-15 14:12:30 +01:00
Jeffrey Crowell
aaf92c4e8e Gesmdis isn't a thing. Should be Genesis. 2016-02-10 13:16:08 -05:00
pancake
d0f0629655 Remove unnecessary memcpy 2016-02-06 22:44:51 +01:00
pancake
f5181c4d90 Initial rework for dyldcache 2016-02-04 15:44:49 +01:00
pancake
1fc7dd4cf6 Check mallocs in PE 2016-01-22 15:16:27 +01:00
Maijin
dec50ae9d4 Add is_vb6 check in bin_pe 2016-01-15 16:37:14 +01:00
pancake
666d457708 Add rabin2 -O e/new-entrypoint-address (ELF only atm) 2016-01-14 14:42:36 +01:00
Alberto Ortega
dbb199e4a5 New bin plugin with initial Nintendo 3DS support. It loads decrypted FIRM files. 2016-01-04 01:08:32 +01:00
pancake
5132a499c2 Fix many coverities 2015-12-31 17:10:02 +01:00
pancake
1d8b761ca1 Various static and iOS related build issues are now fixed 2015-12-28 02:01:45 +01:00
Maijin
776aee4dcc ROM section is now executable
ROM section is now executable
2015-12-25 22:18:19 +01:00
pancake
bf813c252c Fix null-terminated strings issue in bootimg rbin plugin 2015-12-19 17:29:48 +01:00
pancake
65aef74a73 Initial support for Android BOOT images 2015-12-18 20:08:05 +01:00
alvaro_fe
a6e4d6b93e Fix #838 2015-12-16 11:40:23 +01:00
Jaume Delclòs Coll
37e793f58e proper virtual address for GBA ROMs 2015-12-12 11:36:19 +01:00
Álvaro Felipe Melchor
0537a72e9b cleanup elf and fix #3774 2015-12-05 21:00:51 +01:00
pancake
c4e0ac2885 Fix rabin2 -O sync issue and update manpage 2015-11-30 00:10:28 +01:00
Ricardo Quesada
e4182b943d More symbols for the VSF file format parser
- removed verbose debug eprints
- Fixes warnings and compilations errors
- more symbols: SID and VIC
- removes NMI/IRQ symbols.
- removes IRQ entry
2015-11-29 12:18:00 +01:00
Ricardo Quesada
f5c65f5da8 Adds VSF (VICE Snapshot File) support as a bin format
VICE is the most popular C64/C128 emulator and allows
users to save snapshots of the games.

Analyzing VICE snapshots are more useful than
analyzing .prg (the "standard" c64 program)
because usually all .prg are compressed, and
are decompressed in runtime.

commit 796297c6cd3a099fd17ad3715b4ed5646a6a9e65
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Fri Nov 27 12:28:58 2015 -0800

    no sbd for the moment

commit c785b22318c3cacf7771ab21198aa759777224af
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Fri Nov 27 10:06:12 2015 -0800

    bank 0 and bank 1

commit 63304876b6f84df001c39f5b35084ff6e61bc01b
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Fri Nov 27 09:47:12 2015 -0800

    c128 includes basic, monitor and editor sections

commit 1a8995a644df6d9e871a586e57c3cd8e00cce7ae
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Thu Nov 26 14:45:36 2015 -0800

    c128 roms...

    uses sdb which is not used at all
    more vic symbols

commit 8a29c3c7736fcf689b9248e65093277347ae38bc
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Nov 24 10:39:44 2015 -0800

    ram last entry

commit fca46301b2fd68e230cf547047a5278e098c9340
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Nov 24 00:10:20 2015 -0800

    more tidy code

commit 03b8a12b319bd0eb9f21b60d882da2030c2c35f1
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Mon Nov 23 22:52:20 2015 -0800

    VSF works for C64... still many things to fix

commit a118a930cb40441b412db916deb4c0ca30e30309
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Mon Nov 23 13:37:32 2015 -0800

    initial commit... compiles and detects VICE

    but nothing more
2015-11-29 12:17:05 +01:00