How to decode viewstate

前端 未结 11 1281
终归单人心
终归单人心 2020-11-28 04:45

I need to see the contents of the viewstate of an asp.net page. I looked for a viewstate decoder, found Fridz Onion\'s ViewState Decoder but it asks for the url of a page to

11条回答
  •  死守一世寂寞
    2020-11-28 05:30

    Best way in python is use this link.

    A small Python 3.5+ library for decoding ASP.NET viewstate.

    First install that: pip install viewstate

    >>> from viewstate import ViewState
    >>> base64_encoded_viewstate = '/wEPBQVhYmNkZQ9nAgE='
    >>> vs = ViewState(base64_encoded_viewstate)
    >>> vs.decode()
    ('abcde', (True, 1))
    

提交回复
热议问题