Caleb Stewart
3e501d2957
Added enumeration scopes
2021-06-18 22:04:12 -04:00
Caleb Stewart
270f6793ad
Fixed changelog
2021-06-18 20:28:57 -04:00
Caleb Stewart
42e90fbb25
Merge branch 'master' into release-v0.5.0
2021-06-18 20:26:58 -04:00
Caleb Stewart
3c09a84454
Bumped version number and changelog
2021-06-18 20:21:25 -04:00
Caleb Stewart
25fac6ae09
Merge branch 'master' into release-v0.5.0
2021-06-18 20:02:34 -04:00
Caleb Stewart
a949a611c1
Merge pull request #138 from calebstewart/issue-133-uncaught-channelerror
...
Improved exception handling throughout the framework.
2021-06-18 19:57:02 -04:00
Caleb Stewart
d2e757e7f3
Merge branch 'issue-133-uncaught-channelerror' of github.com:calebstewart/pwncat into issue-133-uncaught-channelerror
2021-06-18 19:47:12 -04:00
Caleb Stewart
a95f2df50c
Fixed Windows platform transitions
...
Exception handling in the output thread was cleaned up and had Windows
platform raise the RawModeExit exception to trigger an exit when
interactive end marker was observed.
2021-06-18 19:45:59 -04:00
Caleb Stewart
f1b96a8f9d
Merge branch 'master' into issue-133-uncaught-channelerror
2021-06-18 18:48:37 -04:00
Caleb Stewart
cce789c99d
Updated changelog
...
There's no easy way to classify all the exception handling fixes
implemented in this branch, so I'm just going with this...
2021-06-18 18:44:23 -04:00
Caleb Stewart
d01bdcba49
Merge pull request #142 from calebstewart/fix-readline-regression
...
Re-added readline import after regression
2021-06-18 18:36:07 -04:00
Caleb Stewart
b680c1f276
Added changelog entry
2021-06-18 18:33:21 -04:00
Caleb Stewart
6c26df12c1
Re-added readline import after regression
2021-06-18 18:30:57 -04:00
Caleb Stewart
5ec4e35bb1
Merge pull request #141 from calebstewart/issue-140-linux-file-writer-close
...
- Removed `C-d` loop in `LinuxWriter.close`
- Added double `C-d` routine based on last character written to `LinuxWriter.close`
- Changed upload success message to match size calculations from `rich.progress`.
- Added better file IO test cases (small text, large text, small binary, large binary)
2021-06-18 18:18:05 -04:00
Caleb Stewart
650231f30a
Removed unused import
2021-06-18 15:38:45 -04:00
Caleb Stewart
fedf2c617e
Fixed exception handler in connect command
2021-06-18 15:38:01 -04:00
Caleb Stewart
ccc83215df
Fixed back command exception
2021-06-18 15:03:16 -04:00
Caleb Stewart
d6bf81e473
Fixed invalid escape sequence in docstring
2021-06-18 14:46:53 -04:00
Caleb Stewart
a33b9ebb56
Improved create_session documentation, removed try-except
2021-06-18 14:44:18 -04:00
Caleb Stewart
a900282219
Merge remote-tracking branch 'mitul16/issue-133-uncaught-channelerror' into issue-133-uncaught-channelerror
2021-06-18 14:37:59 -04:00
Caleb Stewart
b8f53001d2
Fixed exception handler in get_host_hash
2021-06-18 14:31:45 -04:00
Caleb Stewart
521550dc82
Added CHANGELOG entries for PR141
2021-06-18 14:12:47 -04:00
Caleb Stewart
5544954852
Added better file io tests which pass
2021-06-18 14:10:56 -04:00
Mitul16
231c76fcda
Added a comment about the fix
...
This change was not committed, possibly due to the use of testing directory
2021-06-18 18:12:28 +05:30
Mitul16
ffd7f80e0d
Fixed flake8 warning, one unused import
2021-06-18 16:24:31 +05:30
Mitul16
6b8a956c54
Fixed ChannelError constructor calls
...
There is a missing argument to the ChannelError constructor - ch (channel). Because of this, many explicitly passed error messages are simply rejected. There is a minor typo correction as well, 'writiers' -> 'writers'.
2021-06-18 16:17:53 +05:30
Caleb Stewart
89ad889977
Changed ChannelError to ChannelClosed in Socket
...
Socket-based channels now raise ChannelClosed if no connection is active
and a recv/send method is called. Also, the close method no longer
raises an exception if the channel is not active. It is silently ignored
as a NOOP.
2021-06-17 18:08:50 -04:00
Caleb Stewart
a59857a2fc
Added bare except around entire interactive loop
2021-06-17 17:58:30 -04:00
Caleb Stewart
a1499f1a38
Added permission checks when opening files
...
Also fixed a tangential problem which arose regarding the group
enumerations which caused a recursive call the enumerate groups
from within the group enumeration.
2021-06-17 17:47:07 -04:00
Caleb Stewart
3c33d015e8
Added way for output thread to communicate channel error
2021-06-17 17:00:24 -04:00
Caleb Stewart
65c3dd4864
Brought interactive enabling into exception handler
2021-06-17 16:31:52 -04:00
Caleb Stewart
af84d1a5a8
Added correct channel closing logic to Socket
...
The recv method did not used to handle an empty result properly. It now
raises a ChannelClosed exception properly. Also, odly, the
`Manager.find_session_by_channel` method had never been implemented.
2021-06-17 15:57:16 -04:00
Caleb Stewart
8e40b1759d
Removed C-d loop in favor of static C-d count
...
It appears that you need to send every C-d twice, but I can't figure out
why. All manual testing only requires a single C-d, but double each
seems to correctly behave with file IO.
2021-06-17 13:29:14 -04:00
Caleb Stewart
d8a566a51d
Merge pull request #139 from calebstewart/issue-118-ssl-bind
...
- Added `ssl-bind` and `ssl-connect` channel protocols for encrypted shells
- Added `ncat`-style arguments for the entrypoint and `connect` command (e.g. `--ssl` and `--ssl-cert`/`--ssl-key`)
- Added query-string arguments to connection strings for both the entrypoint
and the `connect` command.
2021-06-17 00:01:26 -04:00
Caleb Stewart
102426e59f
Added ncat style arguments to entry and connect
2021-06-16 22:44:29 -04:00
Caleb Stewart
39447c6a31
Ran pre-merge checks and updated changelog
2021-06-16 19:10:33 -04:00
Caleb Stewart
e187240c5f
Merge branch 'issue-118-ssl-bind' of github.com:calebstewart/pwncat into issue-118-ssl-bind
2021-06-16 19:05:33 -04:00
Caleb Stewart
a168857852
Fixed typo in users variable
2021-06-16 19:05:12 -04:00
Caleb Stewart
e843c89b9a
Added ssl-bind and ssl-connect usage documentation
2021-06-16 19:05:12 -04:00
Caleb Stewart
c12d53d8c7
Added updated entrypoint syntax to connect command
2021-06-16 19:05:12 -04:00
Caleb Stewart
74962f2b2d
Added certificate options for entrypoint
...
TODO: transfer entrypoint logic to `connect`
2021-06-16 19:05:12 -04:00
Caleb Stewart
0f00871abf
Added ssl-connect protocol
2021-06-16 19:05:12 -04:00
Caleb Stewart
2c9a1dbc71
Initial implementation of ssl-wrapped socket
2021-06-16 19:05:12 -04:00
Caleb Stewart
882f41626a
Added issue link to changelog
2021-06-16 18:51:45 -04:00
Caleb Stewart
5b2b11389e
Updated changelog for exception handling
2021-06-16 18:49:56 -04:00
Caleb Stewart
07be104ddd
Added exception handling for state transition
2021-06-16 18:48:10 -04:00
Caleb Stewart
2691f77c76
Merge pull request #136 from calebstewart/update-issue-templates
...
Added headings and version in feature/bug reports
2021-06-16 18:16:59 -04:00
Caleb Stewart
4116f94814
Added headings and version in feature/bug reports
2021-06-16 18:15:44 -04:00
Caleb Stewart
5f18ed48c6
Merge pull request #135 from calebstewart/issue-134-dockerhub-builds-failing
...
- Pinned Alpine to 3.13.5 in Dockerfile
- Installed pwncat within a virtual environment at /opt/pwncat inside the container
2021-06-16 18:03:16 -04:00
Caleb Stewart
6500ba72ec
Merge branch 'master' into issue-134-dockerhub-builds-failing
2021-06-16 17:31:54 -04:00