Skip to content

Commit 0ee2056

Browse files
zeroSteinerBrent Cook
authored andcommitted
Remove file exists check from stdapi_fs_delete_file
1 parent 42710cc commit 0ee2056

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

data/meterpreter/ext_server_stdapi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,8 +945,7 @@ def stdapi_fs_delete_dir(request, response):
945945
@meterpreter.register_function
946946
def stdapi_fs_delete_file(request, response):
947947
file_path = packet_get_tlv(request, TLV_TYPE_FILE_PATH)['value']
948-
if os.path.exists(file_path):
949-
os.unlink(file_path)
948+
os.unlink(file_path)
950949
return ERROR_SUCCESS, response
951950

952951
@meterpreter.register_function

0 commit comments

Comments
 (0)