Intitial release
This commit is contained in:
parent
299038fbc7
commit
fa8caa5116
21 changed files with 1234 additions and 0 deletions
17
utils/blank.py
Normal file
17
utils/blank.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
from base64 import b64decode
|
||||
from re import findall
|
||||
|
||||
from constants.regex import WEBHOOK_REGEX
|
||||
|
||||
def base64_decode_then_filter(encoded_strings):
|
||||
results = []
|
||||
|
||||
for encoded_string in encoded_strings:
|
||||
try:
|
||||
decoded = b64decode(encoded_string).decode('utf-8', errors='ignore')
|
||||
webhooks = findall(WEBHOOK_REGEX, decoded)
|
||||
results.extend(webhooks)
|
||||
except:
|
||||
pass
|
||||
|
||||
return results
|
Loading…
Add table
Add a link
Reference in a new issue