mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-12-08 23:33:07 +01:00
Pymet fix search_root always being set to '.'
This commit is contained in:
parent
f6671f4140
commit
387addf846
@ -1027,7 +1027,8 @@ def stdapi_fs_mkdir(request, response):
|
||||
@meterpreter.register_function
|
||||
def stdapi_fs_search(request, response):
|
||||
search_root = packet_get_tlv(request, TLV_TYPE_SEARCH_ROOT).get('value', '.')
|
||||
search_root = ('' or '.') # sometimes it's an empty string
|
||||
if not search_root: # sometimes it's an empty string
|
||||
search_root = '.'
|
||||
search_root = unicode(search_root)
|
||||
glob = packet_get_tlv(request, TLV_TYPE_SEARCH_GLOB)['value']
|
||||
recurse = packet_get_tlv(request, TLV_TYPE_SEARCH_RECURSE)['value']
|
||||
|
Loading…
Reference in New Issue
Block a user