1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-12-15 02:35:54 +01:00
Commit Graph

281 Commits

Author SHA1 Message Date
Alex Romero
0223168822
add getprivs command to python windows meterpreter 2023-02-15 19:01:24 -05:00
Spencer McIntyre
6880b0d8fa Remove an unnecessary blank line 2023-01-30 10:22:44 -05:00
Alex Romero
3fbabbca7d
fix minor changes from @smcintyre-r7 reviews 2023-01-29 13:33:54 -05:00
Alex Romero
90eacefad5
add getdesktop command to windows python meterpreter 2023-01-23 15:13:19 -05:00
Grant Willcox
9c70f169b2
Land #602, Support dual IPv4 / IPv6 TCP servers in Python 2023-01-13 14:01:41 -06:00
Spencer McIntyre
d07b86f937
Land #600, add enumdesktops to python meterpreter
add enumdesktops command to windows python meterpreter
2023-01-12 13:22:12 -05:00
Alex Romero
8c99076e9a
apply @smcintyre-r7 patch on station 0 bug for python enumdesktops 2023-01-12 13:03:42 -05:00
Alex Romero
414f2208fc
apply @smcintyre-r7 review changes 2023-01-11 20:17:33 -05:00
Spencer McIntyre
68584e520d Support dual IPv4 / IPv6 TCP servers in Python 2023-01-10 16:13:13 -05:00
Grant Willcox
acee11b308
Land #597, Fix Python EventLog commands 2022-12-13 13:03:33 -06:00
Alex Romero
56506cc902
add enumdesktops command to windows python meterpreter 2022-12-08 16:49:51 -05:00
Alex Romero
5b9356d6d2
add arp command to windows python meterpreter
Update python/meterpreter/ext_server_stdapi.py - apply review suggestion

return associated error code

Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>

Update python/meterpreter/ext_server_stdapi.py - apply review suggestion

propagate return value

Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>

Update python/meterpreter/ext_server_stdapi.py - apply review suggestion

commit changes:
- move error codes global to make them reusable
- call iphlpapi.dll directly from windll
- bug fix ipnet_table casting memory allocation

Update python/meterpreter/ext_server_stdapi.py

Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>

Update python/meterpreter/ext_server_stdapi.py

Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>

remove TABLE_IPNETTABLE function
2022-12-07 14:49:14 -05:00
Spencer McIntyre
2682913af2 Fix buffer handling in Python 2.x
When slicing a ctypes array, the result is a list. A list is not a
ctypes array which is causing ctarray_to_bytes to fail.
2022-11-14 09:34:23 -05:00
Spencer McIntyre
431b6bcdf3 Fix Python eventlog issues 2022-11-11 18:07:24 -05:00
Spencer McIntyre
f877a4f8cb Remove references to wintypes
References to wintypes were breaking the Python Meterpreter on platforms
where the wintypes module was not present (anything other than Windows).
2022-11-07 16:30:57 -05:00
Alex Romero
cdddfbcc7e Update python/meterpreter/ext_server_stdapi.py
Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>

Update python/meterpreter/ext_server_stdapi.py

Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>

Update python/meterpreter/ext_server_stdapi.py

Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>

Update python/meterpreter/ext_server_stdapi.py

Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>

Update python/meterpreter/ext_server_stdapi.py

Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>

Update python/meterpreter/ext_server_stdapi.py

remove mistaken 't' in reviews
2022-11-03 16:39:06 -04:00
Alex Romero
d238661726 add shutdown command for python (windows only) 2022-10-31 17:16:36 -04:00
Spencer McIntyre
de242ce067 Log opening keys and fix error propagation 2022-09-02 15:36:25 -04:00
Spencer McIntyre
56ee6899f3 Add registry_check_key_exists for Python 2022-09-02 15:18:27 -04:00
sjanusz
d289909fac
Fix order of closing channels 2022-05-04 17:51:10 +01:00
adfoster-r7
31554126b3
Land #557, Add debug logfile to Python Meterpreter 2022-04-12 10:53:45 +01:00
sjanusz
2217886374
Add debug logfile to Python Meterpreter 2022-04-06 10:26:57 +01:00
Gaurav Purswani
4d8cd58e76 add case insensivity 2022-03-24 20:31:41 +05:30
OSL-12
c364b1e5ee add AMD64 in get_system_arch 2022-03-22 23:27:51 +05:30
adfoster-r7
23ca7b0988
Fix race condition when reading subprocess results 2022-02-16 17:23:32 +00:00
Tim W
080af01e83
Land #516, fix python stat on inaccessible directory 2021-12-09 17:47:30 +00:00
Spencer McIntyre
fe8ff046e0
Land #511, fix stderr output in python channels 2021-12-08 12:03:18 -05:00
Spencer McIntyre
7bbcee3cf7 Return an empty stat buf when stat fails 2021-12-08 10:56:06 -05:00
Tim W
a59fd61520 Fix #512, fix python cmd_exec argument list during PROCESS_EXECUTE_FLAG_SUBSHELL 2021-12-08 08:12:47 +00:00
Tim W
93496f1c3a fix python channel stderr output 2021-12-08 06:44:26 +00:00
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