Skip to content

Commit b34e807

Browse files
committed
Remove unnecessary directory existing check
1 parent a40fbb2 commit b34e807

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

modules/exploits/linux/local/cve_2023_0386_overlayfs_priv_esc.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ def exploit
112112
# Upload exploit executable
113113
exploit_dir = "#{base_dir}/.#{rand_text_alphanumeric(5..10)}"
114114

115-
if file_exist?(exploit_dir)
116-
fail_with(Failure::BadConfig, 'Exploit dir already exists')
117-
end
118-
119115
mkdir(exploit_dir)
120116
register_dir_for_cleanup(exploit_dir)
121117

0 commit comments

Comments
 (0)