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
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
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
f3b6d5ae51
Use the proper bytes type when building search response TLVs
2020-10-27 09:27:47 -04:00
OJ
409e6cce6d
Update python meterpreter to use UINT command ids
...
This is based heavily off the work that zeroSteiner did last year.
2020-04-29 16:59:51 +10:00
Spencer McIntyre
c635d41b8c
Send addrinfo when opening a channel in Python
2020-02-19 23:29:40 -05:00
Tim W
08633f4cc4
fix python 3 stdapi_sys_process_close
2019-06-03 02:44:40 +08:00
bwatters
74ed8ee5b7
Typecast values to prevent incompatibilities in packing them
2019-02-11 10:48:59 -06:00
Brent Cook
7e2181700a
update stat struct sizes
2019-02-06 17:51:21 -06:00
Tim W
2386ce2ca9
fix python meterpreter ls of 4gb files
2019-01-02 19:20:50 +08:00
William Vu
2b26c69e20
Force Unicode on chmod path
2018-09-24 15:42:20 -05:00
Tim W
dce10d9c9e
python meterpreter chmod command
2018-09-12 19:27:46 +08:00
Spencer McIntyre
6a24c38e2b
Fix unbound UDP sockets by not requiring the peer
2018-04-22 19:45:43 -04:00
Spencer McIntyre
e4b2e7f812
Use the proto field from getaddrinfo
2018-04-08 14:27:46 -04:00
Spencer McIntyre
408d0ff212
Use getaddrinfo for udp channels too
2018-04-08 12:29:16 -04:00
Spencer McIntyre
c9905cd177
Fix IPv6 support by using getaddrinfo
2018-04-08 12:29:16 -04:00
Spencer McIntyre
99aac30459
Add UDP channel support to the python meterpreter
2018-03-18 19:22:08 -04:00
Spencer McIntyre
7a3da787b1
Fix bugs introduced by the channel refactoring
2018-03-18 18:13:54 -04:00
Spencer McIntyre
38db1218dd
Major refactoring for channel objects
2018-03-18 17:31:23 -04:00
Spencer McIntyre
8153648aab
Refactor socket class names with the family
2018-03-17 19:02:05 -04:00
Tim W
c373b2fafe
fix tabs to spaces
2018-03-09 00:45:42 +08:00
Tim W
9db18dc8a3
catch termios exceptions
2018-03-09 00:45:01 +08:00
bwatters
16b82ed9cc
Add the attrib to all file deletes
2018-01-18 12:08:01 -06:00
Brent Cook
d9ed8004d8
remove readonly attributes for python meterpreter
2018-01-16 10:35:09 -06:00
Brent Cook
39277d10bc
switch to pythonic whitespace
2018-01-09 15:44:54 -05:00
Spencer McIntyre
c320233e86
Try to use find_library for OSX railgun_api
2017-06-21 08:50:57 -04:00
Spencer McIntyre
d48b48df94
Implement pymet osx rg api and api_multi
2017-06-19 11:13:42 -04:00
Spencer McIntyre
e0c26186c1
Implement pymet osx rg memread and memwrite
2017-06-15 10:56:47 -04:00
Spencer McIntyre
9aac25b522
Fix some more pymet backwards compat issues
2017-04-25 17:05:15 -04:00
Spencer McIntyre
7e06057ca9
Add linux railgun support to the pymet
2017-04-20 13:52:59 -04:00
Spencer McIntyre
b9b7545be0
Improve pymet helper functions
2017-04-19 14:59:53 -04:00
Spencer McIntyre
71132cc00c
Refactor pymet wreg functions and reg decorator
2017-04-19 14:25:07 -04:00
Spencer McIntyre
974fcda43e
Add railgun memread and memwrite for Linux 3.2+
2017-04-19 13:31:14 -04:00
ouahib-el-hanchi
6401c6ae03
Fixed stdapi_fs_mount_show to show full mapped drive path for Windows in Python meterpreter
2017-04-15 02:49:59 +01:00
ouahib-el-hanchi
32faaf5549
Added stdapi_net_config_get_proxy for Windows in Python meterpreter
2017-04-14 07:52:25 +01:00
Ouahib El Hanchi
7db0847d87
Fixed whitespace, can't seem to get them right
2017-04-14 06:44:28 +01:00
ouahib-el-hanchi
dae985f66f
Fixed whitespace and replaced string buffers with unicode buffers for unicode functions
2017-04-14 06:40:45 +01:00
ouahib-el-hanchi
242d2bf936
Added stdapi_sys_eventlog_* functions for Windows
2017-03-25 22:25:13 +00:00