Skip to content

Instantly share code, notes, and snippets.

@zhsj
Created January 23, 2017 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhsj/8999e6e7b26826d0165d66dd8f465527 to your computer and use it in GitHub Desktop.
Save zhsj/8999e6e7b26826d0165d66dd8f465527 to your computer and use it in GitHub Desktop.
HZ characters decode, RFC 1843
#!/usr/bin/env python3
hz = "VP9z?F<<4sQ'"
print(bytes([ord(i)+0x80 for i in hz]).decode('gb2312'))
@zhsj
Copy link
Author

zhsj commented Jan 23, 2017

$ whois 2001:da8:d800::1
% [whois.apnic.net]
% Whois data copyright terms    http://www.apnic.net/db/dbcopyright.html

% Information related to '2001:0DA8:D800::/48'

inet6num:       2001:0DA8:D800::/48
netname:        USTC6-CERNET2
descr:          ~{VP9z?F<<4sQ'~}
......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment