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

312 Commits

Author SHA1 Message Date
Spencer McIntyre
41767690f0 Use None instead of 0 for missing values 2023-04-26 14:22:16 -04:00
Alex Romero
dbf1916a65
check for invalid parameter in read/write memory 2023-04-25 19:28:42 -04:00
Alex Romero
4f12dd814b
add memory read/write abilties to python windows meterpreter 2023-04-14 16:27:09 -04:00
Alex Romero
ac1fc54909
add memory lock/unlock abilties to python windows meterpreter 2023-04-07 14:50:50 -04:00
Alex Romero
1c7a053927
add memory alloc/free abilties to python windows meterpreter 2023-03-22 09:50:18 -04:00
Alex Romero
cfce3c6797
Merge branch 'rapid7:master' into py-tkn-leak-fix 2023-03-07 21:27:55 +03:30
Spencer McIntyre
327d0de60b
Land #616, add stdapi_sys_process_get_info
add stdapi_sys_process_get_info function to python windows meterpreter
2023-03-07 09:46:18 -05:00
Alex Romero
9da0559654
apply @smcintyre-r7 review suggestions 2023-03-06 11:07:20 -05:00
Alex Romero
c2b6d505e4
minor changes 2023-03-06 10:10:22 -05:00
Alex Romero
8167674f37
bug fix token handle leak in getprivs python api 2023-03-03 17:20:32 -05:00
Alex Romero
96f11eb8c0
Merge branch 'master' into python-route 2023-03-04 01:39:36 +03:30
Alex Romero
f4896864a8
route add/remove commands for python meterpreter in windows 2023-03-03 17:02:07 -05:00
Spencer McIntyre
e01dbdbb5d Add fix up tracking the process handle
This allows the process handle to be closed when the process was not
started by the Meterpreter instance.
2023-03-02 15:54:37 -05:00
Spencer McIntyre
5f79b77c3d Fix the handle for the current process 2023-03-02 15:31:47 -05:00
Spencer McIntyre
00cc60f9d7 Add the sys_process_attach command for Windows 2023-03-02 15:31:47 -05:00
Alex Romero
b8feab6ffa
add stdapi_sys_process_get_info function to python windows meterpreter 2023-03-02 07:21:12 -05:00
Spencer McIntyre
9f2491bac4
Land #610, Fix getprivs permissions set
Fix getprivs permissions that are grabbed on C Meterpreter and Python Meterpreter So That They Match
2023-02-28 14:32:47 -05:00
Grant Willcox
b05d4b3995
Redo the Python Meterpreter so it also gains SE_UNDOCK_NAME and SE_UNSOLICITED_INPUT_NAME privileges and to organize the list alphabetically 2023-02-28 10:32:12 -06:00
Alex Romero
541d8c1e17
Merge branch 'master' into python-arp-linux 2023-02-24 19:51:15 +03:30
Alex Romero
64b86014f4
minor changes in stdapi_net_config_get_arp_table function 2023-02-24 11:02:27 -05:00
Alex Romero
624a976086
Update python/meterpreter/meterpreter.py
Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>
2023-02-24 17:28:35 +03:30
Alex Romero
15223316a8
add arp command to linux python meterpreter 2023-02-23 17:38:37 -05:00
Alex Romero
285cf5183d
apply @smcintyre-r7 requested changes 2023-02-23 16:43:58 -05:00
Alex Romero
a16078f8f9
apply @smcintyre-r7 review suggestions 2023-02-17 15:26:10 -05:00
Alex Romero
39bd2b2581
Merge branch 'rapid7:master' into python-process 2023-02-17 20:57:01 +03:30
Spencer McIntyre
ea70c919f1
Land #606, minor fixes for Python 2.5
minor fixes to make python meterpreter comptaible with Python 2.5
2023-02-17 11:55:42 -05:00
Alex Romero
d93a38a604
remove single qoutes from bytes() in order to Python 3.10 compatibility 2023-02-17 10:47:13 -05:00
Alex Romero
e601e34a1b
store and return HANDLE of created process for future uses 2023-02-17 09:25:53 -05:00
Grant Willcox
78347dd379
Remove extra permissions that is deprecated 2023-02-16 15:36:44 -06:00
Grant Willcox
ca738c412c
Consolidate repeatedly defined constants, update priv list for SeDelegateSessionUserImpersonatePrivilege 2023-02-16 15:03:04 -06:00
Alex Romero
0223168822
add getprivs command to python windows meterpreter 2023-02-15 19:01:24 -05:00
Alex Romero
728c9cb397
minor fixes to make python meterpreter comptaible with Python 2.5 2023-02-15 16:33:45 -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