Jump to content

User:Dannyniu

From Wikipedia, the free encyclopedia

I'm a non-notable StackExchange and GitHub user, and part-time Wikipedia lurker.

I don't patch KDE under FreeBSD.

Currently Interested Projects

[edit]

Personal Project(s)

[edit]

Exception-Free Programming.

Wikipedia Articles (PQCrypto Bucket List)

[edit]

Ladder for Mainlanders

[edit]

The IPv4 address for Wikimedia websites is 198.35.26.96

  • Setup a proxy to read from wiktionary.org or similar place to send a fake TLS Server Name Indication.
  • Setup a fake HTTPS website locally.
  • Disable Strict Transport Security in about:config.

One possible python-3.7 proxy script:

#!/usr/bin/env python3

import asyncio

async def passover(head, tail):
    while not head.at_eof():
        data = await head.read(512)
        tail.write(data)
        await tail.drain()
    tail.close()

async def accepted(reader, writer):
    rcv, snd = await asyncio.open_connection('wiktionary.org', 443, ssl=True)
    up = asyncio.create_task(passover(reader, snd))
    dn = asyncio.create_task(passover(rcv, writer))

async def main():
    s = await asyncio.start_server(accepted, port=8080)
    async with s:
        await s.serve_forever()

asyncio.run(main())