Skip to content

Instantly share code, notes, and snippets.

@nikic
Created Oct 7, 2019
Embed
What would you like to do?
Usage of shell exec operation in packagist top 2k
/home/nikic/package-analysis/sources/globalcitizen/php-iban/utils/convert-registry.php:10
`iconv -f utf8 -t ascii --byte-subst="<0x%x>" --unicode-subst="<U+%04X>" 'IBAN_Registry.txt'`
/home/nikic/package-analysis/sources/johnpbloch/wordpress-core/wp-includes/ID3/getid3.lib.php:621
`$commandline`
/home/nikic/package-analysis/sources/johnpbloch/wordpress-core/wp-includes/ID3/getid3.lib.php:1416
`$commandline`
/home/nikic/package-analysis/sources/johnpbloch/wordpress-core/wp-includes/ID3/getid3.php:196
`$commandline`
/home/nikic/package-analysis/sources/johnpbloch/wordpress-core/wp-includes/ID3/getid3.php:1358
`$commandline`
/home/nikic/package-analysis/sources/johnpbloch/wordpress-core/wp-includes/ID3/getid3.php:1370
`$commandline`
/home/nikic/package-analysis/sources/symfony/symfony/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php:97
`where.exe composer.phar`
/home/nikic/package-analysis/sources/symfony/symfony/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php:97
`which composer.phar 2> /dev/null`
/home/nikic/package-analysis/sources/symfony/symfony/src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php:50
`ipcs -s`
/home/nikic/package-analysis/sources/symfony/symfony/src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php:58
`LC_ALL=C ipcs -su`
/home/nikic/package-analysis/sources/symfony/lock/Tests/Store/SemaphoreStoreTest.php:50
`ipcs -s`
/home/nikic/package-analysis/sources/symfony/lock/Tests/Store/SemaphoreStoreTest.php:58
`LC_ALL=C ipcs -su`
/home/nikic/package-analysis/sources/symfony/phpunit-bridge/bin/simple-phpunit.php:97
`where.exe composer.phar`
/home/nikic/package-analysis/sources/symfony/phpunit-bridge/bin/simple-phpunit.php:97
`which composer.phar 2> /dev/null`
/home/nikic/package-analysis/sources/zendframework/zend-console/src/Adapter/Posix.php:366
`stty -g`
/home/nikic/package-analysis/sources/d11wtq/boris/release.php:67
`perl -pi -e 's/$oldVersion/$newVersion/' lib/Boris/Boris.php README.md`
/home/nikic/package-analysis/sources/d11wtq/boris/release.php:70
`git commit -am "Version bump to $newVersion"`
/home/nikic/package-analysis/sources/d11wtq/boris/release.php:73
`git push`
/home/nikic/package-analysis/sources/d11wtq/boris/release.php:76
`git tag -a "v$newVersion" -m "Auto-generated tag"`
/home/nikic/package-analysis/sources/d11wtq/boris/release.php:79
`git push --tags`
/home/nikic/package-analysis/sources/d11wtq/boris/release.php:82
`curl \
-sL \
-XPOST \
-H "Authorization: token $token" \
--data-binary '{"tag_name":"v$newVersion"}' \
https://api.github.com/repos/$user/$repo/releases`
/home/nikic/package-analysis/sources/d11wtq/boris/release.php:99
`box build`
/home/nikic/package-analysis/sources/d11wtq/boris/release.php:102
`curl -XPOST \
-sL \
-H "Authorization: token $token" \
-H "Content-Type: application/octet-stream" \
--data-binary @$phar \
https://uploads.github.com/repos/$user/$repo/releases/$id/assets?name=$phar`
/home/nikic/package-analysis/sources/d11wtq/boris/release.php:124
`git remote -v`
/home/nikic/package-analysis/sources/pear/pear/PEAR/RunTest.php:242
`$cmd`
/home/nikic/package-analysis/sources/pear/pear/PEAR/Start.php:190
`whoami`
/home/nikic/package-analysis/sources/roots/wordpress/wp-includes/ID3/getid3.lib.php:621
`$commandline`
/home/nikic/package-analysis/sources/roots/wordpress/wp-includes/ID3/getid3.lib.php:1416
`$commandline`
/home/nikic/package-analysis/sources/roots/wordpress/wp-includes/ID3/getid3.php:196
`$commandline`
/home/nikic/package-analysis/sources/roots/wordpress/wp-includes/ID3/getid3.php:1358
`$commandline`
/home/nikic/package-analysis/sources/roots/wordpress/wp-includes/ID3/getid3.php:1370
`$commandline`
/home/nikic/package-analysis/sources/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php:52
`hg id -nb`
/home/nikic/package-analysis/sources/monolog/monolog/src/Monolog/Processor/GitProcessor.php:53
`git branch -v --no-abbrev`
/home/nikic/package-analysis/sources/infection/infection/src/TestFramework/AbstractTestFrameworkAdapter.php:155
`command -v php`
/home/nikic/package-analysis/sources/league/plates/scripts/build-docs.php:37
`git checkout $branch`
/home/nikic/package-analysis/sources/league/plates/scripts/build-docs.php:41
`git checkout -- .`
/home/nikic/package-analysis/sources/league/plates/scripts/build-docs.php:45
`git rev-parse --abbrev-ref HEAD`
/home/nikic/package-analysis/sources/league/plates/scripts/build-docs.php:88
`cp $dst/$version/index.html $dst/index.html`
/home/nikic/package-analysis/sources/league/plates/scripts/build-docs.php:89
`cp $dst/$version/CNAME $dst/CNAME`
/home/nikic/package-analysis/sources/league/plates/scripts/build-docs.php:96
`mkdir -p .generated`
/home/nikic/package-analysis/sources/league/plates/scripts/build-docs.php:97
`cp -r $src/* .generated`
/home/nikic/package-analysis/sources/league/plates/scripts/build-docs.php:107
`rm -rf $dir`
/home/nikic/package-analysis/sources/silverstripe/framework/src/Dev/CSSContentParser.php:51
`echo $CLI_content | tidy --force-output 1 -n -q -utf8 -asxhtml -w 0 2> /dev/null`
/home/nikic/package-analysis/sources/parsecsv/php-parsecsv/tests/Bootstrap.php:4
`composer dump-autoload`
/home/nikic/package-analysis/sources/gregwar/image/tests/ImageTests.php:480
`rm -rf $dir`
/home/nikic/package-analysis/sources/gregwar/cache/tests/CacheTests.php:206
`rm -rf $cacheDirectory`
/home/nikic/package-analysis/sources/gregwar/cache/demo/garbage.php:8
`mkdir cache`
/home/nikic/package-analysis/sources/gregwar/cache/demo/garbage.php:10
`touch -t 9901010101 cache/foo`
/home/nikic/package-analysis/sources/gregwar/cache/demo/garbage.php:11
`touch cache/bar`
/home/nikic/package-analysis/sources/topthink/framework/library/think/Process.php:626
`ps -o pid --no-heading --ppid {$this->getPid()}`
/home/nikic/package-analysis/sources/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/Bootstrap.php:355
`psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='postgres'"`
/home/nikic/package-analysis/sources/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/Bootstrap.php:356
`createuser -s -r postgres`
/home/nikic/package-analysis/sources/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/Bootstrap.php:359
`createdb -O postgres oauth2_server_php`
/home/nikic/package-analysis/sources/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/Bootstrap.php:369
`psql -l | grep oauth2_server_php | wc -l`
/home/nikic/package-analysis/sources/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/Bootstrap.php:370
`dropdb oauth2_server_php`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/module.audio.shorten.php:139
`which shorten`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/module.audio.shorten.php:149
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/getid3.lib.php:827
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/getid3.lib.php:1797
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/write.metaflac.php:121
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/write.metaflac.php:141
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/write.metaflac.php:180
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/write.metaflac.php:196
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/write.vorbiscomment.php:91
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/write.vorbiscomment.php:106
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/getid3.php:340
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/getid3.php:1573
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/getid3/getid3.php:1584
`$commandline`
/home/nikic/package-analysis/sources/james-heinrich/getid3/demos/demo.mp3header.php:1093
`md5sum "$file"`
/home/nikic/package-analysis/sources/marcj/topsort/src/Command/BenchmarkCommand.php:64
`php $path $class $count`
/home/nikic/package-analysis/sources/codeception/base/src/Codeception/Subscriber/Console.php:495
`command -v tput >> /dev/null 2>&1 && tput cols`
/home/nikic/package-analysis/sources/codeception/codeception/src/Codeception/Subscriber/Console.php:550
`command -v tput >> /dev/null 2>&1 && tput cols`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment