728x90 context 썸네일형 리스트형 [android] Toast 메시지 -Context 일단 토스트 메시지는 종종 화면 하단에 떴다가 사라지는 메시지이다. 토스트 메시지은 커스텀이 가능하다고 한다. 사용법 Toast.makeText(Context context, CharSequence text, int duration).show(); 첫 번째 인자의 conetxt에는 this, getActivityContext(), [Activitiy Class Name].this 등 많이 사용할 수 있다. Android의 Context에 대해서는 여기서 확인해보면 된다. 그리고 맨 아래쪽에 생각을 정리해뒀다. 두 번째 인자 text는 토스트 메시지에 띄울 내용이다. 마지막 인자 duration은 토스트 메시지가 띄워져있을 시간이다. Toast.LENGTH_LONG과 Toast.LENGTH_SHORT는 T.. 더보기 [pwnable.kr Toddler's Bottle] asm write up asm을 풀어보겠습니다! shellcode를 작성하라고 되어있네요..! 일단 접속을 해봅니다! readme를 읽어보니 원격 접속으로 문제를 풀도록 되어있습니다. 플래그 파일은 되게 길어보이네요..! 소스코드는 다음과 같습니다. #include #include #include #include #include #include #include #include #define LENGTH 128 void sandbox(){ scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_KILL); if (ctx == NULL) { printf("seccomp error\n"); exit(0); } seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), 0).. 더보기 이전 1 다음