Spencer McIntyre
0314569e3d
Fix rubocop issues in session files
2021-07-23 10:58:13 -04:00
Spencer McIntyre
0251dff80b
Add more descriptive error messages and logging
2021-07-14 14:38:33 -04:00
Spencer McIntyre
7aa44a9a80
Add a couple more socket methods
2021-07-14 11:00:34 -04:00
Spencer McIntyre
06b592cfa1
Update the session initialization method
2021-07-13 17:25:19 -04:00
Spencer McIntyre
15268366e1
Fix a bug in how sockets are closed
2021-07-13 17:10:54 -04:00
Spencer McIntyre
8ab78da7b5
Raise more descriptive exceptions
2021-07-09 17:14:54 -04:00
Spencer McIntyre
46a877678d
Refactor some channel related Meterpreter code
...
This makes some of the channel related Meterpreter code accessible to
other locations in the framework which enables other sessions to also
support pivoting capabilities.
2021-06-30 09:25:25 -04:00
Spencer McIntyre
7bddaeb74f
Add documentation for the new session
2021-06-30 09:00:13 -04:00
Spencer McIntyre
208ab470e7
Switch from stderr to proper logging
2021-06-29 18:29:14 -04:00
Spencer McIntyre
4c925ce686
Add the channel's #read method
2021-06-29 13:40:21 -04:00
Spencer McIntyre
a6b5c89b1d
Cleanup channels when the session is closed
2021-06-29 09:55:35 -04:00
Spencer McIntyre
2c2ae2581a
Make the session a channel container
2021-06-28 17:43:57 -04:00
Spencer McIntyre
1aef1658b0
Handle ssh channel failures and timeouts
2021-06-28 16:47:14 -04:00
Spencer McIntyre
233d353403
Fix how the address of forwarded connections
...
The rstream is the command shell stream which is not the same as the
underlying network transport. In order for the session's connection
information to be reported properly (as represented by the output of
`sessions`) the SSH connection socket needs to be set as #sock.
2021-06-25 21:59:27 -04:00
Spencer McIntyre
a6afac608b
Squash some unnecessary code
2021-06-25 21:19:05 -04:00
Spencer McIntyre
f01e4a4408
More work on SSH pivoting
2021-06-25 21:19:05 -04:00
Spencer McIntyre
10ad84434c
Initial support for pivoting over SSH
2021-06-25 21:19:05 -04:00