Quantcast
Channel: Other – Michał Szałkowski – Blog
Viewing all articles
Browse latest Browse all 125

Test RIA cross domain policy

$
0
0

https://www.owasp.org/index.php/Test_RIA_cross_domain_policy_(OTG-CONFIG-008)

# python 3.4

import urllib.request
import urllib.parse

ria_meta_file = ['crossdomain.xml', 'clientaccesspolicy.xml']

page_url = 'https://twitter.com/'

for _file in ria_meta_file:
    print("------ File test: " + _file + " ------")
    try:
        req = urllib.request.Request(
                page_url + _file,
                method='GET'
        )

        response = urllib.request.urlopen(req)
        body = response.read().decode('utf8')
        print(body)

    except:
        print('Error')


Viewing all articles
Browse latest Browse all 125

Trending Articles