Commit Graph

841 Commits

Author SHA1 Message Date
terrafrost
f664ccb521 SSH2: make exceptions more useful for read() / write() 2023-05-07 11:07:07 -05:00
terrafrost
184a984e97 SSH2: updates to openchannel refactoring 2023-04-14 18:01:20 -05:00
terrafrost
5fb084b04c SSH2: if the server doesn't support multiple channels error out 2023-03-29 04:05:41 -05:00
terrafrost
cecabb1fea SSH/SFTP: create new openChannel() method to eliminate dupe code 2023-03-27 17:46:46 -05:00
terrafrost
b799abd1a0 SSH/SFTP: make message numbers / packet types static as well 2023-03-23 13:04:07 -05:00
terrafrost
9705cbbc26 SSH/SFTP: make define_array static 2023-03-23 12:23:43 -05:00
Robert
7ec36fb5d5 Exposed publically open shell method as well as methods to query interactive channel open statuses.
Removed in_request_pty_exec and in_subsystem flags, and removed uses of MASK_SHELL in bitmap, replacing with open channel status queries.
Adding channel argument to read, write, and reset allowing callers to select among multiple open interactive channels.
Adding interactive channel identifier interface as sanctioned path for users to obtain channels ids instead of using channel constants.
Deprecating get_interactive_channel helper and documenting its "legacy" behavior in read, write, and reset doc blocks.
Removing disconnect on timeout in channel close for lack of clarity around timeout origin.
Check for open channel prior to closing in stopSubsystem and reset.
2023-03-16 10:18:03 -05:00
terrafrost
71b9b64203 CS adjustments 2023-03-04 20:47:49 -06:00
terrafrost
1a201dd131 Merge branch '2.0' into 3.0 2022-12-11 08:59:36 -06:00
terrafrost
6611c0b566 Merge branch '1.0' into 2.0 2022-12-11 07:30:01 -06:00
terrafrost
1c56e00cf8 SSH2: if logging in with rsa-sha2-256/512 fails, try ssh-rsa 2022-12-11 07:29:44 -06:00
terrafrost
4f53331c98 SSH2: rm if condition that can't ever be true in 3.0+ 2022-09-23 23:03:11 -05:00
terrafrost
59e34b1cd3 SSH2: fix type hinting for keyboard_interactive_helper 2022-09-05 12:50:38 -05:00
terrafrost
477b98d43d SSH2 / SFTP: unify logging and add a new mode - LOG_SIMPLE_REALTIME 2022-07-06 21:22:03 -05:00
terrafrost
250f1a5b51 more backporting 2022-07-02 21:49:45 -05:00
terrafrost
9c45309d0e SSH2: CS adjustment 2022-06-14 03:58:31 -05:00
terrafrost
fbf6027a43 Merge branch '2.0' into 3.0 2022-06-14 00:03:13 -05:00
terrafrost
5ea851d68b Merge branch '1.0' into 2.0 2022-06-14 00:02:23 -05:00
terrafrost
62677de0bf SSH2: fix possibly undefined variable error 2022-06-14 00:02:10 -05:00
terrafrost
15ad047415 replace git.io links 2022-05-06 16:25:22 -05:00
Jack Worman
8855351cbb Remove_@access 2022-05-04 01:35:56 -05:00
terrafrost
a965060d81 SSH2: make login method return false under rare situation 2022-05-04 01:18:33 -05:00
Jack Worman
0a69972571 Clean Up Tests 2022-03-15 18:49:38 -05:00
Jack Worman
574953061a PSR4 for tests and added fall-through for switches
PSR4 for tests and added fall-through for switches
2022-02-27 01:26:31 -06:00
Jack Worman
ea9f6540f3 PSR12 fixes
PSR12 fixes
2022-02-19 17:06:13 -06:00
terrafrost
56973d40db SSH2: stop using more dynamic properties in SymmetricKey 2022-02-01 21:17:10 -06:00
Jack Worman
9b1c218664 psalm ci
psalm-ci

psalm-ci

psalm-ci
2022-02-01 20:45:53 -06:00
Jack Worman
ef66d9f7dd php-cs-fixer ci
php-cs-fixer ci
2022-02-01 20:29:48 -06:00
terrafrost
3f2a5aa4cd SSH2: stop using dynamic properties in Hash 2022-01-30 01:52:31 -06:00
terrafrost
215fd61d12 SSHi2: stop using dynamic properties in SymmetricKey 2022-01-30 01:36:02 -06:00
Jack Worman
0a9fc99dc8 Un-qualifying global functions
Un-qualifying global functions
2022-01-30 01:19:16 -06:00
Jack Worman
e3b71763ae Fixed psalm level 6 errors in phpseclib/Net/ 2022-01-30 01:18:53 -06:00
terrafrost
3d70b5ece8 SSH2: rm debug code 2022-01-29 11:38:19 -06:00
terrafrost
de4220c461 SSH2: CS adjustments 2022-01-29 11:35:38 -06:00
terrafrost
e6afe3e25f Merge branch '2.0' into 3.0 2022-01-28 00:54:53 -06:00
terrafrost
ef45ea7289 Merge branch '0.0' into 2.0 2022-01-28 00:52:05 -06:00
uzulla
ba4414c2f3 Fix: avoid warn when cast float to int in PHP7.1.
I got some error.

```
 Implicit conversion from float 992216.1102294922 to int loses precision

---

```
2022-01-28 00:44:44 -06:00
terrafrost
a748bf5bef SSH2: one more tweak to RSA signature verificatio 2022-01-27 18:26:08 -06:00
terrafrost
decbde4f5d SSH2: rsa-sha2-256 and rsa-sha2-512 sigs weren't verifying 2022-01-27 05:51:06 -06:00
Jack Worman
7c000843ab Corrected many @return annotations in phpseclib/Net
Corrected many @return annotations in phpseclib/Net
2022-01-23 11:00:41 -06:00
terrafrost
602760c5d8 SSH2: CS change for 3.0 branch 2022-01-14 18:32:23 -06:00
terrafrost
d359543fe7 Merge branch '2.0' into 3.0 2022-01-14 18:31:48 -06:00
terrafrost
89482747a6 Merge branch '0.0' into 2.0 2022-01-14 18:31:37 -06:00
terrafrost
dac83d206e SSH2: fix pre-PHP 5.4 syntax error 2022-01-14 18:31:19 -06:00
Michael Käfer
d71522d8aa Remove define() from SSH2 and use class constants instead (3.0 branch) 2021-12-14 16:34:41 +01:00
Michael Käfer
624f328c88 Remove define() from SSH2 and use class constants instead 2021-12-14 13:18:33 +01:00
terrafrost
072a56b2f9 SSH2: allow for stringable objects 2021-12-07 22:20:55 -06:00
terrafrost
20b9abf589 SSH2: show a more helpful error message when logging in with pubkey 2021-12-07 22:10:29 -06:00
terrafrost
6a935bb57b Merge branch '2.0' into 3.0 2021-12-07 21:59:47 -06:00
terrafrost
a74707e080 SSH2: make login() return false if no valid auth methods are found
this is an issue if you, for example, login with a PublicKey instead of a PrivateKey
2021-12-07 21:59:24 -06:00