Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 545134 Details for
Bug 664384
net-misc/openssh-7.7p1: openssh private key decryption breakage
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
find_bad_key.sh (v2)
find_bad_key.sh (text/plain), 835 bytes, created by
Alexander Sergeyev
on 2018-08-26 16:43:14 UTC
(
hide
)
Description:
find_bad_key.sh (v2)
Filename:
MIME Type:
Creator:
Alexander Sergeyev
Created:
2018-08-26 16:43:14 UTC
Size:
835 bytes
patch
obsolete
>#!/bin/bash >set -o errexit > >readonly tmp_path=$(mktemp --directory) >function cleanup { [[ ! -z "$tmp_path" ]] && rm -r "$tmp_path"; } >trap cleanup EXIT > >cd "${tmp_path}" >for ((i=0;i<10000;++i)); do > ssh-keygen -t ecdsa -b 521 -N "12345678" -f testkey 1>/dev/null > # note: don't want to actually change keys -- and since we really care > # about the specific error message, we can just provide a wrong passphrase > if ssh-keygen -p -P x -N y -f testkey 0<&- 2>&1 | grep -q invalid; then > echo "[attempt #$i] found a broken key (passphrase = 12345678):" > echo; echo "# $ ssh-keygen -p -P x -N y -f testkey 0<&- 2>&1" > ssh-keygen -p -P x -N y -f testkey 0<&- 2>&1 0<&- 2>&1 | sed 's/^/# /' || : > echo > cat testkey > exit 0 > fi > rm ./testkey* >done >echo "No broken keys in $i tries"
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 664384
:
545034
|
545120
|
545134
|
545156