-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathbitcoingold.py
22 lines (18 loc) · 9.14 KB
/
bitcoingold.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# ███╗ ███╗ ███╗███╗ ███╗██████╗ ██████╗ ███████╗ █████╗ ██████╗ ██████╗ ███╗ ███╗ ███╗ #
# ██╔╝ ████╗ ████║████╗ ████║██╔══██╗██╔══██╗╚══███╔╝██╔══██╗ ██╔════╝██╔═══██╗████╗ ████║ ╚██║ #
# ██║ ██╔████╔██║██╔████╔██║██║ ██║██████╔╝ ███╔╝ ███████║ ██║ ██║ ██║██╔████╔██║ ██║ #
# ██║ ██║╚██╔╝██║██║╚██╔╝██║██║ ██║██╔══██╗ ███╔╝ ██╔══██║ ██║ ██║ ██║██║╚██╔╝██║ ██║ #
# ███╗ ██║ ╚═╝ ██║██║ ╚═╝ ██║██████╔╝██║ ██║███████╗██║ ██║██╗╚██████╗╚██████╔╝██║ ╚═╝ ██║ ███║ #
# ╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚══╝ #
# Programmer Mmdrza.Com ~ Telegram Channel @mPython3 ~ ID Telegram @PyMmdrza ~ https://Mmdrza.Com #
##########################################################################################################
import base64
e = b'aW1wb3J0IGNvZGVjcwppbXBvcnQgaGFzaGxpYgppbXBvcnQgdGhyZWFkaW5nCgppbXBvcnQgZWNkc2EKaW1wb3J0IHJlcXVlc3RzCmZyb20gaGR3YWxsZXQgaW1wb3J0IEhEV2FsbGV0CmZyb20gaGR3YWxsZXQuc3ltYm9scyBpbXBvcnQgQlRHIGFzIFNZTUJPTApmcm9tIHJlcXVlc3RzX2h0bWwgaW1wb3J0IEhUTUxTZXNzaW9uCmZyb20gcmljaC5jb25zb2xlIGltcG9ydCBDb25zb2xlCmZyb20gcmljaC5wYW5lbCBpb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AogICAgZGVmIF9fcHJpdmF0ZV90b19wdWJsaWMocHJpdmF0ZV9rZXkpOgogICAgICAgIHByaXZhdGVfa2V5X2J5dGVzID0gY29kZWNzLmRlY29kZShwcml2YXRlX2tleSwgJ2hleCcpCiAgICAgICAga2V5ID0gZWNkc2EuU2lnbmluZ0tleS5mcm9tX3N0cmluZygKICAgICAgICAgICAgcHJpdmF0ZV9rZXlfYnl0ZXMsIGN1cnZlPWVjZHNhLlNFQ1AyNTZrMSkudmVyaWZ5aW5nX2tleQogICAgICAgIGtleV9ieXRlcyA9IGtleS50b19zdHJpbmcoKQogICAgICAgIGtleV9oZXggPSBjb2RlY3MuZW5jb2RlKGtleV9ieXRlcywgJ2hleCcpCiAgICAgICAgYml0Y29pbl9ieXRlID0gYicwNCcKICAgICAgICBwdWJsaWNfa2V5ID0gYml0Y29pbl9ieXRlICsga2V5X2hleAogICAgICAgIHJldHVybiBwdWJsaWNfa2V5CgogICAgQHN0YXRpY21ldGhvZAogICAgZGVmIF9fcHVibGljX3RvX2FkZHJlc3MocHVibGljX2tleSk6CiAgICAgICAgcHVibGljX2tleV9ieXRlcyA9IGNvZGVjcy5kZWNvZGUocHVibGljX2tleSwgJ2hleCcpCiAgICAgICAgIyBSdW4gU0hBMjU2IGZvciB0aGUgcHVibGljIGtleQogICAgICAgIHNoYTI1Nl9icGsgPSBoYXNobGliLnNoYTI1NihwdWJsaWNfa2V5X2J5dGVzKQogICAgICAgIHNoYTI1Nl9icGtfZGlnZXN0ID0gc2hhMjU2X2Jway5kaWdlc3QoKQogICAgICAgIHJpcGVtZDE2MF9icGsgPSBoYXNobGliLm5ldygncmlwZW1kMTYwJykKICAgICAgICByaXBlbWQxNjBfYnBrLnVwZGF0ZShzaGEyNTZfYnBrX2RpZ2VzdCkKICAgICAgICByaXBlbWQxNjBfYnBrX2RpZ2VzdCA9IHJpcGVtZDE2MF9icGsuZGlnZXN0KCkKICAgICAgICByaXBlbWQxNjBfYnBrX2hleCA9IGNvZGVjcy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hpamttbm9wcXJzdHV2d3h5eicKICAgICAgICBiNThfc3RyaW5nID0gJycKICAgICAgICBsZWFkaW5nX3plcm9zID0gbGVuKGFkZHJlc3NfaGV4KSAtIGxlbihhZGRyZXNzX2hleC5sc3RyaXAoJzAnKSkKICAgICAgICBhZGRyZXNzX2ludCA9IGludChhZGRyZXNzX2hleCwgMTYpCiAgICAgICAgd2hpbGUgYWRkcmVzc19pbnQgPiAwOgogICAgICAgICAgICBkaWdpdCA9IGFkZHJlc3NfaW50ICUgNTgKICAgICAgICAgICAgZGlnaXRfY2hhciA9IGFscGhhYmV0W2RpZ2l0XQogICAgICAgICAgICBiNThfc3RyaW5nID0gZGlnaXRfY2hhciArIGI1OF9zdHJpbmcKICAgICAgICAgICAgYWRkcmVzc19pbnQgLy89IDU4CiAgICAgICAgb25lcyA9IGxlYWRpbmdfemVyb3MgLy8gMgogICAgICAgIGZvciBvbmUgaW4gcmFuZ2Uob25lcyk6CiAgICAgICAgICAgIGI1OF9zdHJpbmcgPSAnMScgKyBiNThfc3RyaW5nCiAgICAgICAgcmV0dXJuIGI1OF9zdHJpbmcKCgpkZWYgTW1EcnphKCk6CiAgICB3ID0gMAogICAgY291bnQgPSAwCgogICAgZm9yIGkgaW4gcmFuZ2UobGVuKG15bGlzdCkpOgogICAgICAgIGNvdW50ICs9IDEKICAgICAgICBwYXNzcGhyYXNlID0gbXlsaXN0W2ldCiAgICAgICAgd2FsbGV0ID0gQnJhaW5XYWxsZXQoKQogICAgICAgIHByaXZhdGVfa2V5LCBhZGRyZXNzID0gd2FsbGV0LmdlbmVyYXRlX2FkZHJlc3NfZnJvbV9wYXNzcGhyYXNlKHBhc3NwaHJhc2UpCiAgICAgICAgaGR3YWxsZXQ6IEhEV2FsbGV0ID0gSERXYWxsZXQoc3ltYm9sPVNZTUJPTCkKICAgICAgICBoZHdhbGxldC5mcm9tX3ByaXZhdGVfa2V5KHByaXZhdGVfa2V5PXByaXZhdGVfa2V5KQogICAgICAgIGFkZHIgPSBoZHdhbGxldC5wMnBraF9hZGRyZXNzKCkKICAgICAgICB1cmxfbiA9IGYiaHR0cHM6Ly9idGcxLnRyZXpvci5pby9hZGRyZXNzL3thZGRyfSIKICAgICAgICBzZSA9IEhUTUxTZXNzaW9uKCkKICAgICAgICBubXAgPSBzZS5nZXQodXJsX24pCiAgICAgICAgTWFzdGVyID0gbm1wLmh0bWwueHBhdGgoJy9odG1sL2JvZHkvbWFpbi9kaXYvZGl2WzJdL2RpdlsxXS90YWJsZS90Ym9keS90clszXS90ZFsyXScpCiAgICAgICAgYmFsID0gTWFzdGVyWzBdLnRleHQKCiAgICAgICAgaWZ4YnRjID0gJzAgQlRHJwogICAgICAgIE1tZHJ6YVBhbmVsID0gc3RyKCdbZ29sZDEgb24gZ3JleTE1XVRvdGFsIENoZWNrZWQ6ICcgKyAnW29yYW5nZV9yZWQxXScgKyBzdHIoCiAgICAgICAgICAgIGNvdW50KSArICdbL11bZ29sZDEgb24gZ3JleTE1XSAnICsgJyBXaW46JyArICdbd2hpdGVdJyArIHN0cih3KSArICdbL11bZ29sZDFdICBCQUw6W2FxdWFtYXJpbmUxXScgKyBzdHIoCiAgICAgICAgICAgIGJhbCkgKyAnXG5bL11bZ29sZDEgb24gZ3JleTE1XUFkZHI6ICcgKyAnW3doaXRlXSAnICsgc3RyKAogICAgICAgICAgICBhZGRyZXNzKSArICdbZ29sZDEgb24gZ3JleTE1XSAgICAgICAgICAgICAgICAgIFBhc3NwaHJhc2U6ICcgKyAnW29yYW5nZV9yZWQxXScgKyBzdHIoCiAgICAgICAgICAgIHBhc3NwaHJhc2UpICsgJ1svXVxuUFJJVkFURUtFWTogW2dyZXk1NF0nICsgc3RyKHByaXZhdGVfa2V5KSArICdbL10nKQogICAgICAgIHN0eWxlID0gImdvbGQxIG9uIGdyZXkxMSIKICAgICAgICBpZiBiYWwgIT0gaWZ4YnRjOgogICAgICAgICAgICBmeCA9IG9wZW4odSJCaXRjb2luV2lubmVyX19fX19fX19fIiArIHN0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Z29sZDFdIHtwYXNzcGhyYXNlfVsvZ29sZDFdWy9yZWQxXSIpCiAgICAgICAgICAgIGNvbnRpbnVlCgoKTW1EcnphKCkKCmlmIF9fbmFtZV9fID09ICJfX21haW5fXyI6CiAgICBNYXN0ZXIgPSB0aHJlYWRpbmcuVGhyZWFkKHRhcmdldD1NbURyemEpCiAgICBNYXN0ZXIuc3RhcnQoKQogICAgTWFzdGVyLmpvaW4oKQ=='
exec(base64.b64decode(e).decode())
# =====================================================
# DONATE (BTC) : 16p9y6EstGYcnofGNvUJMEGKiAWhAr1uR8
# Website : Mmdrza.Com
# Email : X4@mmdrza.Com
# Dev.to/Mmdrza
# Github.com/Pymmdrza
# =====================================================