# cat grid.pub
# openssl rsa -pubin -inform PEM -text -noout < grid.pub | grep '('
# ipython
: import gmpy
: message = 2**1024
: modulus = gmpy.mpz(2**4096)
: cube_root = modulus.root(3)[0]
: if message < cube_root:
print "Go!"
# cat netlib.py
# cat smartgrid.py
# ./smartgrid.py 10.22.x.1 21721 tcp
References
http://h4des.org/blog/index.php?/archives/339-rwthCTF-2013-smartgrid-write-up.html
No comments:
Post a Comment