pancake
4b6fd801e4
Import last random rizin fixes and more ( #18128 )
2020-12-28 23:34:16 +01:00
pancake
62c2128b6f
Better use of the R_SOCKET_PROTO_DEFAULT and add _NONE ( #17644 )
...
* Better use of the R_SOCKET_PROTO_DEFAULT and add _NONE ##http
* Fix regressions in: r2 -C and =+ ##r2pipe
Introduced in 04edfa82c1f3fa2bc3621ccdad2f93bdbf00e4f9
* Implement sleep command ##shell
* Add tests for the webserver and remoting
* Implement daemon directive in rarun2, fix http test ##rarun2
* Fix socket timeout on Windows (patch by @GustavoLCR) ##socket
* Missing http.root is not a reason to not start the webserver ##http
* Fix r2 -C, =!=0, replace curl with r2 in the webserver test ##http
* Honor anal.in/from/to in aae, optimize db/formats/mach0/thumb ##anal
* Bug fixes and performance improvements
Co-authored-by: pancake <pancake@nopcode.org>
2020-09-25 19:51:23 +08:00
pancake
54617455de
Initial refactoring of the rap:// protocol (-75 LOC) ##socket ( #16534 )
...
* It's implemented in IO, Socket and Core
* Remove duplicated apis and defines, everything in in RSocket now
* RIO now owns an RCoreBind instead of 3 fcn pointers + 1 void*
* Use proper filenames in libr/socket following public api names
* Use RSocket.block apis in the rap client + server apis
2020-04-12 16:40:55 +02:00
Zi Fan
fec0aea039
Decouple shlr/gdb registers profile from code ( #16312 ) ##debug
...
* Sync r2 debugger registers profile with shlr/gdb
* Add new set_reg_profile function to r_debug plugin
* Add set_reg_profile to r_debug_plugin_gdb
* Change "drp" to sync r_debug plugin register profile
* Fix incorrect pointer arithmetic and code style
2020-03-27 02:00:27 +01:00
Aung Khant Ko
9374e9a1cb
Fix #16214 - segfault in =+ command
2020-03-25 10:21:25 +01:00
radare
5e629a3260
Avoidify the strTrim() APIs + cleanup/refactor ##util ( #16056 )
2020-03-02 21:39:37 +01:00
Paul I
0e62dda341
Fix fgets() usage ( #16068 )
2020-02-29 20:47:10 +01:00
Anton Kochkov
9ae41ae69f
Revert "Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor" ( #16055 )
...
This reverts commit 38b61c7bcfe55a727b9c3cedbc0f3147018e7c6b.
2020-02-26 09:59:04 +08:00
radare
38b61c7bcf
Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor
2020-02-25 17:53:09 +01:00
Anton Kochkov
d5d5cd3bfa
Some coverity fixes ( #15643 )
2019-12-16 04:36:46 -06:00
dok
34e4bd7291
Use sigaction instead of signal ##core
2019-11-06 12:41:36 +01:00
David CARLIER
6ac2e30735
CPU affinity API introduction ##core
2019-11-05 10:21:13 +01:00
Anton Kochkov
20e19d6023
More spelling fixes in the code
2019-06-20 13:36:02 +08:00
radare
a49bb7cf66
Change the signature of r_str_trim to avoid confusions ##refactor
2019-06-16 20:58:40 +02:00
pancake
073fcca0f3
Make -C http work like the tcp and rap remotes, expose the shell via == ##remote
2019-05-17 12:09:23 +02:00
pancake
10109fec62
Fix issues with the tcp server .: and =+tcp, use index instead of fd ##remote
2019-05-17 01:04:31 +02:00
radare
51cc15072a
Fix some UAF in rap server, handle HTTP over rap and tcp properly ##remote ( #14081 )
2019-05-16 14:18:16 +02:00
pancake
52122c9c67
Add vvs command to edit function signature from visual ##types
2019-05-06 20:36:41 +02:00
pancake
affeb0de5f
Initial rework towards bringing back remoting commands ##sync
2019-05-06 11:31:32 +02:00
David CARLIER
d9a15aa661
Further usage of thread debug ( #13359 )
2019-03-13 10:47:57 +01:00
GustavoLCR
81ad0fe809
Fix #13234 - Allow reopening of webserver ##sync
...
* Fix hang after ctrl-c
2019-03-06 04:43:32 +01:00
Riccardo Schirone
23161bbf7f
Remove most warnings during compilation
2019-02-14 10:40:25 +01:00
pancake
3868c055f4
Fix hang in =h&
2019-01-14 01:36:30 +01:00
pancake
213e4c9ca8
Initial implementation of the visual ROP browser ##visual
2019-01-14 01:09:30 +01:00
pancake
2c8d417d65
Implement the cmd_colon and experimental http.colon ##http
2019-01-13 03:42:56 +01:00
David CARLIER
de40266908
Add basic auth to the webserver ##sync
2019-01-10 10:51:51 +01:00
radare
32e494a696
Improve rap:// code, r2p_ is now r2pipe_ ##io ( #12699 )
2019-01-09 02:47:35 +01:00
pancake
f0f42c92e2
'=h&' is not an alias for '& =h' ##http
2019-01-07 13:38:42 +01:00
Florian Märkl
b0468f6b73
Make =h work in tasks ##threads
2019-01-07 13:24:30 +01:00
dav1901
303a57bb85
Minor code cleanups/fixes ( #12519 )
2018-12-20 11:50:29 +01:00
dav1901
558a79cae7
Fix few minor leaks and remove dead code ( #12201 )
2018-11-17 18:19:04 +01:00
lzutao
b790439e28
Cast arguments to ut8 when feeding ctype.h functions ##refactor
...
The behavior of the `<ctype.h>` functions is undefined for negative
arguments (other than `EOF`). In such a situation, the argument should
be cast to `unsiged char` for safety.
References:
- C Programming: A Modern Approach, 2nd Edition: page 612, chapter 23.5
2018-11-06 13:40:00 +01:00
pancake
41ec949204
Fix #11112 - Rename {srwx,flags,perms} to perm. (-21 LOC)
...
Unify R_IO, R_BIN, R_BP, .. into R_PERM_* using 1 letter syntax
2018-09-22 11:31:45 +02:00
Florian Märkl
c05c85aa9f
Reimplement TCP Server with libuv and add configure/meson flags ( #11403 )
2018-09-17 12:07:00 +02:00
Neven Sajko
4a722e80d8
Add braces to if, else, for, while ... ( #11504 )
2018-09-13 10:17:26 +02:00
pancake
bb6212da45
Fix 2 minor gcc8 warnings
2018-08-31 17:56:37 +02:00
Neven Sajko
aa35e11e2e
libr/core/rtr.c: Remove unused define ( #11327 )
2018-08-31 12:23:38 +02:00
Florian Märkl
2883398942
Fix #11081 - Transient Tasks ( #11214 )
...
* Make r_th_free() not kill the thread
* Transient Tasks
* Add transient info to & list output
* Use refcounting for Tasks
2018-08-23 13:49:28 +02:00
pancake
7e083b57fb
Fix last coverities (2 memleaks)
2018-08-17 17:38:24 +02:00
pancake
5b93b354ac
Add minor fixes (avoid numm dref)
2018-08-16 04:29:15 +02:00
Florian Märkl
ad42d0ed7f
Sleep in r_core_rtr_cmds() ( #11025 )
2018-08-11 17:24:19 +02:00
pancake
73643dbb6f
Fix =H& behaviour and warn about http.sandbox
2018-07-09 00:19:33 +02:00
Florian Märkl
5e35ad898b
RConsContext ( #10450 )
...
* Add RConsContext
* Swap cons in tasks using RConsContext
* Create cons context for background tasks
* Move event_interrupt to RConsContext
* Fix breaking main cons from signal
* Make r_print_is_interrupted() use callback
2018-06-23 12:10:13 +02:00
Florian Märkl
2202d14067
Timeout socket accept using select ( #10415 )
2018-06-20 11:20:55 +02:00
Florian Märkl
c1cdc7a8b6
Add timeout for accept in HTTP Server ( #10375 )
2018-06-18 01:32:24 +02:00
Arnaud Lefebvre
f33999ab60
rtr: block on read() when receiveng a cmd output ( #10204 )
...
Otherwise data could be truncated and the socket might still have some
data left
2018-05-28 11:38:23 +02:00
Arnaud Lefebvre
f6616578a2
rap: list open connections with full host ( #10205 )
2018-05-28 11:35:50 +02:00
pancake
be89180e7b
Cleaning up asn1 apis, standarize IS_* apis and some more cleanup
2018-05-21 22:13:07 +02:00
Khairul Kasmiran
2faadf6d86
r_cons_singleton() 🠊 r_cons_singleton ()
2018-05-02 21:36:08 +08:00
Siarhei Siniak
a792aaafbe
Add tcp.islocal to rtr ( #9508 )
...
1. Currently, tcp server binds any interface. The option
allows to restrict the binding to loopback interface only.
e tcp.islocal=true.
2018-02-27 13:11:26 +01:00