System Hacking - Qualification

2023. 7. 1. 11:41·Wargame/H4C
728x90
반응형

1. intro

2. code 및 분석

2.1.  code

int __cdecl main(int argc, const char **argv, const char **envp)
{
  char s[48]; // [rsp+0h] [rbp-30h] BYREF

  init(argc, argv, envp);
  memset(s, 0, 0x28uLL);
  puts("Do you know pwnable?");
  read(0, s, 0x40uLL);
  return 0;
}

2.2. 분석

간단한 buffer overflow 문제이다.

 

3. 취약점 확인 및 공격 준비

3.1. 취약점

buffer overflow

3.2. 공격 준비

숨겨진 함수로 shell을 실행해주는 win 함수가 있다.

걍 이를 여러번 던지면 됨.

728x90
반응형
저작자표시 비영리 변경금지 (새창열림)

'Wargame > H4C' 카테고리의 다른 글

System Hacking - Simple_VM  (0) 2023.07.01
System Hacking - Notepad  (0) 2023.07.01
System Hacking - format_pistol  (0) 2023.07.01
System Hacking - apple pie  (0) 2023.07.01
System Hacking - bof  (0) 2023.07.01
'Wargame/H4C' 카테고리의 다른 글
  • System Hacking - Notepad
  • System Hacking - format_pistol
  • System Hacking - apple pie
  • System Hacking - bof
wyv3rn
wyv3rn
아저씨의 흔한 취미. wyv3rn#1249
  • wyv3rn
    think storage
    wyv3rn
  • 전체
    오늘
    어제
    • 분류 전체보기 (502)
      • To do list (7)
        • Doing (1)
        • Complete (6)
      • Diary (35)
      • Tips & theory (73)
      • Kernel Exploit (27)
        • Theory (15)
        • Exercise (5)
      • File Structure (6)
      • Wargame (313)
        • pwn.college (34)
        • Dreamhack (148)
        • pwnable.kr (15)
        • Lord of Sqlinjection (3)
        • Cryptohack (20)
        • Root me (27)
        • CodeEngn (4)
        • Exploit Education (22)
        • ROP Emporium (8)
        • H4C (10)
        • Hackerchool (22)
      • CTF (41)
        • Solved (39)
        • Unsolved (2)
      • Script (0)
      • RubiyaLap (0)
  • 블로그 메뉴

    • 홈
    • 방명록
  • 링크

  • 공지사항

    • PWN wargame 모음 (및 느낀점)
    • 비공개 글들에 대해.
    • 뭐라도 하나 얻어가시길...
  • 인기 글

  • 태그

    exploit education
    Buffer Overflow
    _IO_FILE
    RTL
    pwnable.kr
    root-me
    BOF
    CANARY
    docker
    lob
    tcache
    hackerschool
    cryptohack
    ROOT ME
    phoenix
    32bit
    x64
    x86
    heap
    dreamhack
    Format String Bug
    64bit
    la ctf
    rop
    FSB
    root
    libc
    Me
    pwntools
    vtable
  • 최근 댓글

  • 최근 글

  • 250x250
    반응형
  • hELLO· Designed By정상우.v4.10.3
wyv3rn
System Hacking - Qualification
상단으로

티스토리툴바