# Enchanted weights

This was just a warmup misc, we are provided with a eldorian_artifact.pth, just load it up with pytorch, have a look at the weights

import torch
model = torch.load('eldorian_artifact.pth')
model['hidden.weight']
tensor([[72., 0., 0., ..., 0., 0., 0.],
[ 0., 84., 0., ..., 0., 0., 0.],
[ 0., 0., 66., ..., 0., 0., 0.],
...,
[ 0., 0., 0., ..., 95., 0., 0.],
[ 0., 0., 0., ..., 0., 95., 0.],
[ 0., 0., 0., ..., 0., 0., 95.]])

there seems to be ascii caracters in all the diagonal, so I just try to print all the nonzeros

model['hidden.weight']
for elem in model['hidden.weight']:
for e in elem:
if e.item() > 0:
val = int(e.item())
print(chr(val), end='')
HTB{Cry5t4l_RuN3s_0f_Eld0r1a}___________
Next: Eldoria Gate

CyberApocalypse 2025 Series

Comments
My avatar

Thanks for reading my blog post! Feel free to check out my other posts or contact me via the social links in the footer.