165 Commits

Author SHA1 Message Date
pancake
b29f204049 Html filtering on string buffers to avoid sandboxing issues in the http server 2017-07-20 15:36:49 +02:00
pancake
ccce9afc66 Fix last covs 2017-07-19 16:45:27 +02:00
pancake
0c73a34a77 Fix crash in recent rtr code 2017-07-17 12:05:37 +02:00
Srimanta Barua
7858bb970d Un-hardcode reporting of stop reason, and add read/write of single reg to gdbserver (#7938)
* Better reporting of stop reason by gdbserver

* Added read/write of single reg
2017-07-17 08:51:30 +02:00
Srimanta Barua
b59276938e Added debugging of protocol messages in gdbserver (#7931) 2017-07-16 12:01:17 +02:00
Srimanta Barua
ff7b6c1df2 Optimized gdbserver mem read, and added gdbserver mem write 2017-06-29 17:17:22 +02:00
pancake
5af3ec4b66 Fix last covs 2017-06-18 01:11:11 +02:00
Srimanta Barua
fe6372339d Corrected gdbserver register-setting 2017-06-14 15:38:10 +02:00
Srimanta Barua
e5e860a3ea Added loading of offsets 2017-06-14 15:38:10 +02:00
pancake
1f1fb38b2a Fix | and |H suffix in sandbox mode, happify the webserver 2017-06-12 23:34:51 +02:00
Srimanta Barua
d81f369fa1 Fix gdb client packet size (#7703)
* Fixes for packet too long
* Proper escaping in packets and run-length encoding
* Removed old cache code
* Removed currently unnecessary code from client initialization
* Preparation for customized packet sizes
* Better packet-size configuration
* Minimum packet size (for AVR)
* mem_write too
* Corrections to packing code
* Was overcompensating for AVR. (pkt_sz = 16 => read_mem_len = 8)
2017-06-11 02:12:44 +02:00
Srimanta Barua
ad764839b2 Initial breakpoints, step, and continue for gdbserver. Plus *started* talking to GDB (#7679)
* GDB doesn't crash when connecting to us anymore

* Added initial support for breakpoints, step, continue to gdbserver
2017-06-04 22:22:01 +02:00
Srimanta Barua
0da8862a83 Add read reg/mem to gdbserver (#7625)
* bug fixes in client, and adding kill signal for server without multiprocess support
* commented out currently unnecessary packets sent by client
* Corrections to client kill signal code
* More functionality for gdbserver. Read regs and memory
2017-05-29 21:36:42 +02:00
pancake
9e19118eff Fix latest covs 2017-05-23 11:24:04 +02:00
Srimanta Barua
d3958f00e4 Initial stub for gdbserver support
* Renaming functions, reorganizing code, adding temporary hack for closing gdbserver
2017-05-22 19:37:48 +02:00
pancake
b282656bbb Improve error checking and fallback in the sandboxed http 2017-04-26 15:31:27 +02:00
pancake
67b1d7a655 Retly incremental ports instead of infinite loop in =h& 2017-04-03 23:22:59 +02:00
pancake
36e96f2546 Fix rtr segfault when bruteforcing on different threads 2017-04-03 01:00:45 +02:00
pancake
7db1a11d33 More reindent and use R_EMPTY instead of {0} 2017-03-25 02:30:00 +01:00
pancake
85d1c2b150 Do not enable scr.html by default in =H 2017-03-19 02:10:53 +01:00
pancake
3290afc5a3 Update /p and /m with some fixes regarding scr.html 2017-03-19 01:35:21 +01:00
davidpolverari
1fb422b532 Fix #6162 - Renames r_str_concat to r_str_append 2017-03-16 22:29:49 +01:00
SchumBlubBlub
6c00c9e2d5 Reorganize string macros 2017-02-06 00:00:03 +01:00
pancake
e3e19385e8 Fix #6415 - Properly disable sandbox after http.sandbox 2017-01-09 13:19:08 +01:00
Anton Kochkov
e20ac7a139 Fix some more coverities 2016-12-22 00:21:11 +03:00
pancake
50d73d1547 Fix a lot of memleaks, null derefs and undef behaviour thanks to clang-analyzer 2016-12-19 16:44:51 +01:00
pancake
3fa97e94cb Fix latest covs 2016-11-29 11:52:24 +01:00
pancake
3fb96ff37f Fix last COVs and hopefully make travis green 2016-11-23 10:25:00 +01:00
Álvaro Felipe Melchor
87724384d1 added r_cons_break_{push/pop} to handle ^C better
Besides an UAF has been fixed afecting only ELF
2016-11-21 16:56:12 +01:00
pancake
be9df39f6f Fixed 40 null derefs reported by coverity 2016-10-20 15:02:25 +02:00
pancake
bf6ea1dcc0 Fix crash when loading truncated mach0s 2016-10-15 23:54:17 +02:00
pancake
18fb6a2aac Implement http.log and http.logfile 2016-10-15 23:42:12 +02:00
pancake
64cd03dab5 Fix rap:// with no filename and reindent related stuff 2016-10-09 23:56:52 +02:00
pancake
daacec5753 Fix #5668 - Honor =H arg path 2016-09-02 20:57:45 +02:00
Moritz Eckert
e1efde0b1c Fix #5338 - Add ability to start RAP server in background. (#5416) 2016-07-29 19:32:27 +02:00
Álvaro Felipe Melchor
0e4e39db79 fix somes coverities 2016-06-30 23:38:41 +02:00
Anton Kochkov
f983244e92 Do not trust input for cmd length 2016-06-30 22:24:38 +03:00
Jeffrey Crowell
c145740030 replace r_cons_printf("%s\n",p) r_cons_println(p)
move from 10% of code in vfprintf to just 6% \o/ for simple tests of r2
-c "aaa" -q /bin/ls
2016-06-26 00:52:03 -04:00
HummyPkg
b9aea669d3 Background web server does not honour port parameter 2016-06-09 23:43:42 +02:00
pancake
3c0feea6cb Fixes for http.homeroot 2016-05-18 12:03:07 +02:00
pancake
a2fb171a37 Add R2PM_WWWROOT, update www-t and add http.homeroot r2 var 2016-05-16 00:59:29 +02:00
pancake
abf63d018f Fix memleak reported by coverity 2016-05-05 16:30:55 +02:00
pancake
bbb7b8412b Implement experimental cmdback in rap server and client 2016-05-05 01:20:23 +02:00
pancake
a32357f55a Cleanup rtr.c 2016-05-04 23:32:29 +02:00
pancake
84ab4792fa Fix #4653 - =[fd][cmd] is working again 2016-05-04 20:08:38 +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
pancake
9d54015029 Handle referer in http server for CSFR protection 2016-03-28 23:38:45 +02:00
pancake
895a966884 Do not diff function strings, increase memlimit 2016-03-22 01:31:10 +01:00
pancake
54419df6b4 Do not start webserver if http.root does not exist 2016-02-10 17:19:05 -06:00
pancake
f29a33893a Fix zb signature crash 2015-12-24 15:13:17 +01:00