This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update_promocode(promocode) { | |
if (promocode.expires) { | |
update_promocodes(code => promocode, expiry_date => promocode.expires); | |
} | |
if (promocode.maxredeem) { | |
update_promocodes(code => promocode, max_redemption => promocode.maxredeem); | |
} | |
return true; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# By Eldar Marcussen for SEEK 29/04/2020 | |
echo 'Simplistic Java Expression Language Injection detection' | |
echo '==================================================}*>>>' | |
echo ' [*] Identifying use of spring eval with variables:' | |
grep -HrnE '<spr(ing)?:eval.*\$\{' "$1" | |
echo ' [*] Identifying EL code definitions.' | |
grep -hroE '<spr(ing)?:(message|theme).*code=[^>]+>' "$1" | sort -u | sed -e"s/.*code=[\"\']//" -e"s/[\'\"].*//" > /tmp/elcList.txt | |
echo ' [+] Code list saved as /tmp/elcList.txt' | |
echo ' [*] Shortlisting codes with arguments.' |