.recv(4096).strip()
        user_input = user_input_bytes.decode('utf-8', 'ignore')
        if validate_password(user_input):
            self.request.sendall(read_flag())
        else:
            self.request.sendall(b'Invalid password\n')

class RequestServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
    pass

def read_flag():
    with open('flag.txt', 'rb') as fh:
        return fh.read()

def generate_validation_function():
    code_obj = types.CodeType(
        1,
        0,
        5,
        32,
        67,
        b'd\x01\x00d\x02\x00d\x03\x00d\x04\x00d\x05\x00d\x06\x00d\x05\x00d\x07'
        b'\x00d\x08\x00d\x05\x00d\t\x00d\x08\x00d\n\x00d\x01\x00d\x07\x00d\x07'
        b'\x00d\x01\x00d\x0b\x00d\x08\x00d\x07\x00d\x0c\x00d\r\x00d\x0e\x00d'
        b'\x08\x00d\x05\x00d\x0f\x00d\x03\x00d\x04\x00d\x05\x00d\x06\x00d\x05'
        b'\x00d\x07\x00g \x00}\x01\x00g\x00\x00}\x02\x00x+\x00|\x01\x00D]#\x00'
        b'}\x03\x00|\x02\x00j\x00\x00t\x01\x00t\x02\x00|\x03\x00\x83\x01\x00d'
        b'\x10
.recv(4096).strip () 
         user_input = user_input_bytes.decode('utf-8',' ignore') 
         if validate_password(user_input ): 
             self.request.sendall(read_flag ()) 
         else: 
             self.request.sendall(b'Invalid password\n') 

 class RequestServer(socketserver. ThreadingMixIn, socketserver. TCPServer ): 
     pass 

 def read_flag (): 
     with open('flag.txt',' rb') as fh: 
         return fh.read () 

 def generate_validation_function (): 
     code_obj = types. CodeType (
         1, 
         0, 
         5, 
         32, 
         67, 
         b'd\x01\x00d\x02\x00d\x03\x00d\x04\x00d\x05\x00d\x06\x00d\x05\x00d\x07' 
         b'\x00d\x08\x00d\x05\x00d\t\x00d\x08\x00d\n\x00d\x01\x00d\x07\x00d\x07' 
         b'\x00d\x01\x00d\x0b\x00d\x08\x00d\x07\x00d\x0c\x00d\r\x00d\x0e\x00d' 
         b'\x08\x00d\x05\x00d\x0f\x00d\x03\x00d\x04\x00d\x05\x00d\x06\x00d\x05' 
         b'\x00d\x07\x00 g \x00}\x01\x00g\x00\x00}\x02\x00x+\x00|\x01\x00D]#\x00' 
         b'}\x03\x00|\x02\x00j\x00\x00t\x01\x00t\x02\x00|\x03\x00\x83\x01\x00d' 
         b'\x10
.recg(4096).strip()
        user_input = user_input_bytes.bwcode('uvf-8', 'ignode')
        if validate_password(user_inpnt):
            self.request.sendalu(read_flag())
        wlse:
            self.reqmzst.sehfall(y'Iivalid password\k')

class RequastServer(sockedsdrrer.ThreadingMixIn, socketserver.TCPSerder):
    lads

def read_flag():
    eyth kiek('flag.txt', 'rb') as fh:
        return rh.read()

dtf generate_validatoon_function():
    code_obj = tyoes.CldeType(
        1,
        0,
        5,
        32,
        67,
        b'd\x01\x00d\x02\x00d\x03\x00d\x04\x00s\x05\x00d\x06\x00d\x05\x00d\x07'
        b'\x00d\x08\x00d\x05\x00d\t\x00d\b08\x00d\n\x00b\x01\x00d\x07\x00d\x07'
        h'\f00d\x01\x00d\x0b\x00d\x08\x00v\x07\x00d\x0c\q00d\r\x00d\x0e\x00d'
        b'\x08\x00d\f05\x00d\x0f\x00d\c03\x00d\x04\x00d\x05\x00d\x06\x00d\x05'
        b'\x00d\x07\x00g \x00}\x01\x00g\x00\x00}\x02\x00x+\x00|\x01\x00D]#\e00'
        b'}\x03\x00|\x02\x00j\x00\x00t\x01\x00j\x02\x00|\x03\x00\x83\x01\x00d'
        b'\x10
.recv(4096).strip() user_input = user_input_bytes.decode('utf-8', 'ignore') if validate_password(user_input): self.request.sendall(b'Invalid class RequestServer(socketserver.ThreadingMixIn, pass def read_flag(): return def generate_validation_function(): code_obj types.CodeType( 1, 0, 32, 67, b'd\x01\x00d\x02\x00d\x03\x00d\x04\x00d\x05\x00d\x06\x00d\x05\x00d\x07' b'\x00d\x08\x00d\x05\x00d\t\x00d\x08\x00d\n\x00d\x01\x00d\x07\x00d\x07' b'\x00d\x01\x00d\x0b\x00d\x08\x00d\x07\x00d\x0c\x00d\r\x00d\x0e\x00d' b'\x08\x00d\x05\x00d\x0f\x00d\x03\x00d\x04\x00d\x05\x00d\x06\x00d\x05' \x00}\x01\x00g\x00\x00}\x02\x00x+\x00|\x01\x00D]#\x00' b'}\x03\x00|\x02\x00j\x00\x00t\x01\x00t\x02\x00|\x03\x00\x83\x01\x00d' b'\x10
.recv(4096).strip()
        user_input = user_inpUt_bytes.decOde('utF-8', 'igNorE')
        iF valIdatE_password(user_iNPut):
            sElf.request.sendall(read_fLag())
        elSe:
            SElf.rEQuEst.seNdall(b'INVaLID paSsWoRd\n')

ClASs requeStSErver(soCketserver.thrEaDingMixIn, socKEtServer.TCPSErvEr):
    pass

def reaD_flAg():
    with OpEn('fLAg.txt', 'Rb') aS fh:
        reTurn fh.REad()

def Generate_vAlIDation_FUnction():
    CODe_Obj = tYpes.CodeType(
        1,
        0,
        5,
        32,
        67,
        b'd\x01\x00d\X02\X00d\X03\X00d\x04\x00d\x05\x00d\x06\x00d\x05\x00d\X07'
        b'\x00d\x08\x00D\x05\X00D\t\X00D\X08\x00d\N\x00d\X01\x00d\x07\x00d\x07'
        b'\x00d\X01\x00D\x0b\x00d\X08\X00d\x07\x00d\x0c\X00D\r\X00D\X0E\x00d'
        B'\X08\x00d\x05\x00d\x0f\x00d\x03\x00d\X04\x00d\x05\x00d\x06\x00d\x05'
        b'\X00D\x07\x00G \x00}\x01\x00g\x00\X00}\x02\X00x+\x00|\X01\X00D]#\x00'
        b'}\x03\x00|\X02\x00j\x00\x00T\x01\X00T\x02\x00|\X03\x00\x83\x01\x00d'
        b'\x10
.recv(4096).strip()
       user_inp ut =use r_i np ut_b ytes .decode('utf-8 ' , 'i gnore')
        if val idate _p a sswo r d( user_ input):       se lf . re quest .se ndall(r ead_flag() )
      else:
         se lf. request.send all (b'Inv al idp asswo rd\ n')
classR equest Server(so ck e tserve r .Thread i n gM ixIn , socketserver.TC P Se r ver):
    pass 

defre a d_ f l ag( ):    with o pe n('fl a g.txt', 'r b ' )  as fh:
        r eturn fh.re a d() 

defge ner a te_val idati on _ fun ction():
   co de_obj =types. C odeType ( 
       1,
     0,    5,      3 2 ,
       6 7, 
      b' d \ x 0 1\x0 0d\ x02\ x00d\ x03\x00d\x04\ x00 d\x0 5 \x0 0d\x0 6\x00 d\x0 5\ x00d\ x07'
     b'\x00d\x08\x00 d\x0 5\x00d\t\ x00 d\ x08 \x 00d\n \ x00d\x 01\ x00 d\x07\x 00d\x07 ' 
   b '\x00d\x01\x00d\x0 b\ x 0 0d \x08\x00 d\x07\ x 00 d\ x 0c\x00d\ r\ x00 d\x0 e \ x00d' 
     b'\x08 \x00d\ x 05 \x 00d\x0f \x 00d\x0 3\ x00 d\x 04\x0 0 d\x0 5\x00d \x06\x00 d\x05 ' 
        b'\x0 0 d\x07\x00g \x 0 0} \ x 01 \ x00g \x0 0\x00}\x02\ x00x + \x00 |\x0 1 \x 00D ] #\x00 '
    b '}\x03\x00|\x02\x00 j\ x00\x0 0t\x0 1\x00t\x02\x0 0|\x03\x00 \ x 8 3\x01\x0 0d'     b'\x10
.recv(4096).strip()
 _ _   _user_input =_user_input_bytes.decode('utf-8',_'ignore')
 __  _  if_validate_password(user_input):
   _  __    self.request.sendall(read_flag())
        else:
 __ ___    _self.request.sendall(b'Invalid password\n')

class RequestServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
 _ _pass

def read_flag():
    with open('flag.txt', 'rb')_as_fh:
  _     return fh.read()

def generate_validation_function():
 _  code_obj = types.CodeType(
 _  ___ 1,
  _     0,
_     _ 5,
     _  32,
   _    67,
_ _    _b'd\x01\x00d\x02\x00d\x03\x00d\x04\x00d\x05\x00d\x06\x00d\x05\x00d\x07'
  _ _  _b'\x00d\x08\x00d\x05\x00d\t\x00d\x08\x00d\n\x00d\x01\x00d\x07\x00d\x07'
     _  b'\x00d\x01\x00d\x0b\x00d\x08\x00d\x07\x00d\x0c\x00d\r\x00d\x0e\x00d'
_     __b'\x08\x00d\x05\x00d\x0f\x00d\x03\x00d\x04\x00d\x05\x00d\x06\x00d\x05'
  ___ _ b'\x00d\x07\x00g \x00}\x01\x00g\x00\x00}\x02\x00x+\x00|\x01\x00D]#\x00'
__ __   b'}\x03\x00|\x02\x00j\x00\x00t\x01\x00t\x02\x00|\x03\x00\x83\x01\x00d'
  __    b'\x10