[sudo-users] Source code for sudoreplay
Todd C. Miller
Todd.Miller at sudo.ws
Tue Mar 12 16:48:03 MDT 2019
On Tue, 12 Mar 2019 15:47:42 -0500, Bryan Christ wrote:
> Where can I find the source code to sudoreplay? I'm curious as to how it
> handles certain escape sequences. In other words the control code sequence
> for RS1 is different on xterm than it is for rxvt. The same applies for
> other control code sequences. Does the tool just pass the codes through
> and hope for the best?
Most of the sudoreplay code is in plugins/sudoers/sudoreplay.c. It
is a fairly simple-minded program that just writes the log and hopes
for the best. I was not prepared to write a termcap/terminfo
transcoder :-)
- todd
More information about the sudo-users
mailing list