PageRenderTime 1228ms queryTime 45ms sortTime 3ms getByIdsTime 1011ms findMatchingLines 105ms

100+ results results for 'shell_exec' (1228 ms)

Not the results you expected?
php.js https://gitlab.com/alidz1982/cdnjs | JavaScript | 129 lines
                    
23    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"),
                    
24    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
25    multiLineStrings: true,
                    
                
Command.php https://github.com/expolit/FTemplate.git | PHP | 352 lines
                    
135            . ' ' . escapeshellarg($path);
                    
136        $result = shell_exec($cmd);
                    
137        $m = $p = null;
                    
                
Sendmail.php https://gitlab.com/staging06/myproject | PHP | 352 lines
                    
132    }
                    
133    $path = @trim(shell_exec('which sendmail'));
                    
134    if (!is_executable($path))
                    
                
_settings.php https://github.com/WeMake-IT/Hosting-Service.git | PHP | 323 lines
                    
97	"escapeshellarg","exec","fopen","fwrite","escapeshellcmd","passthru","proc_close","proc_get_status","proc_nice",
                    
98	"proc_open","proc_terminate","shell_exec","system","telnet","ssh","cmd","mv","chmod","chdir","locate","killall",
                    
99	"passwd","kill","script","bash","perl","mysql","~root",".history","~nobody","getenv"
                    
                
index.php https://github.com/Mrrock/LOLShell.git | PHP | 279 lines
                    
143          $output = join("\n", $output);
                    
144      } elseif (function_exists('shell_exec')) {
                    
145          $output = shell_exec($command);
                    
                
php.js https://github.com/robertleeplummerjr/bluebox.git | JavaScript | 157 lines
                    
34			'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv',
                    
35			'parse_str', 'str_pad', 'chop', 'strchr', 'sprintf', 'printf', 'vprintf', 'vsprintf', 'sscanf', 'fscanf', 'parse_url', 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'readlink', 'linkinfo', 'link', 'unlink', 'exec', 'system', 'escapeshellcmd', 'escapeshellarg', 'passthru', 'shell_exec', 'proc_open', 'proc_close', 'rand', 'srand', 'getrandmax', 'mt_rand', 'mt_srand', 'mt_getrandmax', 'base64_decode', 'base64_encode', 'abs', 'ceil', 'floor', 'round', 'is_finite', 'is_nan', 'is_infinite', 'bindec', 'hexdec', 'octdec', 'decbin', 'decoct', 'dechex', 'base_convert', 'number_format', 'fmod', 'ip2long', 'long2ip', 'getenv', 'putenv', 'getopt', 'microtime', 'gettimeofday', 'getrusage', 'uniqid', 'quoted_printable_decode', 'set_time_limit', 'get_cfg_var', 'magic_quotes_runtime', 'set_magic_quotes_runtime', 'get_magic_quotes_gpc', 'get_magic_quotes_runtime',
                    
36			'import_request_variables', 'error_log', 'serialize', 'unserialize', 'memory_get_usage', 'var_dump', 'var_export', 'debug_zval_dump', 'print_r','highlight_file', 'show_source', 'highlight_string', 'ini_get', 'ini_get_all', 'ini_set', 'ini_alter', 'ini_restore', 'get_include_path', 'set_include_path', 'restore_include_path', 'setcookie', 'header', 'headers_sent', 'connection_aborted', 'connection_status', 'ignore_user_abort', 'parse_ini_file', 'is_uploaded_file', 'move_uploaded_file', 'intval', 'floatval', 'doubleval', 'strval', 'gettype', 'settype', 'is_null', 'is_resource', 'is_bool', 'is_long', 'is_float', 'is_int', 'is_integer', 'is_double', 'is_real', 'is_numeric', 'is_string', 'is_array', 'is_object', 'is_scalar',
                    
                
util.lib.php https://github.com/linkeddata/ldphp.git | PHP | 273 lines
                    
97    $get_size = '/usr/bin/du -sk '.$dir."|awk '{ print $1; }'";
                    
98    $used = trim(shell_exec($get_size));
                    
99    $total = DISK_QUOTA * 1000000; // mega to bytes
                    
                
Console.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 534 lines
                    
241                // Try to determine the width through stty
                    
242                if (preg_match('#\d+ (\d+)#', @shell_exec('stty size'), $match) === 1) {
                    
243                    $this->_width = (int) $match[1];
                    
243                    $this->_width = (int) $match[1];
                    
244                } else if (preg_match('#columns = (\d+);#', @shell_exec('stty'), $match) === 1) {
                    
245                    $this->_width = (int) $match[1];
                    
                
Windows.php https://bitbucket.org/zbahij/eprojets_app.git | PHP | 356 lines
                    
201    {
                    
202        shell_exec('mode con cp select=65001');
                    
203    }
                    
                
tidy.php https://github.com/luthercollege/reason_package.git | PHP | 297 lines
                    
67		$cmd = 'echo '.$arg.' | '.TIDY_EXE.' -q -config '.$tidy_conf.' 2> /dev/null'; // the actual command - pipes the input to tidy which diverts its output to the random file
                    
68		$result = shell_exec($cmd); // execute the command		
                    
69	}
                    
85	$arg = escapeshellarg( $text );
                    
86	$err = shell_exec( 'echo '.$arg.' | '.TIDY_EXE.' -q -config '.$tidy_conf.' 2>&1' );
                    
87	$err = explode( "\n", $err );
                    
                
Console.php https://github.com/Nerutiz/trades.git | PHP | 534 lines
                    
241				// Try to determine the width through stty
                    
242				if (preg_match('#\d+ (\d+)#', @shell_exec('stty size'), $match) === 1) {
                    
243					$this->_width = (int) $match[1];
                    
243					$this->_width = (int) $match[1];
                    
244				} else if (preg_match('#columns = (\d+);#', @shell_exec('stty'), $match) === 1) {
                    
245					$this->_width = (int) $match[1];
                    
                
de_identification_screen2.php https://github.com/md-tech/openemr.git | PHP | 297 lines
                    
105			$cmd="cp ".$GLOBALS['webserver_root']."/sql/metadata_de_identification.txt ".$GLOBALS['temporary_files_dir']."/metadata_de_identification.txt";
                    
106			$output3=shell_exec($cmd);
                    
107			$query = "LOAD DATA INFILE '".$GLOBALS['temporary_files_dir']."/metadata_de_identification.txt' INTO TABLE metadata_de_identification FIELDS TERMINATED BY ','  LINES TERMINATED BY '\n'";
                    
                
spellchecker.php https://github.com/bobpuffer/LAE.git | PHP | 248 lines
                    
149        $cmd = "$aspell_prog $aspell_opts < $tempfile 2>&1";
                    
150        if( $aspellret = shell_exec( $cmd )) {
                    
151            $linesout = explode( "\n", $aspellret );
                    
                
Lib.FileMime.php https://github.com/CircleCode/dynacase-core.git | PHP | 331 lines
                    
141    
                    
142    $sys = trim(shell_exec(sprintf("file --mime -b %s", escapeshellarg($f))));
                    
143    $txt = getTextMimeFile($f);
                    
204    
                    
205    $txt = trim(shell_exec(sprintf("file -b %s", escapeshellarg($f))));
                    
206    if ($txt == 'data') {
                    
326    if (file_exists($file)) {
                    
327        $nbpages = intval(trim(shell_exec(sprintf('grep -c "/Type[[:space:]]*/Page\>" %s', escapeshellarg($file)))));
                    
328    }
                    
                
install.php https://github.com/copyninja/friendika.git | PHP | 249 lines
                    
150	$o = '';
                    
151	$phpath = trim(shell_exec('which php'));
                    
152	if(! strlen($phpath)) {
                    
158		$cmd = "$phpath testargs.php $str";
                    
159		$result = trim(shell_exec($cmd));
                    
160		if($result != $str) {
                    
                
QuestionHelper.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 447 lines
                    
215
                    
216        $sttyMode = shell_exec('stty -g');
                    
217
                    
218        // Disable icanon (so we can fread each keypress) and echo (we'll do echoing here instead)
                    
219        shell_exec('stty -icanon -echo');
                    
220
                    
310        // Reset stty so it behaves normally again
                    
311        shell_exec(sprintf('stty %s', $sttyMode));
                    
312
                    
336
                    
337            $value = rtrim(shell_exec($exe));
                    
338            $output->writeln('');
                    
347        if ($this->hasSttyAvailable()) {
                    
348            $sttyMode = shell_exec('stty -g');
                    
349
                    
                
f_resp1_bk.php https://bitbucket.org/sadhana_rani_sankar/aces.git | PHP | 260 lines
                    
32	
                    
33	shell_exec("cp questionsetter/$ip_name $std_ip_name") ;
                    
34
                    
65
                    
66		shell_exec("gcc $path 2>$user_err") ;
                    
67		shell_exec("./a.out >$user_op") ;
                    
67		shell_exec("./a.out >$user_op") ;
                    
68		shell_exec("./a.out 2>$user_runerr");
                    
69
                    
75	{
                    
76		shell_exec("g++ $path 2>$user_err");
                    
77		shell_exec("./a.out >$user_op");
                    
77		shell_exec("./a.out >$user_op");
                    
78		shell_exec("./a.out 2>$user_runerr");
                    
79	}
                    
                
shell.h https://bitbucket.org/toponado/nfs-proxy.git | C Header | 338 lines
                    
117/**
                    
118 *  shell_Execute:
                    
119 *  Execute a command.
                    
126 */
                    
127int shell_Execute(int argc, char **argv, FILE * output);
                    
128
                    
                
LatexDoc.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 156 lines
                    
106			chdir( $this->workingDir );
                    
107			$errorText = shell_exec( $cmd );
                    
108			chdir( $IP );
                    
                
base.rb https://gitlab.com/thomasphillips3/vagrant | Ruby | 248 lines
                    
27
                    
28        def ansible_playbook_command_for_shell_execution
                    
29          shell_command = []
                    
                
centreonBroker.class.php https://gitlab.com/florianocomercial/centreon | PHP | 134 lines
                    
78        if (file_exists("/etc/systemd/system/") && file_exists("/etc/systemd/system/$scriptD.service")) {
                    
79            shell_exec("sudo systemctl $action $scriptD");    
                    
80        } else {
                    
82            if (count($output) == 0) {
                    
83                shell_exec("sudo $script restart");
                    
84            } else {
                    
84            } else {
                    
85                shell_exec("sudo $script $action");
                    
86            }
                    
                
utils.php https://gitlab.com/Blueprint-Marketing/hhvm | PHP | 452 lines
                    
139function command_exists(string $cmd): bool {
                    
140    $ret = shell_exec("which $cmd");
                    
141    return !empty($ret);
                    
                
testcases.py https://gitlab.com/0072016/0072016-ApplePayDevice- | Python | 418 lines
                    
286                 js_filename,
                    
287                 shell_executable=None,
                    
288                 shell_options=None,
                    
294        # Command line options override the YAML configuration.
                    
295        self.shell_executable = utils.default_if_none(config.MONGO_EXECUTABLE, shell_executable)
                    
296
                    
362        return core.programs.mongo_shell_program(self.logger,
                    
363                                                 executable=self.shell_executable,
                    
364                                                 filename=self.js_filename,
                    
                
shell.php https://github.com/joshuaswarren/weatherhub.git | PHP | 162 lines
                    
4 *
                    
5 * This class uses the Unix `diff` program via shell_exec to compute the
                    
6 * differences between the two input arrays.
                    
51        fclose($fp);
                    
52        $diff = shell_exec($this->_diffCommand . ' ' . $from_file . ' ' . $to_file);
                    
53        unlink($from_file);
                    
                
timthumb.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 392 lines
                    
232		if ( preg_match( "/freebsd|linux/", $os ) ) {
                    
233			$mime_type = trim( @shell_exec( 'file -bi $file' ) );
                    
234		}
                    
                
function.system.html https://bitbucket.org/stillzhl/manuals.git | HTML | 143 lines
                    
8 <body><div class="manualnavbar" style="text-align: center;">
                    
9 <div class="prev" style="text-align: left; float: left;"><a href="function.shell-exec.html">shell_exec</a></div>
                    
10 <div class="next" style="text-align: right; float: right;"><a href="book.pthreads.html">pthreads</a></div>
                    
138</div><hr /><div class="manualnavbar" style="text-align: center;">
                    
139 <div class="prev" style="text-align: left; float: left;"><a href="function.shell-exec.html">shell_exec</a></div>
                    
140 <div class="next" style="text-align: right; float: right;"><a href="book.pthreads.html">pthreads</a></div>
                    
                
ProcessStartInfo.cs https://github.com/iainlane/mono.git | C# | 357 lines
                    
60		private bool redirect_standard_output = false;
                    
61		private bool use_shell_execute = true;
                    
62		private ProcessWindowStyle window_style = ProcessWindowStyle.Normal;
                    
239			get {
                    
240				return(use_shell_execute);
                    
241			}
                    
242			set {
                    
243				use_shell_execute = value;
                    
244			}
                    
                
powershell_script.rb https://github.com/cread/chef.git | Ruby | 95 lines
                    
80        # prior to PowerShell 3.0, so the fallback is 'Unrestricted'
                    
81        execution_policy = Chef::Platform.supports_powershell_execution_bypass?(run_context.node) ? "Bypass" : "Unrestricted"
                    
82
                    
                
Git.php https://github.com/sgtcarneiro/horde.git | PHP | 323 lines
                    
76
                    
77        $v = trim(shell_exec($this->getPath('git') . ' --version'));
                    
78        $this->version = preg_replace('/[^\d\.]/', '', $v);
                    
                
timthumb.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 331 lines
                    
194		if( preg_match( "/freebsd|linux/", $os ) ) {
                    
195                	$mime_type = trim ( @shell_exec( 'file -bi $file' ) );
                    
196		}
                    
                
RootInstaller.java https://gitlab.com/taghiahmadi02/fdroidclient | Java | 223 lines
                    
64                    // Shell.OnCommandResultListener.SHELL_WRONG_UID
                    
65                    // Shell.OnCommandResultListener.SHELL_EXEC_FAILED
                    
66
                    
88                    // Shell.OnCommandResultListener.SHELL_WRONG_UID
                    
89                    // Shell.OnCommandResultListener.SHELL_EXEC_FAILED
                    
90
                    
112                    // Shell.OnCommandResultListener.SHELL_WRONG_UID
                    
113                    // Shell.OnCommandResultListener.SHELL_EXEC_FAILED
                    
114
                    
                
console_type.rb https://github.com/maestrodev/veewee.git | Ruby | 182 lines
                    
37          command="python #{python_script} '#{self.name}' '#{keystring}'"
                    
38          shell_results=shell_exec("#{command}")
                    
39        end
                    
                
console.php https://gitlab.com/BeS/io.schiessle.org | PHP | 169 lines
                    
77{
                    
78    if(CONSOLE_INTERACTIVE && file_exists(trim(shell_exec('which bash')))) {
                    
79        $encPrompt = escapeshellarg($prompt);
                    
                
create_db.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 154 lines
                    
59  print "Enter the root mysql password:\n";
                    
60  $dba_pass = rtrim(shell_exec('
                    
61  bash -c \'
                    
                
SevenZipArchive.php https://github.com/PHPGangsta/SevenZipArchive.git | PHP | 169 lines
                    
59    {
                    
60        if (!function_exists('shell_exec')) {
                    
61            return false;
                    
62        }
                    
63        $ret = shell_exec($this->_executablePath);
                    
64        if (strpos($ret, "7-Zip") === false) {
                    
114
                    
115        $ret = shell_exec($command);
                    
116
                    
133
                    
134        $ret = shell_exec($command);
                    
135
                    
150
                    
151        $ret = shell_exec($command);
                    
152
                    
                
update.act.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 214 lines
                    
80
                    
81	$raw = shell_exec("find " . $kapenta->installPath);
                    
82	$lines = explode("\n", $raw);
                    
                
class.StreamMasterCollect.php https://github.com/devsatish/ThinkUp.git | PHP | 315 lines
                    
156                            $logfile = $this->log_dir . '/' . $owner_email . '_' . $instance->id . '.log';
                    
157                            $pid = shell_exec('cd ' . $this->streaming_dir . '; ' . $this->php_path .
                    
158                                ' stream2.php ' . ' ' . $instance->id . ' ' .
                    
                
PropelSQLDiffTask.php https://github.com/1989gaurav/Propel.git | PHP | 184 lines
                    
177			$this->log(sprintf('Using "%s" as text editor', $editorCmd));
                    
178			shell_exec($editorCmd . ' ' . escapeshellarg($_f->getAbsolutePath()));
                    
179		} else {
                    
                
transcribe.php https://github.com/fusionpbx/fusionpbx.git | PHP | 266 lines
                    
81					//run the command
                    
82					//$http_response = shell_exec($command);
                    
83					//echo "http_response:\n".$http_response."\n";
                    
153					//run the command
                    
154					$http_response = shell_exec($command);
                    
155
                    
198					$command = "curl -X POST \"https://".$api_url.".api.cognitive.microsoft.com/sts/v1.0/issueToken\" -H \"Content-type: application/x-www-form-urlencoded\" -H \"Content-Length: 0\" -H \"Ocp-Apim-Subscription-Key: ".$api_key."\"";
                    
199					$access_token_result = shell_exec($command);
                    
200					if (strlen($access_token_result) == 0) {
                    
206						echo $command."\n";
                    
207						$http_response = shell_exec($command);
                    
208						$array = json_decode($http_response, true);
                    
246				echo $command."\n";
                    
247				$http_response = shell_exec($command);
                    
248				$array = json_decode($http_response, true);
                    
                
spellchecker.php https://bitbucket.org/mmorillo/sicogae.git | PHP | 201 lines
                    
101		$cmd = "$aspell_prog $aspell_opts < $tempfile 2>&1";
                    
102		if( $aspellret = shell_exec( $cmd )) {
                    
103			$linesout = explode( "\n", $aspellret );
                    
                
guest.rb https://gitlab.com/thomasphillips3/vagrant | Ruby | 149 lines
                    
81
                    
82          execute_ansible_command_on_guest "playbook", ansible_playbook_command_for_shell_execution
                    
83        end
                    
                
db_wp-includes_Text_Diff_Engine_shell.html https://github.com/benatkin/wp-docblox-docs.git | HTML | 255 lines
                    
88<p class="short-description">Class used internally by Diff to actually compute the diffs.</p>
                    
89<div class="long-description"><p>This class uses the Unix <code>diff</code> program via shell_exec to compute the
                    
90differences between the two input arrays.</p>
                    
116<small class="package"><b>Package: </b>Text\Diff</small><p class="short-description">Class used internally by Diff to actually compute the diffs.</p>
                    
117<div class="long-description"><p>This class uses the Unix <code>diff</code> program via shell_exec to compute the
                    
118differences between the two input arrays.</p>
                    
                
File_lib.php https://github.com/dmcb/dmcb-cms.git | PHP | 441 lines
                    
133		{
                    
134			shell_exec('bin/pdftotext '.$this->path.' '.$this->path.'.searchmetadata');
                    
135		}
                    
                
php.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 132 lines
                    
23    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),
                    
24    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
25    multiLineStrings: true,
                    
                
diag_packet_capture.php https://github.com/vongrippen/pfsense.git | PHP | 293 lines
                    
78		$action = gettext("Stop");
                    
79		$processes_running = trim(shell_exec("/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep {$fn} | /usr/bin/egrep -v '(pflog|grep)'"));
                    
80
                    
211			/* check to see if packet capture tcpdump is already running */
                    
212			$processcheck = (trim(shell_exec("/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep {$fn} | /usr/bin/egrep -v '(pflog|grep)'")));
                    
213
                    
                
spell-check-logic.php https://github.com/socialplanning/oc-js.git | PHP | 171 lines
                    
76        // next run aspell
                    
77        $return = shell_exec($aspellcommand . ' 2>&1');
                    
78        // echo $return;
                    
164
                    
165$dictionaries = str_replace(chr(10),",", shell_exec($aspelldictionaries));
                    
166if(ereg(",$",$dictionaries))
                    
                
shell-exec.c https://bitbucket.org/sieben/contiki.git | C | 138 lines
                    
47/*---------------------------------------------------------------------------*/
                    
48PROCESS(shell_exec_process, "exec");
                    
49SHELL_COMMAND(exec_command,
                    
51	      "exec <filename>: load and execute the ELF file filename",
                    
52	      &shell_exec_process);
                    
53/*---------------------------------------------------------------------------*/
                    
53/*---------------------------------------------------------------------------*/
                    
54PROCESS_THREAD(shell_exec_process, ev, data)
                    
55{
                    
132void
                    
133shell_exec_init(void)
                    
134{
                    
                
AdminShell.php https://gitlab.com/vortexadventures/void | PHP | 181 lines
                    
158	 * Requires a bash shell or Windows and won't work with
                    
159	 * safe_mode settings (Uses `shell_exec`)
                    
160	 */
                    
169			$command = "cscript //nologo " . escapeshellarg($vbscript);
                    
170			$password = rtrim(shell_exec($command));
                    
171			unlink($vbscript);
                    
175			$command = "/usr/bin/env bash -c 'read -s -p \"\" mypassword && echo \$mypassword'";
                    
176			$password = rtrim(shell_exec($command));
                    
177			return $password;
                    
                
rebuildParser.php https://gitlab.com/matijabelec/bigpandadev | PHP | 212 lines
                    
39echo 'Building parser. Output: "',
                    
40     trim(shell_exec('kmyacc -l -m kmyacc.php.parser -p PHPParser_Parser ' . TMP_FILE . ' 2>&1')),
                    
41     '"', "\n";
                    
46    echo 'Building debug parser. Output: "',
                    
47    trim(shell_exec('kmyacc -t -v -l -m kmyacc.php.parser -p PHPParser_Parser ' . TMP_FILE . ' 2>&1')),
                    
48    '"', "\n";
                    
                
ContentController.php https://gitlab.com/jafari/resana | PHP | 171 lines
                    
166    {
                    
167        shell_exec('ps ax | grep yii> /dev/null & echo $!');
                    
168        shell_exec("killall -w -v -u $user php");
                    
168        shell_exec("killall -w -v -u $user php");
                    
169        shell_exec('nohup php yii content/worker &>./console/runtime/logs/amqp.log &');
                    
170    }
                    
                
phpini.tpl https://bitbucket.org/droidzone/i-mscp.git | Smarty Template | 120 lines
                    
76								<label for="system">system</label>
                    
77								<input name="shell_exec" id="shell_exec" type="checkbox"{SHELL_EXEC} value="shell_exec" />
                    
78								<label for="shell_exec">shell_exec</label>
                    
                
nginx.php https://gitlab.com/aegir/provision | PHP | 281 lines
                    
62    // Check if some nginx features are supported and save them for later.
                    
63    $this->server->shell_exec($path . ' -V');
                    
64    $this->server->nginx_is_modern = preg_match("/nginx\/1\.((1\.(8|9|(1[0-9]+)))|((2|3|4|5|6|7|8|9|[1-9][0-9]+)\.))/", implode('', drush_shell_exec_output()), $match);
                    
64    $this->server->nginx_is_modern = preg_match("/nginx\/1\.((1\.(8|9|(1[0-9]+)))|((2|3|4|5|6|7|8|9|[1-9][0-9]+)\.))/", implode('', drush_shell_exec_output()), $match);
                    
65    $this->server->nginx_has_etag = preg_match("/nginx\/1\.([12][0-9]|[3]\.([12][0-9]|[3-9]))/", implode('', drush_shell_exec_output()), $match);
                    
66    $this->server->nginx_has_http2 = preg_match("/http_v2_module/", implode('', drush_shell_exec_output()), $match);
                    
66    $this->server->nginx_has_http2 = preg_match("/http_v2_module/", implode('', drush_shell_exec_output()), $match);
                    
67    $this->server->nginx_has_upload_progress = preg_match("/upload/", implode('', drush_shell_exec_output()), $match);
                    
68    $this->server->nginx_has_gzip = preg_match("/http_gzip_static_module/", implode('', drush_shell_exec_output()), $match);
                    
118    // Check if some nginx features are supported and save them for later.
                    
119    $this->server->shell_exec($path . ' -V');
                    
120    $this->server->nginx_is_modern = preg_match("/nginx\/1\.((1\.(8|9|(1[0-9]+)))|((2|3|4|5|6|7|8|9|[1-9][0-9]+)\.))/", implode('', drush_shell_exec_output()), $match);
                    
120    $this->server->nginx_is_modern = preg_match("/nginx\/1\.((1\.(8|9|(1[0-9]+)))|((2|3|4|5|6|7|8|9|[1-9][0-9]+)\.))/", implode('', drush_shell_exec_output()), $match);
                    
121    $this->server->nginx_has_etag = preg_match("/nginx\/1\.([12][0-9]|[3]\.([12][0-9]|[3-9]))/", implode('', drush_shell_exec_output()), $match);
                    
122    $this->server->nginx_has_http2 = preg_match("/http_v2_module/", implode('', drush_shell_exec_output()), $match);
                    
                
CompassProcessor.php https://bitbucket.org/ndj/piecrust.git | PHP | 265 lines
                    
141            chdir($dir);
                    
142            shell_exec($cmd);
                    
143            chdir($cwd);
                    
                
impala-config.sh https://gitlab.com/s9perween/Impala | Shell | 182 lines
                    
27    this=${0/-/} # login-shells often have leading '-' chars
                    
28    shell_exec=`basename $SHELL`
                    
29    if [ "$this" = "$shell_exec" ]; then
                    
                
phpmailerTest.php https://gitlab.com/x33n/respond | PHP | 1374 lines
                    
131            $p = escapeshellarg($pid);
                    
132            shell_exec("ps $p && kill -TERM $p");
                    
133        }
                    
                
test_parser_expr.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 629 lines
                    
363  V("<?php <<<EOM\n$a$b\nEOM;\n", "$a . $b . '';\n");
                    
364  V("<?php `$a$b`;",              "shell_exec($a . $b);\n");
                    
365  V("<?php \"[\\b$/\";",      
                    
                
simple_function_call.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1394 lines
                    
77
                    
78    FunctionTypeMap["shell_exec"]           = FunType::ShellExec;
                    
79    FunctionTypeMap["exec"]                 = FunType::ShellExec;
                    
                
DialogHelper.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 500 lines
                    
141
                    
142            $sttyMode = shell_exec('stty -g');
                    
143
                    
144            // Disable icanon (so we can fread each keypress) and echo (we'll do echoing here instead)
                    
145            shell_exec('stty -icanon -echo');
                    
146
                    
236            // Reset stty so it behaves normally again
                    
237            shell_exec(sprintf('stty %s', $sttyMode));
                    
238        }
                    
295            $output->write($question);
                    
296            $value = rtrim(shell_exec($exe));
                    
297            $output->writeln('');
                    
308
                    
309            $sttyMode = shell_exec('stty -g');
                    
310
                    
                
SourceSVN.php https://github.com/cocox/source-integration.git | PHP | 461 lines
                    
197			$t_revision = $p_matches[1];
                    
198			$t_svnlog = explode( "\n", shell_exec( "$svn log -v $t_url -r$t_revision" ) );
                    
199
                    
227
                    
228			$t_svnlog = explode( "\n", shell_exec( "$svn log -v -r $t_rev:HEAD --limit 200 $t_url" ) );
                    
229
                    
252
                    
253		if ( is_blank( shell_exec( "$svn help" ) ) ) {
                    
254			trigger_error( ERROR_GENERIC, ERROR );
                    
                
index.php https://github.com/careerpathways/Career-Pathways-Web-Tool.git | PHP | 121 lines
                    
83{
                    
84        logmsg( "Calling shell_exec.\n" );
                    
85        
                    
91
                    
92        logmsg ("Shell_exec command: " . $command);
                    
93        $retval = shell_exec($command);
                    
93        $retval = shell_exec($command);
                    
94        //$retval = shell_exec('wkhtmltopdf-amd64 "' . $url . '" ' . $fullPath);
                    
95        logmsg( "Shell_exec retval: $retval\n" );
                    
                
rebuildParser.php https://gitlab.com/techniconline/kmc | PHP | 237 lines
                    
51echo "Building parser.\n";
                    
52$output = trim(shell_exec("$kmyacc $additionalArgs -l -m $skeletonFile $tmpGrammarFile 2>&1"));
                    
53echo "Output: \"$output\"\n";
                    
                
smoke.py https://github.com/homocury/mongo.git | Python | 521 lines
                    
59mongod_port = None
                    
60shell_executable = None
                    
61continue_on_failure = None
                    
262    if ext == ".js":
                    
263        argv = [shell_executable, "--port", mongod_port]
                    
264        if not usedb:
                    
                
TemplateScriptingCompiler.class.php https://github.com/KomHunter2/WCF.git | PHP | 1505 lines
                    
37	protected $disabledPHPFunctions = array(
                    
38		'system', 'exec', 'passthru', 'shell_exec', // command line execution
                    
39		'include', 'require', 'include_once', 'require_once', // includes
                    
                
test_parser_expr.cpp https://github.com/tstarling/hiphop-php.git | C++ | 629 lines
                    
363  V("<?php <<<EOM\n$a$b\nEOM;\n", "$a . $b . '';\n");
                    
364  V("<?php `$a$b`;",              "shell_exec($a . $b);\n");
                    
365  V("<?php \"[\\b$/\";",        
                    
                
SystemController.php https://github.com/jweiss/Magento-Example.git | PHP | 364 lines
                    
243        $paramStr = str_replace(';', '\;', $paramStr);
                    
244        $result = shell_exec(Mage::getBaseDir().'/'.$this->getModel()->getPayboxFile().' '.$paramStr);
                    
245
                    
254            $paramStr = str_replace(';', '\;', $paramStr);
                    
255            $result = shell_exec(Mage::getBaseDir().'/'.$this->getModel()->getPayboxFile().' '.$paramStr);
                    
256        }
                    
                
simple_function_call.cpp https://github.com/kevlund/hiphop-php.git | C++ | 1408 lines
                    
64
                    
65    FunctionTypeMap["shell_exec"]           = ShellExecFunction;
                    
66    FunctionTypeMap["exec"]                 = ShellExecFunction;
                    
                
metavid2mvWiki.inc.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 1424 lines
                    
90				print "removing image run#: $cmd \n";
                    
91				shell_exec($cmd);
                    
92			}
                    
                
run.lua https://github.com/logiceditor-com/codebase.git | Lua | 336 lines
                    
110local shell_read,
                    
111      shell_exec
                    
112      = import 'lua-aplicado/shell.lua'
                    
114        'shell_read',
                    
115        'shell_exec'
                    
116      }
                    
                
class-envato-backup.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 901 lines
                    
290    
                    
291      $this->warning( $this->archive_method, shell_exec( 'cd ' . escapeshellarg( $this->root() ) . ' && ' . escapeshellarg( $this->zip_command_path ) . ' -rq ' . escapeshellarg( $this->archive_filepath() ) . ' ./' . ' 2>&1' ) );
                    
292    
                    
430      
                    
431        $verify = shell_exec( escapeshellarg( $this->zip_command_path ) . ' -T ' . escapeshellarg( $this->archive_filepath() ) . ' 2> /dev/null' );
                    
432      
                    
                
class-envato-backup.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 901 lines
                    
290    
                    
291      $this->warning( $this->archive_method, shell_exec( 'cd ' . escapeshellarg( $this->root() ) . ' && ' . escapeshellarg( $this->zip_command_path ) . ' -rq ' . escapeshellarg( $this->archive_filepath() ) . ' ./' . ' 2>&1' ) );
                    
292    
                    
430      
                    
431        $verify = shell_exec( escapeshellarg( $this->zip_command_path ) . ' -T ' . escapeshellarg( $this->archive_filepath() ) . ' 2> /dev/null' );
                    
432      
                    
575    
                    
576      /* Check shell_exec is available and hasn't been explicitly bypassed */
                    
577      if ( ! $this->shell_exec_available() )
                    
                
syscall-4.md https://gitlab.com/pranith/linux-insides | Markdown | 430 lines
                    
42------> execute_disk_command
                    
43--------> shell_execve
                    
44```
                    
45
                    
46makes different checks like do we need to start `subshell`, was it builtin `bash` function or not etc. As I already wrote above, we will not consider all details about things that are not related to the Linux kernel. In the end of this process, the `shell_execve` function calls the `execve` system call:
                    
47
                    
                
CSS Reference.ipynb https://gitlab.com/yeah568/notebook | Jupyter | 816 lines
                    
211    "> \n",
                    
212    ">     return shell_exec(\"echo $input | $markdown_script\");"
                    
213   ]
                    
                
ext_std_process.cpp https://gitlab.com/iranjith4/hhvm | C++ | 764 lines
                    
124void StandardExtension::initProcess() {
                    
125  HHVM_FE(shell_exec);
                    
126  HHVM_FE(exec);
                    
190
                    
191Variant HHVM_FUNCTION(shell_exec,
                    
192                      const String& cmd) {
                    
                
EfiShell.h https://gitlab.com/envieidoc/Clover | C Header | 1138 lines
                    
196EFI_STATUS
                    
197(EFIAPI *EFI_SHELL_EXECUTE) (
                    
198  IN EFI_HANDLE                 *ParentImageHandle,
                    
                
shellproc_linux.c https://gitlab.com/envieidoc/advancedtomato2 | C | 714 lines
                    
114int
                    
115remote_shell_execute(char* buf_ptr, void *wl)
                    
116{
                    
                
export.rb https://github.com/halvards/veewee.git | Ruby | 184 lines
                    
115            clone_command = "#{@prlcmd} clone #{name} --name #{name}-veewee --template --location #{tmp_dir}"
                    
116            shell_exec clone_command
                    
117            env.logger.debug("Clone #{name} to #{name}-veewee, location #{tmp_dir}")
                    
120            unregister_command = "#{@prlcmd} unregister #{name}-veewee"
                    
121            shell_exec unregister_command
                    
122            env.logger.debug "Unregister #{name}-veewee after clone"
                    
132            env.logger.debug(command)
                    
133            shell_exec (command)
                    
134
                    
160          command = "#{@prlcmd} list --info --json \"#{self.name}\""
                    
161          r = shell_exec(command).stdout
                    
162          JSON.parse (r.gsub("/\s+/", "").gsub(/^(INFO)?\[/, '').gsub(/\]$/, ''))
                    
178          optimize_command = "#{@prldisktool} compact --hdd #{path_to_hdd}"
                    
179          shell_exec optimize_command
                    
180        end
                    
                
FinalconfigurationController.php https://gitlab.com/danielpanjaitan/agrimon | PHP | 467 lines
                    
79        //$this->actionGen($id);
                    
80        $output = shell_exec("sudo /var/www/html/agrimon/backend/web/executor.sh");
                    
81        //echo "<pre>".$output."</pre>";	
                    
                
hm-backup.php https://github.com/vidor/vidor.me.git | PHP | 1263 lines
                    
313			// Store any returned data in warning
                    
314			$this->warning( $this->mysqldump_method, shell_exec( $cmd ) );
                    
315
                    
413		if ( ! $this->database_only && $this->exclude_string( 'zip' ) )
                    
414		    $this->warning( $this->archive_method, shell_exec( 'cd ' . escapeshellarg( $this->root() ) . ' && ' . escapeshellarg( $this->zip_command_path ) . ' -rq ' . escapeshellarg( $this->archive_filepath() ) . ' ./' . ' -x ' . $this->exclude_string( 'zip' ) . ' 2>&1' ) );
                    
415
                    
417		elseif ( ! $this->database_only )
                    
418		    $this->warning( $this->archive_method, shell_exec( 'cd ' . escapeshellarg( $this->root() ) . ' && ' . escapeshellarg( $this->zip_command_path ) . ' -rq ' . escapeshellarg( $this->archive_filepath() ) . ' ./' . ' 2>&1' ) );
                    
419
                    
421		if ( ! $this->files_only )
                    
422		    $this->warning( $this->archive_method, shell_exec( 'cd ' . escapeshellarg( $this->path() ) . ' && ' . escapeshellarg( $this->zip_command_path ) . ' -uq ' . escapeshellarg( $this->archive_filepath() ) . ' ' . escapeshellarg( $this->database_dump_filename() ) . ' 2>&1' ) );
                    
423
                    
536
                    
537			$verify = shell_exec( escapeshellarg( $this->zip_command_path ) . ' -T ' . escapeshellarg( $this->archive_filepath() ) . ' 2> /dev/null' );
                    
538
                    
                
extfs.c https://github.com/Crismorrison/mc-basm.git | C | 1448 lines
                    
51#include "src/main.h"	/* print_vfs_message */
                    
52#include "src/execute.h"	/* For shell_execute */
                    
53
                    
                
ForbiddenFunctionSniff.php https://gitlab.com/inglobe/mgt-clemente-css | PHP | 196 lines
                    
101        '^setrawcookie$' => null,
                    
102        '^shell_exec$' => null,
                    
103        '^sleep$' => null,
                    
                
InterpreterListToolWindow.cs https://gitlab.com/SplatoonModdingHub/PTVS | C# | 462 lines
                    
97                EnvironmentView.OpenInPowerShell,
                    
98                OpenInPowerShell_Executed,
                    
99                OpenInPowerShell_CanExecute
                    
                
image.php https://gitlab.com/potion/librechan | PHP | 665 lines
                    
252		}
                    
253		$size = shell_exec_error(($this->gm ? 'gm ' : '') . 'identify -format "%w %h" ' . escapeshellarg($src . '[0]'));
                    
254		if (preg_match('/^(\d+) (\d+)$/', $size, $m))
                    
278			if ($config['strip_exif']) {
                    
279				if($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' .
                    
280						escapeshellarg($this->src) . ' -auto-orient -strip ' . escapeshellarg($src))) {
                    
284			} else {
                    
285				if($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' .
                    
286						escapeshellarg($this->src) . ' -auto-orient ' . escapeshellarg($src))) {
                    
319			if ($this->gifsicle) {
                    
320				if (($error = shell_exec("gifsicle -w --unoptimize -O2 --resize {$this->width}x{$this->height} < " .
                    
321						escapeshellarg($this->src . '') . " \"#0-{$config['thumb_keep_animation_frames']}\" -o " .
                    
333
                    
334				if (($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' .
                    
335					sprintf($convert_args,
                    
                
config.php https://gitlab.com/potion/librechan | PHP | 1185 lines
                    
60
                    
61	// Use `host` via shell_exec() to lookup hostnames, avoiding query timeouts. May not work on your system.
                    
62	// Requires safe_mode to be disabled.
                    
                
Console.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 519 lines
                    
224                ErrorHandler::start();
                    
225                if (preg_match('#\d+ (\d+)#', shell_exec('stty size'), $match) === 1) {
                    
226                    $this->width = (int) $match[1];
                    
226                    $this->width = (int) $match[1];
                    
227                } elseif (preg_match('#columns = (\d+);#', shell_exec('stty'), $match) === 1) {
                    
228                    $this->width = (int) $match[1];
                    
                
meterpreter.php https://bitbucket.org/cfield/metasploit-framework.git | PHP | 1167 lines
                    
180function my_cmd($cmd) {
                    
181    return shell_exec($cmd);
                    
182}
                    
                
common.php https://bitbucket.org/lordgnu/greyhole.git | PHP | 1537 lines
                    
94
                    
95		$contents = $ok_to_execute ? shell_exec(escapeshellcmd($file)) : file_get_contents($file);
                    
96		
                    
                
Cron.php https://bitbucket.org/acidel/buykoala.git | PHP | 241 lines
                    
42

                    
43        $data = shell_exec("php " . Mage::getBaseDir() . "/app/code/community/Fontis/Australia/Model/Getprice/Child.php " .

                    
44                Mage::getBaseDir() . " '" . serialize(Fontis_Australia_Model_GetPrice_Cron::$accumulator) .

                    
                
browser_impl.cc https://github.com/akesling/chromium.git | C++ | 512 lines
                    
18  // Initialize and fill up structure.
                    
19  SHELLEXECUTEINFO shell_execute_info;
                    
20  memset(&shell_execute_info, 0, sizeof(SHELLEXECUTEINFO));
                    
20  memset(&shell_execute_info, 0, sizeof(SHELLEXECUTEINFO));
                    
21  shell_execute_info.cbSize = sizeof(SHELLEXECUTEINFO);
                    
22  // To get Process handle.
                    
22  // To get Process handle.
                    
23  shell_execute_info.fMask = SEE_MASK_NOCLOSEPROCESS;
                    
24  shell_execute_info.nShow = SW_SHOW;
                    
24  shell_execute_info.nShow = SW_SHOW;
                    
25  shell_execute_info.lpFile =
                    
26      reinterpret_cast<TCHAR*>(malloc(sizeof(TCHAR) *
                    
27                                      SysStringLen(chrome_path)));
                    
28  _tcscpy_s((TCHAR*)(shell_execute_info.lpFile), SysStringLen(chrome_path),
                    
29            chrome_path);
                    
                
wsh.php https://github.com/CircleCode/dynacase-core.git | PHP | 217 lines
                    
60            echo "\t- ";
                    
61            echo str_replace("\n", "\n\t- ", shell_exec(sprintf("cd %s/API;ls -1 *.php| cut -f1 -d'.'", escapeshellarg(DEFAULT_PUBDIR))));
                    
62            echo "\n";
                    
                
features.safe-mode.functions.html https://bitbucket.org/thncr/manuals.git | HTML | 315 lines
                    
114      <tr>
                    
115       <td> <span class="function"><a href="function.shell-exec.html" class="function">shell_exec()</a></span>(在功能上和 backticks 函数相同)</td>
                    
116       <td>当 PHP 运行在 <a href="features.safe-mode.html" class="link">安全模式</a> 时,不能使用此函数。</td>
                    
                
global-functions.php https://gitlab.com/billyprice1/notrack | PHP | 388 lines
                    
81    //echo "<pre>\n";
                    
82    //$Msg = shell_exec('sudo ntrk-exec 2>&1');
                    
83    //echo $Msg;
                    
                
extfs.c https://gitlab.com/oyvholm/mc | C | 1757 lines
                    
58
                    
59#include "src/execute.h"        /* For shell_execute */
                    
60
                    
                
Console.php https://github.com/pborreli/zf2.git | PHP | 511 lines
                    
222                // Try to determine the width through stty
                    
223                if (preg_match('#\d+ (\d+)#', @shell_exec('stty size'), $match) === 1) {
                    
224                    $this->width = (int) $match[1];
                    
224                    $this->width = (int) $match[1];
                    
225                } elseif (preg_match('#columns = (\d+);#', @shell_exec('stty'), $match) === 1) {
                    
226                    $this->width = (int) $match[1];
                    
                
ShellMain.java https://github.com/apache/oozie.git | Java | 385 lines
                    
40    public static final String CONF_OOZIE_SHELL_ARGS = "oozie.shell.args";
                    
41    public static final String CONF_OOZIE_SHELL_EXEC = "oozie.shell.exec";
                    
42    public static final String CONF_OOZIE_SHELL_ENVS = "oozie.shell.envs";
                    
                
TestShellActionExecutor.java https://github.com/apache/oozie.git | Java | 400 lines
                    
43
                    
44    private static final String SHELL_EXEC = Shell.WINDOWS ? "cmd.exe" : "sh";
                    
45    private static final String SHELL_PARAM = Shell.WINDOWS ? "/c" : "-c";
                    
127        String actionXml = "<shell>" + "<job-tracker>" + getJobTrackerUri() + "</job-tracker>" + "<name-node>"
                    
128                + getNameNodeUri() + "</name-node>" + "<exec>" + SHELL_EXEC + "</exec>" + "<argument>" + SHELL_PARAM + "</argument>"
                    
129                + "<argument>" + SHELL_SCRIPTNAME + "</argument>" + "<argument>A</argument>" + "<argument>B</argument>"
                    
155                + "<property><name>oozie.action.shell.setup.hadoop.conf.dir</name><value>true</value></property>"
                    
156                + "</configuration>" + "<exec>" + SHELL_EXEC + "</exec>" + "<argument>" + SHELL_PARAM + "</argument>"
                    
157                + "<argument>" + SHELL_SCRIPTNAME + "</argument>" + "<file>" + script.toString()
                    
205                + "</name><value>false</value></property>"
                    
206                + "</configuration>" + "<exec>" + SHELL_EXEC + "</exec>" + "<argument>" + SHELL_PARAM + "</argument>"
                    
207                + "<argument>" + SHELL_SCRIPTNAME + "</argument>" + "<file>" + script.toString()
                    
231        String actionXml = "<shell>" + "<job-tracker>" + getJobTrackerUri() + "</job-tracker>" + "<name-node>"
                    
232                + getNameNodeUri() + "</name-node>" + "<exec>" + SHELL_EXEC + "</exec>" + "<argument>" + SHELL_PARAM + "</argument>"
                    
233                + "<argument>" + SHELL_SCRIPTNAME + "</argument>" + "<argument>A</argument>" + "<argument>B</argument>" + "<file>"
                    
                
plugin_data.php https://gitlab.com/billyprice1/QuickBox | PHP | 738 lines
                    
6        $message = "Hello <b>$username</b>: I have installed the <b>getdir plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
                    
7        shell_exec("sudo -u root /usr/bin/installplugin-getdir"); 
                    
8        $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
                    
16        $message = "Hello <b>$username</b>: I have removed the <b>getdir plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
                    
17        shell_exec("sudo -u root /usr/bin/removeplugin-getdir"); 
                    
18        $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
                    
26        $message = "Hello <b>$username</b>: I have installed the <b>task plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
                    
27        shell_exec("sudo -u root /usr/bin/installplugin-task"); 
                    
28        $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
                    
36        $message = "Hello <b>$username</b>: I have removed the <b>task plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
                    
37        shell_exec("sudo -u root /usr/bin/removeplugin-task"); 
                    
38        $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
                    
46        $message = "Hello <b>$username</b>: I have installed the <b>autodl-irssi plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
                    
47        shell_exec("sudo -u root /usr/bin/installplugin-autodl"); 
                    
48        $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
                    
                
index.php https://gitlab.com/billyprice1/QuickBox | PHP | 661 lines
                    
7error_reporting(E_ALL);
                    
8$master = shell_exec('sudo -u root cat /root/master.txt');
                    
9$username = getUser();
                    
100if ($_GET['reload']) { 
                    
101        shell_exec("sudo -u " . $username . " /usr/bin/reload"); 
                    
102        $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
                    
136$message = "Hey <b>$username</b>: Im going to enable <b>$servicename</b> ... Please allow 5 minutes for it to start ... </a><br>";
                    
137    shell_exec("sudo sed -i 's/$thisname/$name/g' /home/$username/.startup");
                    
138  $output = substr($thisname, 0, strpos(strtolower($thisname), '_'));
                    
155$message = "Hello <b>$username</b>: Im going to disable <b>$servicename</b> ... </a><br>";
                    
156    shell_exec("sudo sed -i 's/$name/$thisname/g' /home/$username/.startup");
                    
157    shell_exec("sudo -u $username pkill -9 $servicename");
                    
                
camaras.controller.php https://gitlab.com/talueses/SIPVE | PHP | 436 lines
                    
190        //echo $command.$parametros."<br>";
                    
191        $output = shell_exec($command.$parametros);
                    
192
                    
224        //echo $command.$parametros."<br>";
                    
225        $output = shell_exec($command.$parametros);
                    
226
                    
                
mappings.vim https://bitbucket.org/WscriChy/vim-configuration.git | Vim Script | 669 lines
                    
66        \ :<C-u>call <SID>move_head()<CR>
                    
67  nnoremap <buffer><silent> <Plug>(vimshell_execute_by_background)
                    
68        \ :<C-u>call <SID>execute_by_background(0)<CR>
                    
103        \ <ESC>:call <SID>clear(1)<CR>
                    
104  inoremap <buffer><silent> <Plug>(vimshell_execute_by_background)
                    
105        \ <ESC>:call <SID>execute_by_background(1)<CR>
                    
150  " Execute background.
                    
151  nmap <buffer> <C-z> <Plug>(vimshell_execute_by_background)
                    
152
                    
181        \ "\<Plug>(vimshell_push_current_line)",
                    
182        \ "\<Plug>(vimshell_execute_by_background)")
                    
183  " Insert last word.
                    
                
interactive.vim https://bitbucket.org/WscriChy/vim-configuration.git | Vim Script | 899 lines
                    
153          \ input('Please input interpreter command : ',
                    
154          \ '', 'customlist,vimshell#helpers#vimshell_execute_complete')
                    
155    execute 'VimShellInteractive' command
                    
                
 

Source

Language