Commit Graph

747 Commits

Author SHA1 Message Date
Mitul Varshney 6738fd27a4
Merge branch 'calebstewart:master' into master 2021-07-19 17:20:54 +05:30
Mitul16 7ca4760599 Fixed disabling of verbose output
Added a check for the 'set' command, so that if the user changes 'verbose' option then it is applied to every session
2021-07-19 17:14:21 +05:30
Mitul16 2767547019 Updated 'verbose' in 'Platform'
I have changed the logger name from 'str(channel)' to 'str(id(channel))' to create a logger unique to one 'channel'. Also, added a separate method to set verbose output and added a private variable to store the logging handler object
2021-07-19 17:14:13 +05:30
Caleb Stewart 4e38393632 Added changelog entry 2021-07-18 13:54:09 -04:00
Caleb Stewart 350824a8cb Ignored extra results from ipv6 getpeername 2021-07-18 13:48:12 -04:00
Caleb Stewart 4205177806
Merge pull request #158 from Mitul16/master
[FIXED #156] Raised exception on using 'sessions'
2021-07-18 12:49:12 -04:00
Mitul16 168b98ea7b Pre-Merge task: formatted w/ python-black 2021-07-18 13:25:25 +05:30
Mitul16 fd458aa308 Prevented '^C' from being shown to the user
This will only keep the 'log info' in one line, the output for 'rich console'. I have 'force-pushed' to prevent git-history pollution. Oops! I forgot to use same comments :p
2021-07-18 12:58:03 +05:30
Mitul16 a4cee5be27 Completed pre-merge tasks
There was a 'flake8' warning about an unused import 'import signal' in 'pwncat/platform/windows.py'
2021-07-18 02:38:01 +05:30
Mitul16 868ee84f0f Updated CHANGELOG.md 2021-07-18 02:37:49 +05:30
Mitul16 b511a37f71 Fixed some error messages
'socket.gaierror' is caught when we are unable to resolve the host name into the IP address. 'OSError' is caught when the host is invalid. I have now used the appropriate messages.
2021-07-18 02:30:17 +05:30
Mitul16 eae6440145 Replaced a single 'better shell' with a list
This is not a required feature to have, since 'bash' is rarely absent on a system. I may be wrong :p
2021-07-18 02:28:27 +05:30
Mitul16 50998d4c97 Fixed a possible exception leak
Previously, we were registering a new 'session' with the 'manager' before completing the setup: '__init__'. Any exception raised after we registered the 'session' didn't remove the registered session. This will allow the reuse of same 'session_id' because we have already registered the 'session' with this 'session_id', which may possibly be an invalid session because an exception is raised. And 'session_id' variable in 'manager' will not be updated because of this exception. Thus, I have shifted down the session registering part so that it occurs after the completion of session creation.
2021-07-18 02:24:28 +05:30
Mitul16 534002288c Added warning messages for 'KeyboardInterrupt'
I have added warning messages so that the attacker can use 'C-c' to cancel the session when used from command line (not from local prompt). And added the message for already handled same exception. I have also changed two warning message color from 'red' to 'yellow', because 'yellow' is being used everywhere in the code.
2021-07-18 02:21:16 +05:30
Mitul16 230b3995f5 Fixed a minor typo
To me, it looked like a 'typo'. You may !cherry-pick this commit. :)
2021-07-18 02:13:36 +05:30
Caleb Stewart 233919db7e Updated release v0.5.0 to changes in master 2021-07-03 17:01:37 -04:00
Caleb Stewart e6991fba07
Merge pull request #149 from calebstewart/issue-137-add-pwncat-to-pypi
[FEATURE #137] Add pwncat to PyPI
2021-07-03 16:44:38 -04:00
Caleb Stewart 561a3fcfe9
Merge branch 'release-v0.5.0' into issue-137-add-pwncat-to-pypi 2021-07-03 16:44:30 -04:00
Caleb Stewart 7906614d93
Merge pull request #145 from calebstewart/issue-43-background-listeners
[FEATURE #43] Background Listeners
2021-07-03 16:27:05 -04:00
Caleb Stewart f894c77bd9
Merge branch 'release-v0.5.0' into issue-43-background-listeners 2021-07-03 16:26:28 -04:00
Caleb Stewart ca37f74b37
Merge pull request #144 from calebstewart/issue-106-token-impersonation-ability
[FEATURE #106] Token Impersonation Ability and BadPotato PoC
2021-07-03 16:24:38 -04:00
Caleb Stewart 3ef26dcd6f Added some lines to changelog 2021-06-21 23:17:58 -04:00
Caleb Stewart 615d40f03a Ensured new sessions don't override old ones 2021-06-21 22:08:45 -04:00
Caleb Stewart 21ac079312 Added message for queuing pending channels and confirmation on exit 2021-06-21 21:52:23 -04:00
Caleb Stewart 175eb5da9f small change to .gitattributes 2021-06-21 15:29:36 -04:00
Caleb Stewart e3152e52f8
Merge pull request #148 from calebstewart/fix-language-listing
added gitattributes to hide powershell from language statistics
2021-06-21 15:25:59 -04:00
Caleb Stewart 7f4120e1e0 added gitattributes to hide powershell from language statistics 2021-06-21 15:21:24 -04:00
Caleb Stewart 892c7ab169 Removed flakehell as it appears unmaintained 2021-06-20 18:58:16 -04:00
Caleb Stewart b291439365 updated documentation for pypi upload 2021-06-20 01:08:29 -04:00
Caleb Stewart 4f0a884945 Moving development to poetry and added workflow 2021-06-20 01:00:23 -04:00
Caleb Stewart 157cea9c00 Added documentation for new listener api and commands 2021-06-19 23:10:41 -04:00
Caleb Stewart af0888fc70
Merge pull request #146 from Mitul16/patch-1
Updated current master branch version
2021-06-19 22:31:45 -04:00
Caleb Stewart 841e24b9de Fixed unassigned variable issuse on failed listeners 2021-06-19 20:41:58 -04:00
Caleb Stewart 80174614d2 Added default None value for established callback 2021-06-19 20:19:43 -04:00
Caleb Stewart e3c4c12cad Working background listener API and commands
Needs more testing, but is functioning currently.
2021-06-19 19:58:44 -04:00
Caleb Stewart 1fda11442a semi-working background listener api 2021-06-19 16:37:58 -04:00
Mitul Varshney 6fdd31d8d6
Updated current master branch version
Please consider any other modifications as well, e.g. _Read the Docs_
2021-06-19 13:42:58 +05:30
Caleb Stewart 21e9ed3b92 Initial structure for background listeners 2021-06-19 02:52:28 -04:00
Caleb Stewart 6b1e35a0e6 Added first badpotato privilege escalation 2021-06-19 00:50:31 -04:00
Caleb Stewart 8b0a25bad4
Merge pull request #143 from calebstewart/feature-session-scoped-enumeration
Added enumeration scopes
2021-06-18 22:55:04 -04:00
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