Created
April 12, 2017 20:15
-
-
Save CNG/436264df4bff6d99208d67ce1f42a2c5 to your computer and use it in GitHub Desktop.
Socket listen to failed SSH connection (Protocol mismatch) over ADB forwarded socket to Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ sudo mv /var/folders/jk/3fltf9vx0n15p2qhkpjx2zk80000gn/T/adb-channel.O3qvO2/sock /var/folders/jk/3fltf9vx0n15p2qhkpjx2zk80000gn/T/adb-channel.O3qvO2/sock.original | |
sudo socat -t100 -x -v UNIX-LISTEN:/var/folders/jk/3fltf9vx0n15p2qhkpjx2zk80000gn/T/adb-channel.O3qvO2/sock,mode=777,reuseaddr,fork UNIX-CONNECT:/var/folders/jk/3fltf9vx0n15p2qhkpjx2zk80000gn/T/adb-channel.O3qvO2/sock.original | |
< 2017/04/12 03:20:06.995969 length=21 from=0 to=20 | |
53 53 48 2d 32 2e 30 2d 4f 70 65 6e 53 53 48 5f SSH-2.0-OpenSSH_ | |
37 2e 31 0d 0a 7.1.. | |
-- | |
> 2017/04/12 03:20:07.014937 length=1432 from=0 to=1431 | |
00 00 05 94 0b 14 08 12 e0 64 0b 32 7c d3 0d ce .........d.2|... | |
42 da 73 55 13 46 00 00 01 30 63 75 72 76 65 32 B.sU.F...0curve2 | |
35 35 31 39 2d 73 68 61 32 35 36 2c 63 75 72 76 5519-sha256,curv | |
65 32 35 35 31 39 2d 73 68 61 32 35 36 40 6c 69 e25519-sha256@li | |
62 73 73 68 2e 6f 72 67 2c 65 63 64 68 2d 73 68 bssh.org,ecdh-sh | |
61 32 2d 6e 69 73 74 70 32 35 36 2c 65 63 64 68 a2-nistp256,ecdh | |
2d 73 68 61 32 2d 6e 69 73 74 70 33 38 34 2c 65 -sha2-nistp384,e | |
63 64 68 2d 73 68 61 32 2d 6e 69 73 74 70 35 32 cdh-sha2-nistp52 | |
31 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 1,diffie-hellman | |
2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67 65 2d -group-exchange- | |
73 68 61 32 35 36 2c 64 69 66 66 69 65 2d 68 65 sha256,diffie-he | |
6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 36 2d 73 68 llman-group16-sh | |
61 35 31 32 2c 64 69 66 66 69 65 2d 68 65 6c 6c a512,diffie-hell | |
6d 61 6e 2d 67 72 6f 75 70 31 38 2d 73 68 61 35 man-group18-sha5 | |
31 32 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 12,diffie-hellma | |
6e 2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67 65 n-group-exchange | |
2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68 65 6c -sha1,diffie-hel | |
6c 6d 61 6e 2d 67 72 6f 75 70 31 34 2d 73 68 61 lman-group14-sha | |
32 35 36 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 256,diffie-hellm | |
61 6e 2d 67 72 6f 75 70 31 34 2d 73 68 61 31 2c an-group14-sha1, | |
65 78 74 2d 69 6e 66 6f 2d 63 00 00 01 22 65 63 ext-info-c..."ec | |
64 73 61 2d 73 68 61 32 2d 6e 69 73 74 70 32 35 dsa-sha2-nistp25 | |
36 2d 63 65 72 74 2d 76 30 31 40 6f 70 65 6e 73 6-cert-v01@opens | |
73 68 2e 63 6f 6d 2c 65 63 64 73 61 2d 73 68 61 sh.com,ecdsa-sha | |
32 2d 6e 69 73 74 70 33 38 34 2d 63 65 72 74 2d 2-nistp384-cert- | |
76 30 31 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c v01@openssh.com, | |
65 63 64 73 61 2d 73 68 61 32 2d 6e 69 73 74 70 ecdsa-sha2-nistp | |
35 32 31 2d 63 65 72 74 2d 76 30 31 40 6f 70 65 521-cert-v01@ope | |
6e 73 73 68 2e 63 6f 6d 2c 73 73 68 2d 65 64 32 nssh.com,ssh-ed2 | |
35 35 31 39 2d 63 65 72 74 2d 76 30 31 40 6f 70 5519-cert-v01@op | |
65 6e 73 73 68 2e 63 6f 6d 2c 73 73 68 2d 72 73 enssh.com,ssh-rs | |
61 2d 63 65 72 74 2d 76 30 31 40 6f 70 65 6e 73 a-cert-v01@opens | |
73 68 2e 63 6f 6d 2c 65 63 64 73 61 2d 73 68 61 sh.com,ecdsa-sha | |
32 2d 6e 69 73 74 70 32 35 36 2c 65 63 64 73 61 2-nistp256,ecdsa | |
2d 73 68 61 32 2d 6e 69 73 74 70 33 38 34 2c 65 -sha2-nistp384,e | |
63 64 73 61 2d 73 68 61 32 2d 6e 69 73 74 70 35 cdsa-sha2-nistp5 | |
32 31 2c 73 73 68 2d 65 64 32 35 35 31 39 2c 72 21,ssh-ed25519,r | |
73 61 2d 73 68 61 32 2d 35 31 32 2c 72 73 61 2d sa-sha2-512,rsa- | |
73 68 61 32 2d 32 35 36 2c 73 73 68 2d 72 73 61 sha2-256,ssh-rsa | |
00 00 00 8d 63 68 61 63 68 61 32 30 2d 70 6f 6c ....chacha20-pol | |
79 31 33 30 35 40 6f 70 65 6e 73 73 68 2e 63 6f y1305@openssh.co | |
6d 2c 61 65 73 31 32 38 2d 63 74 72 2c 61 65 73 m,aes128-ctr,aes | |
31 39 32 2d 63 74 72 2c 61 65 73 32 35 36 2d 63 192-ctr,aes256-c | |
74 72 2c 61 65 73 31 32 38 2d 67 63 6d 40 6f 70 tr,aes128-gcm@op | |
65 6e 73 73 68 2e 63 6f 6d 2c 61 65 73 32 35 36 enssh.com,aes256 | |
2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d -gcm@openssh.com | |
2c 61 65 73 31 32 38 2d 63 62 63 2c 61 65 73 31 ,aes128-cbc,aes1 | |
39 32 2d 63 62 63 2c 61 65 73 32 35 36 2d 63 62 92-cbc,aes256-cb | |
63 00 00 00 8d 63 68 61 63 68 61 32 30 2d 70 6f c....chacha20-po | |
6c 79 31 33 30 35 40 6f 70 65 6e 73 73 68 2e 63 ly1305@openssh.c | |
6f 6d 2c 61 65 73 31 32 38 2d 63 74 72 2c 61 65 om,aes128-ctr,ae | |
73 31 39 32 2d 63 74 72 2c 61 65 73 32 35 36 2d s192-ctr,aes256- | |
63 74 72 2c 61 65 73 31 32 38 2d 67 63 6d 40 6f ctr,aes128-gcm@o | |
70 65 6e 73 73 68 2e 63 6f 6d 2c 61 65 73 32 35 penssh.com,aes25 | |
36 2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6-gcm@openssh.co | |
6d 2c 61 65 73 31 32 38 2d 63 62 63 2c 61 65 73 m,aes128-cbc,aes | |
31 39 32 2d 63 62 63 2c 61 65 73 32 35 36 2d 63 192-cbc,aes256-c | |
62 63 00 00 00 d5 75 6d 61 63 2d 36 34 2d 65 74 bc....umac-64-et | |
6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 75 6d m@openssh.com,um | |
61 63 2d 31 32 38 2d 65 74 6d 40 6f 70 65 6e 73 ac-128-etm@opens | |
73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 sh.com,hmac-sha2 | |
2d 32 35 36 2d 65 74 6d 40 6f 70 65 6e 73 73 68 -256-etm@openssh | |
2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 2d 35 .com,hmac-sha2-5 | |
31 32 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 12-etm@openssh.c | |
6f 6d 2c 68 6d 61 63 2d 73 68 61 31 2d 65 74 6d om,hmac-sha1-etm | |
40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 75 6d 61 @openssh.com,uma | |
63 2d 36 34 40 6f 70 65 6e 73 73 68 2e 63 6f 6d c-64@openssh.com | |
2c 75 6d 61 63 2d 31 32 38 40 6f 70 65 6e 73 73 ,umac-128@openss | |
68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 2d h.com,hmac-sha2- | |
32 35 36 2c 68 6d 61 63 2d 73 68 61 32 2d 35 31 256,hmac-sha2-51 | |
32 2c 68 6d 61 63 2d 73 68 61 31 00 00 00 d5 75 2,hmac-sha1....u | |
6d 61 63 2d 36 34 2d 65 74 6d 40 6f 70 65 6e 73 mac-64-etm@opens | |
73 68 2e 63 6f 6d 2c 75 6d 61 63 2d 31 32 38 2d sh.com,umac-128- | |
65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c etm@openssh.com, | |
68 6d 61 63 2d 73 68 61 32 2d 32 35 36 2d 65 74 hmac-sha2-256-et | |
6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d m@openssh.com,hm | |
61 63 2d 73 68 61 32 2d 35 31 32 2d 65 74 6d 40 ac-sha2-512-etm@ | |
6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 openssh.com,hmac | |
2d 73 68 61 31 2d 65 74 6d 40 6f 70 65 6e 73 73 -sha1-etm@openss | |
68 2e 63 6f 6d 2c 75 6d 61 63 2d 36 34 40 6f 70 h.com,umac-64@op | |
65 6e 73 73 68 2e 63 6f 6d 2c 75 6d 61 63 2d 31 enssh.com,umac-1 | |
32 38 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 28@openssh.com,h | |
6d 61 63 2d 73 68 61 32 2d 32 35 36 2c 68 6d 61 mac-sha2-256,hma | |
63 2d 73 68 61 32 2d 35 31 32 2c 68 6d 61 63 2d c-sha2-512,hmac- | |
73 68 61 31 00 00 00 1a 6e 6f 6e 65 2c 7a 6c 69 sha1....none,zli | |
62 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 7a 6c b@openssh.com,zl | |
69 62 00 00 00 1a 6e 6f 6e 65 2c 7a 6c 69 62 40 ib....none,zlib@ | |
6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 7a 6c 69 62 openssh.com,zlib | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 ........ | |
-- | |
< 2017/04/12 03:20:07.020855 length=19 from=21 to=39 | |
50 72 6f 74 6f 63 6f 6c 20 6d 69 73 6d 61 74 63 Protocol mismatc | |
68 2e 0a h.. | |
-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment