Skip to content

Commit c9560b5

Browse files
committed
Add error_reporting to preamble
1 parent ff20cf9 commit c9560b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/msf/core/payload/php.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def php_preamble(options = {})
2626
# Canonicalize the list of disabled functions to facilitate choosing a
2727
# system-like function later.
2828
preamble = "/*<?php /**/
29+
@error_reporting(0);
2930
@set_time_limit(0); @ignore_user_abort(1); @ini_set('max_execution_time',0);
3031
#{dis}=@ini_get('disable_functions');
3132
if(!empty(#{dis})){

0 commit comments

Comments
 (0)