feat(upfast): ban payloads that make use of my website.
This commit is contained in:
parent
71efa3d135
commit
859efab6b7
1 changed files with 10 additions and 0 deletions
|
|
@ -20,6 +20,16 @@ if echo "$files" | grep -i ".php" >> /dev/null; then
|
|||
done
|
||||
fi
|
||||
|
||||
# Delete all shell scripts that make direct mention of my upfast instance
|
||||
if echo "$files" | grep -i ".sh" >> /dev/null; then
|
||||
for file in $(echo "$files" | grep -i ".sh"); do
|
||||
if curl -s "$instance/files/$file" | grep -i "upfast.cronyakatsuki.xyz/files" >> /dev/null; then
|
||||
echo "Found payload, deleting file $file"
|
||||
curl -X DELETE "$instance/files/$file"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Delete kernel object files
|
||||
if echo "$files" | grep -iE ".*.ko" >> /dev/null; then
|
||||
for file in $(echo "$files" | grep -iE ".*.ko"); do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue