Commit Graph

1771 Commits

Author SHA1 Message Date
radare
82416b0212
Create libr_main and make all binaries use it ##core
* Cleanup the use of getopt with our wrapper
2019-03-08 14:22:59 +01:00
Vasilij Schneidermann
e39c9424aa Make -x behave like /x unless mask is provided ##search 2019-03-05 20:28:31 +01:00
pancake
a3bb6132ba Implement rasm2 -x to output in hex dwords ##asm
$ rasm2 -x 'nop;nop;mov eax, 33;push ebx;int 0x80;nop;mov rbx,48484;nop'
	0x21b89090 0x53000000 0x489080cd 0xbd64c3c7 0x00900000

As suggested in https://twitter.com/travisgoodspeed/status/1101966927688318978
2019-03-03 02:51:55 +01:00
Riccardo Schirone
afae8b6e34
Prerelease travis release (#13189)
* Add additional tests for release/prereleases
* Test different plugins configurations
* Add some libraries to docker image
* Disable SYS_CAPSTONE for now because there is only 3.0.5
* Fix html magic file to respect libmagic's format too

< can be used with string so it should be escaped if we want to match
the exact string "<html>"

* Use plugin License when printing rasm2 plugins in JSON format
* Build with system capstone, but do not run tests because they would fail
* Fix tiny plugins file to use xtr_fatmach0 instead of just fatmach0
* Use clang to compile with ASAN
* Use b_lundef=false
* Just test if different plugins configuration build, no r2r
* Use sys openssl as well
2019-02-28 16:58:09 +01:00
David CARLIER
88b8bb7f3a Few code changes, possible errors. (#13192) 2019-02-25 11:28:28 +01:00
GustavoLCR
55cd22731e Fix path with spaces problem in windows (#13144) 2019-02-18 18:31:12 +01:00
radare
73f76a99b2
Make RCons.is_interactive() into the RConsContext and improve loading projects in tasks ##cons (#13132) 2019-02-18 06:20:01 +01:00
GustavoLCR
a795cd647c Do not escape path to Windows file (#13108) 2019-02-15 18:22:48 +01:00
David CARLIER
14c134d97a Little cleanup before release (#13115) 2019-02-15 18:12:44 +01:00
David CARLIER
58ba3a663d Various little code fixes. (#13075) 2019-02-14 10:40:38 +01:00
Florian Märkl
fb2682a16f Disable (with warning) -t and deobfuscate -n variable ##main 2019-02-12 18:13:45 +01:00
pancake
1936f2d047 Update plugins.nogpl.cfg and fix a couple of warnings 2019-02-11 12:18:23 +01:00
Deepak Chethan
99ecf7950b Use pj api in rasm2 2019-02-10 23:37:27 +01:00
pancake
92e4256c19 Change -T behaviour and rename iF into it ##bin 2019-02-10 02:30:07 +01:00
David CARLIER
cebf7f6938 Compute hashes only with a new r2 flag ##bin 2019-02-10 02:11:25 +01:00
Rahul Sangwan
39dea00faa Update ragg2 man page ##ragg2 2019-02-10 01:28:35 +01:00
Rahul Sangwan
be654b89d3 Unescape chars when using rax2 -S
this commit resolve second part of #12862 (#12985)
2019-02-08 16:37:42 +01:00
Deepak Chethan
7e5f4e47a5 Added the append string feature for ragg2 ##ragg2 2019-02-06 17:07:43 +01:00
pancake
75354b4587 Fix warnings 2019-02-05 00:35:01 +01:00
GustavoLCR
c1d0e59d4d Fix rabin2 extract path for Windows ##bin 2019-02-04 15:55:06 -06:00
pancake
0939198515 Use pj in rasm2.c and add pj_f for float 2019-02-04 16:40:57 +01:00
pancake
0daae3d9af Remove R_ASM_BUFSIZE, all buffers are now dynamic ##asm 2019-02-04 00:23:40 +01:00
pancake
00fb2f4607 Remove global variables in rasm2.c ##refactoring 2019-02-04 00:22:49 +01:00
Riccardo Schirone
e5b4d9294c Use RSpaces in RFlag ##refactor 2019-02-03 09:06:45 -06:00
David CARLIER
5d698c76ae Display file hashes into rabin via new mode ##bin 2019-02-01 17:11:31 -06:00
Deepak Chethan
f087bcfbb0 Removed duplicated -q flag in ragg2's usage message (#12964) 2019-01-31 10:55:17 -06:00
Maijin
f9d4ab6f65
Add Certificates in rabin2 ##enhancement (#12900) 2019-01-24 17:22:53 +01:00
David CARLIER
3cff12a7c0 Add iF to show file hash and related refactoring ##bin 2019-01-24 17:34:00 +08:00
Khairul Azhar Kasmiran
01d5dfe306 Fix rafind2 -S for UTF8 chars > U+00ff (#12866)
* Fix rafind2 -S for UTF8 chars > U+00ff

* Use '< 1' instead of '== 0'

* Remove unnecessary else

* Add a 0
2019-01-22 09:43:10 +01:00
Maijin
8f94d413cd Standardize version using blob_version ##refactor 2019-01-12 22:22:43 +01:00
Maijin
c45e3d4123
Change eprintf to printf in rarun2
Change eprintf to printf in rarun2
2019-01-12 12:29:39 +01:00
David CARLIER
de40266908 Add basic auth to the webserver ##sync 2019-01-10 10:51:51 +01:00
radare
d1d9404907
Implement /s, /s* to search for sections depending on entropy ##search 2019-01-03 15:22:26 +01:00
David CARLIER
2eb706029c Few code/cleanups mem leaks potential (#12591) 2018-12-31 00:21:47 +01:00
dav1901
d05a119081 Fix few minor leaks (#12584) 2018-12-30 01:37:14 +01:00
GustavoLCR
7530895d0a Fix a few clang scan-build bugs (#12562)
* Removed unnecessary variable from libr/core/disasm.c
* Removed not necessary assignment in libr/core/casm.c
* Removed not used assignment in libr/bin/dwarf.c
* Rem. duplicate declaration and not used values
* Fixed potential memory leak in java/class.c
* Fixed potential memory leak in ragg2
* Removed unnecessary variable in visual.c
* Another potential memory leak in class.c
* Removed not used value assignment
* Fixed memory leak in dwarf.c
* Removed not needed assignments
* Remove more not used assignments
* Refactored where bin_sections gets arch & bits for clarity
* Removed more assignments that are not used
* Rem. more unused assignments
* Surround assignment with paranthesis
2018-12-26 12:54:12 +01:00
r4dix10
ad4013932d Issue #10780 -o for octal string to character (#12561) 2018-12-25 23:24:41 +01:00
dav1901
303a57bb85 Minor code cleanups/fixes (#12519) 2018-12-20 11:50:29 +01:00
iamahuman
a54dbe914b Support r2core.js for Emscripten >=v1.37.24 (#12502)
* Support r2core.js for Emscripten >=v1.37.24

cwrap needs to be exported explicitly via EXTRA_EXPORTED_RUNTIME_METHODS
+ allocate larger memory, allow for growth and no aborting malloc

* wasm_asm was wrongly also included in anal.wasm

This causes link errors where duplicate symbols aren't allowed.

* supply wasm plugin to suppress meta arch warning

r2 core initializes itself for the current architecture until one is
explicitly specified (e.g. loading a binary).  Since asm.wasm and
arch.wasm isn't supplied by default, r2 when built for WebAssembly
emits some ugly warnings when loading.  Besides, those modules
(incl. bin.wasm) aren't that large.

* r2core: Make it possible to know when init is done
2018-12-17 11:55:44 +01:00
radare
7060103292
Improve RBuffer api, start to refactor rbin to use more rbuf ##bin (#12495)
- Added a new rule in the DEVELOPERS.md file
2018-12-17 11:54:46 +01:00
dav1901
ede39f120c Fix few build compiler warnings (#12490) 2018-12-16 14:54:40 +01:00
dav1901
5b644dcb74 Minor cleanups/fixes (#12478) 2018-12-14 00:17:50 +01:00
dav1901
97b94b3f94 Fix more clang warnings (#12458) 2018-12-12 12:22:36 +01:00
David CARLIER
384fe0f903 Silencing/fixing clang warnings. (#12430) 2018-12-10 00:04:21 +01:00
pancake
64f2e25c3a Fix #12405 - Handle ^C in radiff2 -x 2018-12-05 12:41:44 +01:00
dav1901
ab17935659 Fix clang warnings (#12413) 2018-12-05 12:35:37 +01:00
pancake
0cbd616e3b Fix posix shell regrssion in r2pm -s 2018-12-05 12:26:00 +01:00
radare
a3d181a8a0
Fixes spotted by clang-analyzer (#12391) 2018-12-04 10:45:46 +01:00
David CARLIER
138ca20e27 Couple of mem leak fixes. (#12355) 2018-11-29 17:04:24 +01:00
David CARLIER
d5a42c5c0c Fix use after free in radare2. (#12332)
We need the path a little bit longer.
2018-11-26 22:13:32 +01:00