Hack4S3cur1ty

[Seccon Beginners 2018][Rev] Simple Auth 본문

CTFs/2018

[Seccon Beginners 2018][Rev] Simple Auth

h4ck4s3cur1ty 2018. 5. 28. 23:24

바이너리를 까보면 간단한 연산을 하는데 angr로 풀면 슥삭이다.



1
2
3
4
5
6
7
8
9
10
11
import angr
 
def main():
    p = angr.Project("simple_auth", load_options={'auto_load_libs': False})
    ex = p.surveyors.Explorer(find=(0x4007DF, ), avoid=(0x400801,))
    ex.run()
 
    return ex.found[0].state.posix.dumps(0).strip('\0\n')
 
if __name__ == '__main__':
    print main()
cs


Comments