Skip to content

Commit 0c608e2

Browse files
committed
Change doc for boolean args
1 parent ea8e62f commit 0c608e2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lib/msf/core/exploit/file_dropper.rb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ def cleanup
102102
# See if +path+ exists on the remote system and is a regular file
103103
#
104104
# @param path [String] Remote filename to check
105-
# @return [TrueClass] If the file exists
106-
# @return [FalseClass] If the file doesn't exist
105+
# @return [Boolean] True if the file exists, otherwise false.
107106
def file_dropper_file_exist?(session, path)
108107
if session.platform =~ /win/
109108
normalized = file_dropper_win_file(path)
@@ -134,8 +133,7 @@ def file_dropper_file_exist?(session, path)
134133
# Sends a file deletion command to the remote +session+
135134
#
136135
# @param [String] file The file to delete
137-
# @return [TrueClass] the delete command has been executed in the remote machine
138-
# @return [FalseClass] otherwise
136+
# @return [Boolean] True if the delete command has been executed in the remote machine, otherwise false.
139137
def file_dropper_delete(session, file)
140138
win_file = file_dropper_win_file(file)
141139

@@ -172,9 +170,7 @@ def file_dropper_delete(session, file)
172170
# Checks if a file has been deleted by the current job
173171
#
174172
# @param [String] file The file to check
175-
# @param [TrueClass] exists_before Indicates if the file existed before the deletion
176-
# @return [TrueClass] if the file has been deleted or it cannot resolve
177-
# @return [FalseClass] if the file hasn't been deleted
173+
# @return [Boolean] If the file has been deleted, otherwise false.
178174
def file_dropper_deleted?(session, file, exists_before)
179175
if exists_before && file_dropper_file_exist?(session, file)
180176
print_error("Unable to delete #{file}")

0 commit comments

Comments
 (0)