본문 바로가기

서브웨이

검색하기
서브웨이
프로필사진 샌드위치메이커

  • 분류 전체보기 (52)
    • Reverse Engineering (25)
      • CodeEngn (17)
      • dreamhack (8)
    • Pwnable (26)
      • pwnable.kr (17)
      • dreamhack (9)
    • 공부 (0)
      • 웹해킹 (0)
    • 이것저것 (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags
  • L18
  • off_by_one_000
  • rev-basic-0
  • sd카드 리더기
  • rev-basic-3
  • L17
  • CodeEngn
  • rev-basic-7
  • L15
  • off_by_one_001
  • rev-basic-1
  • coin1
  • basic_exploitation_001
  • rev-basic-4
  • sint
  • rev-basic-6
  • Basic
  • 드림핵
  • L16
  • 코드엔진 베이직 13
  • 포너블
  • Dreamhack
  • Pwnable
  • RCE
  • rev-basic-5
  • rev-basic-2
  • pwnable.kr
  • basic_exploitation_000
  • out_of_bound
  • 코드엔진 베이직
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록cmd2 (1)

서브웨이

pwnable.kr cmd2 풀이

이 문제또한 cmd1과 같이 우회를 연습하는 문제인 듯 합니다. 일단 봅시다. 일단 소스코드 먼저 봅시다. #include #include int filter(char* cmd){ int r=0; r += strstr(cmd, "=")!=0; r += strstr(cmd, "PATH")!=0; r += strstr(cmd, "export")!=0; r += strstr(cmd, "/")!=0; r += strstr(cmd, "`")!=0; r += strstr(cmd, "flag")!=0; return r; } extern char** environ; void delete_env(){ char** p; for(p=environ; *p; p++)memset(*p, 0, strlen(*p)); } int m..

Pwnable/pwnable.kr 2020. 8. 24. 17:05
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바