Spencer McIntyre
4ede4211e9
Cleanup channels when closing processes
2021-12-07 10:36:57 -05:00
dwelch-r7
89b6eb1e17
Honor the pty flag
2021-11-26 14:29:41 +00:00
Tim W
77c9f6c868
Land #506 , fix python meterpreter core_channel_read
2021-10-28 13:45:11 +01:00
Spencer McIntyre
46ce044ab3
Don't delete channels when handling dead resources
...
Deleting the channels when they are dead prevents Metasploit from
reading their streams before closing them.
2021-10-27 15:10:33 -04:00
Spencer McIntyre
ac75b00e41
Use string IPs for LOCAL_HOST and PEER_HOST TLVs
2021-10-01 17:07:14 -04:00
Spencer McIntyre
c211dd1b3a
Support seek and tell for file channels
2021-09-27 17:55:53 -04:00
Tim W
5b0433f08f
cleanup python fs_search
2021-09-20 16:03:33 +01:00
test
e43f437a2c
Clarified variable names
2021-09-20 15:38:13 +01:00
test
8d5a1c5c8a
Java/Android and bug fix for Python/PHP
2021-09-20 15:38:13 +01:00
test
af46841e62
Updated PHP and Python payloads
2021-09-20 15:38:13 +01:00
adfoster-r7
dc14eada5d
Land #499 , Add support for updating terminal size dynamically
2021-09-14 12:37:11 +01:00
dwelch-r7
798e15d346
Adhere to SYS_PROCESS
naming convention
2021-09-01 13:00:08 +01:00
dwelch-r7
308ef8abff
Use terminal rows/column TLVs
2021-08-31 18:53:48 +01:00
Spencer McIntyre
2067d7267e
Cleanup the process object
...
When a child process exits, the corresponding object should be closed
and cleanup all of it's streams and threads as necessary.
2021-08-26 18:44:49 -04:00
dwelch-r7
9a06fb9ff8
Handle missing command ids
2021-08-24 13:47:03 +01:00
dwelch-r7
63eefdaa3f
Return an error if channel id is not valid
2021-08-23 13:39:17 +01:00
dwelch-r7
28794127c9
Add support for updating terminal size dynamically
2021-08-18 15:14:42 +01:00
dwelch-r7
4d0640f7fc
Respect the PROCESS_EXECUTE_FLAG_SUBSHELL flag
2021-07-30 16:44:02 +01:00
dwelch-r7
7ad6667189
Replace start_new_session with preexec_fn to maintain python compatability
2021-07-28 14:40:24 +01:00
dwelch-r7
ee44802a8a
Fix sudo prompt
2021-07-28 13:30:10 +01:00
Spencer McIntyre
a4dc937eff
Fix the HTTP transport comm timeout
2021-04-30 15:46:12 -04:00
Spencer McIntyre
57c6f10314
Use the first entry returned by getaddrinfo
...
Fixes #479
2021-03-29 17:31:28 -04:00
Tim W
adb7ee62af
fix route parsing on macOS 10.13 and lower
2021-03-19 20:04:32 +00:00
Spencer McIntyre
a612d32da4
Add get_routes support for OS X via netstat
2021-03-17 17:09:54 -04:00
Spencer McIntyre
d3a0840792
Add a get_routes implementation for Windows XP
2021-03-17 11:56:43 -04:00
Spencer McIntyre
5ca9d02004
Refactor some Windows ctypes code, Always use GetAdaptersAddresses
...
GetAdaptersAddresses was added in Windows XP / Server 2003 which since
Metasploit v6 is the oldest version of Windows that Meterpreter
supports. There is now no need to fail back to the older GetIfEntry
function.
2021-03-17 11:24:40 -04:00
Spencer McIntyre
85ba357364
Fix a Python 2.x compatibility bug in netlink_request
2021-03-17 10:37:21 -04:00
Spencer McIntyre
b911574baf
Update log messages to use a consistent case
2021-03-17 10:26:42 -04:00
Spencer McIntyre
a155cb8cea
Fix a ctype error and catch exceptions when deleting things
2021-03-17 10:26:42 -04:00
Spencer McIntyre
bdc9c648d6
Add the interface names to the routes for Windows
2021-03-17 10:26:42 -04:00
Spencer McIntyre
604b546db8
Initial windows route support via GetIpForwardTable2
2021-03-17 10:26:42 -04:00
Spencer McIntyre
966db5f616
Consolidate libc definitions for OSX and Linux
2021-03-17 10:26:42 -04:00
Spencer McIntyre
f0b37fad91
Add get_routes via netlink for Python
2021-03-17 10:26:42 -04:00
Spencer McIntyre
826b13e184
Skip command IDs that can't be resolved
...
The channel_open functions are registered in the same ways as functions,
yet are not typical commands so they need to be skipped.
2021-02-11 19:29:16 -05:00
Spencer McIntyre
f3b6d5ae51
Use the proper bytes type when building search response TLVs
2020-10-27 09:27:47 -04:00
William Vu
8e3933bed7
Revert "Undo commit for #441 "
...
This reverts commit 8361d5367a
, reversing
changes made to db3d5f0896
.
2020-10-11 20:49:06 -05:00
William Vu
8c5ab95cd2
Revert "Land #441 - Fix missing TLV migration from string to int"
...
This reverts commit eb1d51b94e
, reversing
changes made to b6ce0dff18
.
2020-10-11 20:08:15 -05:00
Spencer McIntyre
dc2d8026d0
Remove the timeout parameter when running < Python 2.6
...
The timeout parameter was added to urlopen in Python 2.6, in order for
the reverse_http(s) stagers to work at all on 2.5, this parameter needs
to be omitted.
2020-08-10 14:47:47 -04:00
Spencer McIntyre
52ef30b0fd
Add authentication support to the Python Meterpreter
2020-08-09 19:32:19 -04:00
Spencer McIntyre
3a3003724d
Extract the extension name for logging purposes
2020-06-18 15:06:38 -04:00
Spencer McIntyre
7d672ce7bf
Use DER instead of PEM encoding for RSA keys in Python
2020-06-18 14:34:30 -04:00
Spencer McIntyre
538381ba08
Land #399 , Add TLV encryption support to the Python Meterpreter
2020-06-11 11:38:25 -04:00
Spencer McIntyre
dee9e10d7e
Fix a NameError in _core_enumextcmd
2020-06-09 17:21:56 -04:00
OJ
b37ebe0666
Merge remote-tracking branch 'zs/wip/pr/399' into python-tlv-enc
2020-06-07 09:07:43 +10:00
Spencer McIntyre
2165857599
Make some change for Python version compatibility
2020-06-05 12:05:42 -04:00
OJ
2c8ca18d2d
Updated with some more comments
2020-06-05 08:41:24 +10:00
OJ
42a785b33f
Add RSA encryption support
2020-05-11 19:09:23 +10:00
OJ
bfd6e9af0d
Enable encryption of TLV packges with AES
...
Still need to support RSA encryption of the generated key
2020-05-07 19:37:22 +10:00
OJ
fc0079e98a
Update enumeration commands to support the id range
2020-05-01 15:55:43 +10:00
OJ
d3f3a513de
Update command id maps for php, java and python
2020-05-01 15:42:45 +10:00