(concrete_target)
return concrete_target.execute_shellcode(read_fs0_x64, exfiltration_reg)
Injects a small shellcode to leak the fs segment register address. In Linux x64 this address is pointed by fs[0]
        :param concrete_target: ConcreteTarget which will be used to get the fs register address
        :return: fs register address
        :rtype string
Injects a small shellcode to leak the fs segment register address. In Linux x64 this address is pointed by fs[0]
        :param concrete_target: ConcreteTarget which will be used to get the fs register address
        :return: fs register address
        :rtype string
Injects a small shellcode to leak the fs segment register address . In Linux x64 this address is pointed by fs [ 0 ] : param concrete_target : ConcreteTarget which will be used to get the fs register address : return : fs register address : rtype string
def _read_fs_register_x64(concrete_target):
        '''
        Injects a small shellcode to leak the fs segment register address. In Linux x64 this address is pointed by fs[0]
        :param concrete_target: ConcreteTarget which will be used to get the fs register address
        :return: fs register address
        :rtype string
        '''
        # register used to read the value of the segment register
        exfiltration_reg = "rax"
        # instruction to inject for reading the value at segment value = offset
        read_fs0_x64 = b"\x64\x48\x8B\x04\x25\x00\x00\x00\x00\x90\x90\x90\x90"  # mov rax, fs:[0]

        return concrete_target.execute_shellcode(read_fs0_x64, exfiltration_reg)
def _read_fs_register_x64 ( concrete_target ) : # register used to read the value of the segment register exfiltration_reg = "rax" # instruction to inject for reading the value at segment value = offset read_fs0_x64 = b"\x64\x48\x8B\x04\x25\x00\x00\x00\x00\x90\x90\x90\x90" # mov rax, fs:[0] return concrete_target . execute_shellcode ( read_fs0_x64 , exfiltration_reg )