Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to decode AMF data: Unsupported ActionScript type 0xa2 #20

Open
kzu404 opened this issue Jun 3, 2024 · 0 comments
Open

Failed to decode AMF data: Unsupported ActionScript type 0xa2 #20

kzu404 opened this issue Jun 3, 2024 · 0 comments

Comments

@kzu404
Copy link

kzu404 commented Jun 3, 2024

Hi, i have problem decoding amf data included with this character �
this is my code :

    def decodeEnvelope(self, resp):
        # Decode the Base64 encoded response to bytes
        decoded_bytes = base64.b64decode(resp)

        # Attempt to decode the bytes as unicode with ignoring errors
        decoded_data = decoded_bytes.decode('latin-1', errors='ignore')
        
        # Decode the AMF (Action Message Format) data directly
        try:
            decodedAMF = remoting.decode(decoded_data)
            return decodedAMF
        except Exception as e:
            print(f"Failed to decode AMF data: {e}")
            return None

and the resp data is AAAAAAABAAsvMS9vblJlc3VsdAAEbnVsbAAAAuIDAAZzdGF0dXMAP/AAAAAAAAAABWVycm9yAAAAAAAAAAAAAAN1aWQCAAYzNjAxMDkACnNlc3Npb25rZXkCACAxMGE5YjY0YzgxMDdiM2M5NWE1YTVhZDMwMDBjYmI5NgAEaGFzaAIAQGY3ZmFmMzlmYzA1OGEyNzFmZTNmNzRlMzE0Njc3MTg4ZGExN2ZhZmNmZjk3OGQ3MjExNTZlMTNkMmYwOWU0MDcAC3N5c3RlbV90aW1lAgAKdHNqS2lRSFdvUgAEbmV3cwIB8U5ld3M8YnI+LSA5MCsgTGV2ZWwgc2tpbGxzIGFyZSBub3cgYXZhaWxhYmxlIGluIHRoZSBhY2FkZW15ITxicj4tIEVtYmxlbSsgaXMgbm93IGF2YWlsYWJsZSE8YnI+LSBOZXcgRXh0cmVtZSBUYWxlbnQgQ2F0YWNseXNtIGlzIG5vdyBhdmFpbGFibGUhPGJyPi0gTmV3IFBldHMgYXJlIGF2YWlsYWJsZSBpbiBlYWNoIHZpbGxhZ2VzIHBldCBzaG9wITxicj4tIEdlYXIgRmlsdGVycyBhcmUgbm93IGF2YWlsYWJsZSBmb3IgRW1ibGVtKyE8YnI+LSBTa2lsbCBQcmVzZXQgdXBkYXRlZCAzIHNsb3RzL2ZyZWUgdXNlciwgNiBzbG90cy9lbWJsZW0sIDkgc2xvdHMvZW1ibGVtKzxicj48YnI+QnVnIEZpeGVzPGJyPi0gRml4ZWQgYW4gaXNzdWUgd2l0aCBDbGFuIFNob3AsIHNvbWUgaXRlbXMgd2VyZW6SdCBidXlhYmxlLjxicj4tIEZpeGVkIGFuIGlzc3VlIHdpdGggRXllIG9mIE1pcnJvciBUaXRhbiB3aGVuIHVzaW5nIFN1cnByaXNlIEF0dGFjayBDbGFzcyBhbmQgU2VuanV0c3UuAAtjbGFuX3NlYXNvbgIAAjM2AAtjcmV3X3NlYXNvbgIAATUAAAk=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant