Skip to content

Instantly share code, notes, and snippets.

View thermatk's full-sized avatar
🙃
not on vacation

Ruslan Boitsov thermatk

🙃
not on vacation
View GitHub Profile
@thermatk
thermatk / telegram-dns
Created April 24, 2018 17:50 — forked from jefmathiot/telegram-dns
Telegram DNS
#!/usr/bin/env ruby
require 'base64'
require 'openssl'
require 'net/http'
require 'ipaddr'
require 'json'
def handle_response(body)
raw = Base64.decode64(body)
rsa_key = OpenSSL::PKey::RSA.new(File.read('public_key.pem'))