file_ex/magic/Magdir/ssh

43 lines
1.6 KiB
Text
Raw Normal View History

2023-08-06 16:12:15 +00:00
# Type: OpenSSH key files
# From: Nicolas Collignon <tsointsoin@gmail.com>
2023-08-08 11:16:24 +00:00
0 string SSH\040PRIVATE\040KEY OpenSSH RSA1 private key,
2023-08-06 16:12:15 +00:00
>28 string >\0 version %s
2023-08-08 11:16:24 +00:00
0 string -----BEGIN\040OPENSSH\040PRIVATE\040KEY----- OpenSSH private key
# https://www.rfc-editor.org/rfc/rfc5958
0 string -----BEGIN\040PRIVATE\040KEY----- OpenSSH private key (no password)
0 string -----BEGIN\040ENCRYPTED\040PRIVATE\040KEY----- OpenSSH private key (with password)
2023-08-06 16:12:15 +00:00
2023-08-08 11:16:24 +00:00
0 string ssh-dss\040 OpenSSH DSA public key
0 string ssh-rsa\040 OpenSSH RSA public key
2023-08-06 16:12:15 +00:00
0 string ecdsa-sha2-nistp256 OpenSSH ECDSA public key
0 string ecdsa-sha2-nistp384 OpenSSH ECDSA public key
0 string ecdsa-sha2-nistp521 OpenSSH ECDSA public key
0 string ssh-ed25519 OpenSSH ED25519 public key
0 string SSHKRL\n\0
>8 ubelong 1 OpenSSH key/certificate revocation list, format %u
>>12 ubequad x \b, version %llx
>>>20 beqdate x \b, generated %s
# From: Joerg Jenderek
# URL: https://en.wikipedia.org/wiki/PuTTY
# Reference: https://the.earth.li/~sgtatham/putty/latest/putty-0.73.tar.gz
# /sshpubk.c
0 string PuTTY-User-Key-File- PuTTY Private Key File
#!:mime text/plain
# https://github.com/github/putty/blob/master/windows/installer.wxs
!:mime application/x-putty-private-key
!:ext ppk
# version 1 or 2
>20 string x \b, version %.1s
# name of the algorithm like: ssh-dss ssh-rsa ecdsa-sha2-nistp256 ssh-ed25519
>23 string x \b, algorithm %s
# next line says "Encryption: " plus an encryption type like aes256-cbc or none
>32 search/13 Encryption:\040 \b, Encryption
>>&0 string x %s
# next line says "Comment: " plus the comment string
>>>&0 search/3 Comment:\040
>>>>&0 string x "%s"