Esempio n. 1
0
File: tests.py Progetto: un1t/urlcan
def test_22():
    assert canonicalize("http://evil.com/foo;") == "http://evil.com/foo;"
Esempio n. 2
0
File: tests.py Progetto: un1t/urlcan
def test_4():
    assert canonicalize("http://host/asdf%25%32%35asd") == "http://host/asdf%25asd"
Esempio n. 3
0
File: tests.py Progetto: un1t/urlcan
def test_21():
    assert canonicalize("http://evil.com/foo#bar#baz") == "http://evil.com/foo"
Esempio n. 4
0
File: tests.py Progetto: un1t/urlcan
def test_30():
    assert canonicalize("%20leadingspace.com/") == "http://%20leadingspace.com/"
Esempio n. 5
0
File: tests.py Progetto: un1t/urlcan
def test_32():
    assert canonicalize("http://host.com/ab%23cd") == "http://host.com/ab%23cd"
Esempio n. 6
0
File: tests.py Progetto: un1t/urlcan
def test_25():
    assert canonicalize("http://notrailingslash.com") == "http://notrailingslash.com/"
Esempio n. 7
0
File: tests.py Progetto: un1t/urlcan
def test_3():
    assert canonicalize("http://host/%2525252525252525") == "http://host/%25"
Esempio n. 8
0
File: tests.py Progetto: un1t/urlcan
def test_11():
    assert canonicalize("http://www.google.com/blah/..") == "http://www.google.com/"
Esempio n. 9
0
File: tests.py Progetto: un1t/urlcan
def test_13():
    assert canonicalize("www.google.com") == "http://www.google.com/"
Esempio n. 10
0
File: tests.py Progetto: un1t/urlcan
def test_9():
    assert canonicalize("http://host%23.com/%257Ea%2521b%2540c%2523d%2524e%25f%255E00%252611%252A22%252833%252944_55%252B") == "http://host%23.com/~a!b@c%23d$e%25f^00&11*22(33)44_55+"
Esempio n. 11
0
File: tests.py Progetto: un1t/urlcan
def test_10():
    assert canonicalize("http://3279880203/blah") == "http://195.127.0.11/blah"
Esempio n. 12
0
File: tests.py Progetto: un1t/urlcan
def test_8():
    assert canonicalize("http://195.127.0.11/uploads/%20%20%20%20/.verify/.eBaysecure=updateuserdataxplimnbqmn-xplmvalidateinfoswqpcmlx=hgplmcx/") == "http://195.127.0.11/uploads/%20%20%20%20/.verify/.eBaysecure=updateuserdataxplimnbqmn-xplmvalidateinfoswqpcmlx=hgplmcx/"
Esempio n. 13
0
File: tests.py Progetto: un1t/urlcan
def test_7():
    assert canonicalize("http://%31%36%38%2e%31%38%38%2e%39%39%2e%32%36/%2E%73%65%63%75%72%65/%77%77%77%2E%65%62%61%79%2E%63%6F%6D/") == "http://168.188.99.26/.secure/www.ebay.com/"
Esempio n. 14
0
File: tests.py Progetto: un1t/urlcan
def test_5():
    assert canonicalize("http://host/%%%25%32%35asd%%") == "http://host/%25%25%25asd%25%25"
Esempio n. 15
0
File: tests.py Progetto: un1t/urlcan
def test_23():
    assert canonicalize("http://evil.com/foo?bar;") == "http://evil.com/foo?bar;"
Esempio n. 16
0
File: tests.py Progetto: un1t/urlcan
def test_14():
    assert canonicalize("http://www.evil.com/blah#frag") == "http://www.evil.com/blah"
Esempio n. 17
0
File: tests.py Progetto: un1t/urlcan
def test_24():
    assert canonicalize("http://\x01\x80.com/") == "http://%01%80.com/"
Esempio n. 18
0
File: tests.py Progetto: un1t/urlcan
def test_2():    
    assert canonicalize("http://host/%25%32%35%25%32%35") == "http://host/%25%25"
Esempio n. 19
0
File: tests.py Progetto: un1t/urlcan
def test_26():
    assert canonicalize("http://www.gotaport.com:1234/") == "http://www.gotaport.com:1234/"
Esempio n. 20
0
File: tests.py Progetto: un1t/urlcan
def test_17():
    assert canonicalize("http://www.google.com/foo\tbar\rbaz\n2") == "http://www.google.com/foobarbaz2"
Esempio n. 21
0
File: tests.py Progetto: un1t/urlcan
def test_27():
    assert canonicalize("  http://www.google.com/  ") == "http://www.google.com/"
Esempio n. 22
0
File: tests.py Progetto: un1t/urlcan
def test_18():
    assert canonicalize("http://www.google.com/q?") == "http://www.google.com/q?"
Esempio n. 23
0
File: tests.py Progetto: un1t/urlcan
def test_31():
    assert canonicalize("https://www.securesite.com/") == "https://www.securesite.com/"
Esempio n. 24
0
File: tests.py Progetto: un1t/urlcan
def test_20():
    assert canonicalize("http://www.google.com/q?r?s") == "http://www.google.com/q?r?s"
Esempio n. 25
0
File: tests.py Progetto: un1t/urlcan
def test_33():
    assert canonicalize("http://host.com//twoslashes?more//slashes") == "http://host.com/twoslashes?more//slashes"
Esempio n. 26
0
File: tests.py Progetto: un1t/urlcan
def test_34():
    assert canonicalize("http://host.com/aa/../../../dots") == "http://host.com/dots"