testbase64.py 281 B

12345678910
  1. #coding:utf-8
  2. import base64
  3. import re
  4. str='''
  5. <script type="text/javascript">Proxy('NzcuODcuMjEuODY6ODA4MA==')</script></li>
  6. '''
  7. match = re.search('Proxy\(.+\)',str)
  8. print match.group()
  9. ip_port = base64.b64decode(match.group().replace("Proxy('","").replace("')",""))
  10. print ip_port