Python: Model encoding/decoding with base64 module

This commit is contained in:
Rasmus Wriedt Larsen
2020-11-02 14:44:53 +01:00
parent eff244db71
commit 66f5d0d9d5
5 changed files with 162 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
import base64
# TODO: These tests should be merged with python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep-py3/test_string.py
base64.a85decode(payload) # $decodeInput=payload $decodeOutput=Attribute() $decodeFormat=Ascii85
base64.b85decode(payload) # $decodeInput=payload $decodeOutput=Attribute() $decodeFormat=Base85
base64.decodebytes(payload) # $decodeInput=payload $decodeOutput=Attribute() $decodeFormat=Base64