1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
|
#!/usr/bin/env python3
"""
__author__ = "Axelle Apvrille"
__status__ = "Mature"
__license__ = "MIT License"
"""
def build_special_url_list():
"""Returns a list of special URLs"""
list = []
# dummy URLs
list.append('^(http://)127\.0\.0\.1$')
list.append('^8\.8\.8\.8$')
list.append('^8\.8\.4\.4$')
list.append('^https*://%s:%d%s')
list.append('^(http://)*192\.168\.[0-9.:]*')
list.append('host:port')
list.append('^(http://)*localhost$')
list.append('^https*://$')
list.append('^https*$')
list.append('temporary$')
list.append('^https*://unknown$')
list.append('^https*://images$')
list.append('^http://ads$')
list.append('^http://app$')
list.append('^http://server$')
list.append('^http://server/.*')
list.append('username:password@YOUR')
list.append('www\.dummyurl\.com')
list.append('www\.example\.com')
# clean URLs - which do not correspond to a kit i.e with a smali path
list.append('creativecommons\.org')
list.append('docs\.google\.')
list.append('support\.google\.')
list.append('developer\.android\.com')
list.append('developers\.google\.com')
list.append('googlesyndication\.com')
list.append('jsoup\.org')
list.append('www\.jcip\.net')
list.append('finance\.google\.')
list.append('maps\.google')
list.append('^https*://play\.google\.com')
list.append('https*://[a-zA-Z]*\.google\.com/')
list.append('www\.google\.')
list.append('checkout\.google\.com')
list.append('doubleclick\.net')
list.append('\.google-analytics\.com')
list.append('^https*://[a-z]*\.googleapis\.com/')
list.append('plus\.url\.google\.com')
list.append('market\.android\.com')
list.append('source\.android\.com')
list.append('material\.io')
list.append('java\.sun\.com')
list.append('\.facebook\.com/help')
list.append('\.facebook\.com$')
list.append('fonts\.gstatic\.com')
list.append('forum\.xda-developers\.com/showthread\.php')
list.append('www\.freetype\.org')
list.append('www\.microsoft\.com')
list.append('mozilla\.org')
list.append('www\.android\.com')
list.append('developer\.android\.com/reference/')
list.append('fontforge\.sf\.net')
list.append('www\.apache\.org')
list.append('www\.apple\.com')
list.append('travis-ci\.org')
list.append('twitter\.com')
list.append('www\.gnu\.org')
list.append('www\.fsf\.org')
list.append('www\.iec\.ch')
list.append('www\.paypal\.com')
list.append('www\.macromedia\.com/go/getflashplayer')
list.append('www\.mozilla\.org')
list.append('opensource\.org')
list.append('www\.openssl\.org')
list.append('www\.gstatic\.com')
list.append('www\.JSON\.org')
list.append('www\.junit\.com')
list.append('http://www\.amazon\.com/gp/mas/dl/android')
list.append('.\.youtube.com')
list.append('\.hockeyapp\.net')
list.append('http://ns\.adobe\.com/')
list.append('https*://[a-zA-Z]*\.jquery\.com')
list.append('https*://jqueryui\.com')
list.append('^https*://jquery\.[com|org]/*$')
list.append('scripts\.sil\.org')
list.append('www\.ajaxplorer\.info')
list.append('wikipedia\.org')
list.append('play\.google\.com')
list.append('github\.com')
list.append('jquery\.org')
list.append('www\.iana\.org')
list.append('stackoverflow\.com')
list.append('www\.unicode\.org')
list.append('freetype\.org')
# AV
list.append('www\.fortinet\.com')
list.append('docs\.fortinet\.com/fclient/android/')
list.append('home\.mcafee\.com')
list.append('\.norton\.com')
list.append('www\.avast\.com')
list.append('\.symantec\.com')
list.append('www\.mcafeemobilesecurity\.com/eula\.aspx')
list.append('www\.trendmicro\.com')
list.append('https*://[a-zA-Z0-9]*\.360safe\.com')
# search engines
list.append('search\.twitter\.com')
list.append('search\.yahoo\.com')
list.append('www\.baidu\.com')
list.append('wap\.baidu\.com')
list.append('map\.baidu\.com')
list.append('www\.searchmobileonline\.com')
# XML
list.append('^https*://push$')
list.append('^https*://schemas')
list.append('^https*://www\.$')
list.append('www\.w3\.org')
list.append('xml\.apache\.org')
list.append('xml\.org')
list.append('xmlpull\.org')
list.append('^https*://.*/configure[-_0-9]*\.dtd$')
# Operator
list.append('10\.0\.0\.172')
list.append('10\.0\.0\.200')
list.append('wap\.uni-info\.com\.cn')
list.append('mmsc\.myuni\.com\.cn')
list.append('mmsc\.vnet\.mobi')
list.append('wap\.vnet\.mobi')
list.append('10\.151\.0\.1')
list.append('62\.201\.134\.17')
list.append('mmsbouygtel\.com')
list.append('\.monternet\.com')
# Protocol
list.append('oauth_token')
# adkit urls which sometimes appear outside the smali path
list.append('pflexads\.com')
list.append('admob\.com')
list.append('^https*://api\.weibo\.com')
list.append('^https*://.*\.alipay.com')
return list
|