This file contains hidden or 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
| import socket, struct, os, binascii, base64, zlib | |
| import telnetlib | |
| def readline(sc, show = True): | |
| res = "" | |
| while len(res) == 0 or res[-1] != "\n": | |
| data = sc.recv(1) | |
| if len(data) == 0: | |
| print repr(res) | |
| raise Exception("Server disconnected") |
This file contains hidden or 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
| import socket, struct, os, binascii, base64 | |
| import telnetlib | |
| def readline(sc, show = True): | |
| res = "" | |
| while len(res) == 0 or res[-1] != "\n": | |
| data = sc.recv(1) | |
| if len(data) == 0: | |
| print repr(res) | |
| raise Exception("Server disconnected") |
This file contains hidden or 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
| import socket, struct, os, binascii, base64, hashlib, sys | |
| import telnetlib | |
| from Crypto.Cipher import AES | |
| import psyco; psyco.full() | |
| def readline(sc, show = True): | |
| res = "" | |
| while len(res) == 0 or res[-1] != "\n": |
This file contains hidden or 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
| import socket, struct, os, binascii, base64 | |
| import telnetlib | |
| def readline(sc, show = True): | |
| res = "" | |
| while len(res) == 0 or res[-1] != "\n": | |
| data = sc.recv(1) | |
| if len(data) == 0: | |
| print repr(res) | |
| raise Exception("Server disconnected") |
This file contains hidden or 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
| import socket, struct, os, binascii, base64 | |
| import telnetlib | |
| def readline(sc, show = True): | |
| res = "" | |
| while len(res) == 0 or res[-1] != "\n": | |
| data = sc.recv(1) | |
| if len(data) == 0: | |
| print repr(res) | |
| raise Exception("Server disconnected") |
This file contains hidden or 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
| import socket, struct, os, binascii, base64, hashlib | |
| import telnetlib | |
| import rsa | |
| from gmpy2 import mpz, iroot, powmod, mul, t_mod | |
| def readline(sc, show = True): | |
| res = "" | |
| while len(res) == 0 or res[-1] != "\n": |
This file contains hidden or 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
| # a b c d e f g h | |
| # a^b b^c c^d d^e e^f f^g g^h | |
| # a^c b^d c^e d^f e^g f^h | |
| # a^b^c^d b^c^d^e c^d^e^f d^e^f^g e^f^g^h | |
| # a^e b^f c^g d^h |
This file contains hidden or 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
| import binascii, sys | |
| import psyco; psyco.full() | |
| def main(): | |
| # arr = [ord(x) for x in binascii.a2b_hex("C766FCD65CB60DE829633BA8D8B823526FF8239C1DD6DE73EB963536B3483346")] | |
| # print arr | |
| #data = open("data-original", "rb").read()[8:] |
This file contains hidden or 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
| import socket, struct, os, binascii, base64, subprocess | |
| import telnetlib | |
| import base58 | |
| def readline(sc, show = True): | |
| res = "" | |
| while len(res) == 0 or res[-1] != "\n": | |
| data = sc.recv(1) | |
| if len(data) == 0: |
This file contains hidden or 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
| function get_flag() { | |
| s = "ASIS{"; | |
| var r0 = 65; | |
| var r7 = 0; | |
| for (var r8 = 0; r8 <= 20; r8++) { | |
| var r9 = 47; | |
| r9 = r9 < r0; | |
| if (!(r9 < 58)) { | |
| r9 = 64; | |
| r9 = r9 < r0; |