잡다한 오류

리눅스 AttributeError : 'file' obiect has no attrubute 'buffer'

흰싸라기 2022. 4. 21. 15:15

 

드림핵 시스템해킹 커리큘럼 중 Return Address Overwirte를 수강하다가

아래와 같이 오류가 났다

 

찾아보니 함수가 python3에 존재하는 것같아서

 

커맨드를

(python -c "import sys;sys.stdout.buffer.write(~)";cat)에서

(python3 -c "import sys;sys.stdout.buffer.write(~)";cat)로 실행했더니 오류 없이 실행되었다.