Rev 9106 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9106 | Rev 9987 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ; sshlib_channel.inc - SSH channel |
1 | ; sshlib_channel.inc - SSH channel |
2 | ; |
2 | ; |
3 | ; Copyright (C) 2016-2021 Jeffrey Amelynck |
3 | ; Copyright (C) 2016-2024 Jeffrey Amelynck |
4 | ; |
4 | ; |
5 | ; This program is free software: you can redistribute it and/or modify |
5 | ; This program is free software: you can redistribute it and/or modify |
6 | ; it under the terms of the GNU General Public License as published by |
6 | ; it under the terms of the GNU General Public License as published by |
7 | ; the Free Software Foundation, either version 3 of the License, or |
7 | ; the Free Software Foundation, either version 3 of the License, or |
8 | ; (at your option) any later version. |
8 | ; (at your option) any later version. |
Line 18... | Line 18... | ||
18 | 18 | ||
Line 19... | Line 19... | ||
19 | proc sshlib_chan_open con_ptr; Channel struct ptr?! |
19 | proc sshlib_chan_open con_ptr; Channel struct ptr?! |
Line 20... | Line 20... | ||
20 | 20 | ||
Line 21... | Line 21... | ||
21 | ; >> Open channel |
21 | ; >> Open channel |
22 | 22 | ||
23 | DEBUGF 2, "SSH: Open channel\n" |
23 | DEBUGF 2, "SSH: Opening channel\n" |
24 | 24 | ||
Line 36... | Line 36... | ||
36 | 36 | ||
37 | mov esi, [con_ptr] |
37 | mov esi, [con_ptr] |
38 | cmp [esi + sshlib_connection.rx_buffer.message_code], SSH_MSG_CHANNEL_OPEN_CONFIRMATION |
38 | cmp [esi + sshlib_connection.rx_buffer.message_code], SSH_MSG_CHANNEL_OPEN_CONFIRMATION |
Line -... | Line 39... | ||
- | 39 | jne .err_proto |
|
- | 40 | ||
39 | jne .err_proto |
41 | DEBUGF 2, "SSH: Channel opened successfully\n" |
Line 40... | Line 42... | ||
40 | 42 | ||
Line 41... | Line 43... | ||
41 | ; >> Channel request: pty |
43 | ; >> Channel request: pty |
42 | 44 | ||
43 | DEBUGF 2, "SSH: Request pty\n" |
45 | DEBUGF 2, "SSH: Requesting PTY\n" |
Line 54... | Line 56... | ||
54 | 56 | ||
55 | mov esi, [con_ptr] |
57 | mov esi, [con_ptr] |
56 | cmp [esi + sshlib_connection.rx_buffer.message_code], SSH_MSG_CHANNEL_SUCCESS |
58 | cmp [esi + sshlib_connection.rx_buffer.message_code], SSH_MSG_CHANNEL_SUCCESS |
Line -... | Line 59... | ||
- | 59 | jne .err_proto |
|
- | 60 | ||
57 | jne .err_proto |
61 | DEBUGF 2, "SSH: PTY opened successfully\n" |
Line 58... | Line 62... | ||
58 | 62 | ||
Line 59... | Line 63... | ||
59 | ; >> Channel request: shell |
63 | ; >> Channel request: shell |
60 | 64 | ||
61 | DEBUGF 2, "SSH: Request shell\n" |
65 | DEBUGF 2, "SSH: Requesting shell\n" |
Line 74... | Line 78... | ||
74 | 78 | ||
75 | mov esi, [con_ptr] |
79 | mov esi, [con_ptr] |
76 | cmp [esi + sshlib_connection.rx_buffer.message_code], SSH_MSG_CHANNEL_SUCCESS |
80 | cmp [esi + sshlib_connection.rx_buffer.message_code], SSH_MSG_CHANNEL_SUCCESS |
Line -... | Line 81... | ||
- | 81 | jne .wait_success |
|
- | 82 | ||
77 | jne .wait_success |
83 | DEBUGF 2, "SSH: Shell opened successfully\n" |
78 | 84 | ||
79 | xor eax, eax |
85 | xor eax, eax |
Line 80... | Line 86... | ||
80 | .err: |
86 | .err: |