본문 바로가기

반응형

전체 글

(170)
Android/Error/Configuration 'compile' is obsolete and has been replaced wit 'implementation PROBLEM-오류를 보아 2018년부터 'compile'라는 단어 대신에 'implementation'를 쓰는 듯해 compile을 implementation으로 바꿔주면 해결된다.Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation' and 'androidTestApi'.It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html Configuration 'compile' is obsolete and h..
Android/Tool/Frida 사용법 # Frida -파이썬 기반의 라이브러리 + Command, Native App의 후킹을 통한 분석가능 JS Injection을 이용 대상 : WIndows, macOS, Linux, IOS, Android, and QNX 기반 네이티브 앱 설치 (ubuntu) $ sudo pip install frida 설치 (Windows) python -m pip install frida 디바이스 연결용 frida 에이전트 설치 플랫폼과 비트별 버전 존재 https://github.com/frida/frida/releases android-server-xx.xx.x-android-arm.xz으로 받음 # adb에서 android 버전 체크 # adb shell getprop ro.product.cpu.abi $ w..
Android/ADB SHELL INPUT COMMAND # 커맨드라인 > adb shell input Usage: input [] [...] The sources are: keyboard mouse joystick touchnavigation touchpad trackball dpad stylus gamepad touchscreen The commands and default sources are: text (Default: touchscreen) keyevent [--longpress] ... (Default: keyboard) tap (Default: touchscreen) swipe [duration(ms)] (Default: touchscreen) press (Default: trackball) roll (Default: trackbal..
C++/wide 문자에 대하여 WASTE TIME # 뻘짓의 연속-C 종류의 언어에서 wide문자이고 아닌것에 민감해지는 중요한 경험이였다. 더하여 기본 char형을 지원하는 함수가 있다면 wchar를 지원하는 함수는 반드시 대칭적으로 존재한다는 것도 깨달았다. # w가 붙는다면-wstring, wchar_t , wofstream, wout 등등 wide문자를 사용해야한다면 그에 대한 모든 행동은 다 w종류로 통일 시켜야한다. 그렇게 안하면 엄청난 시간 소모와 고통을 겪는다. (^^7)-예시로 wstring을 string을 출력하는 cout으로 출력하려고 하면, 확장된 문자 셋에 적용 받는 한글이나 기타 언어들은 출력이 되지 않는 것을 볼 수 있다. 아래 예제는 다행히 컴파일 단에서 오류를 확인해 수정이 가능하지만 ofstream으로..
C/strcmp, wcscmp, _mbscmp 차이 STRCMP, WCSCMP, _MBSCMP -strcmp는 인자로 들어온 string1, string2의 서수 비교를 한다.string1이 string2보다 작은 경우 0보다 작은 값string1과 stirng2가 같은 경우 0string1이 string2 보다 큰 경우 0보다 큰 값대소문자를 구분소문자 형식으로 변환한 후 문자열을 비교필수 헤더strcmp : string.hwcscmp : string.h or wchar.h_mbscmp : mbstring.h -wcscmp 와 _mbscmp는 strcmp의 와이드 문자와 멀티바이트 문자 지원 버전임-위 함수 세가지 모두 매개 변수로 들어오는 값의 유효성을 검사하지 않음.-참고 : https://msdn.microsoft.com/ko-kr/library/..
Android/apktool/brut.androlib.AndrolibException: brut.common.BrutException PROBLEM# 오류코드-apktool로 빌드를 할 때 aapt.exe 파일에 대한 환경변수 설정이 되어있지 않아서 발생하는 오류이다.aapt는 SDK의 build-tools\[버전]\ 으로 들어가면 존재한다. 이에 대한 환경변수 설정을 해주면 된다. Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [aapt, p, -F, D:\Archive\Tool\Android\apktool\.\com.wellsrc.speechkeys\dist\com.wellsrc.speechkeys.apk, -0, arsc, -0, arsc, -A, D:\Archive\Tool\Android\ap..
Reversing/Tool/Radare2 OverView RADARE2 FRAMEWORK#설치$ git clone https://github.com/radare/radare2.git$ cd radare2/sys/$ sudo ./install.sh # radare2-UNIX 기반 시스템 환경에서 리버스 엔지니어링에 사용되는 프레임워크, 리버싱과 시스템 해킹을 할때 구분없이 자주 쓰인다.커맨드라인 인터페이스 형식공식 가이드 : https://radare.gitbooks.io/radare2book/content/Radare2 기능 테스트 : RPISEC의 바이너리 취약점 분석 강좌(CCI 4968 - Modern Binary Exploitation)http://security.cs.rpi.edu/courses/binexp-spring2015/github : http..
Programming/Android/Custom Binary(recovery) Blocked by frp lock 해결 ERROR - Odin으로 루팅 시에 FRP Lock때문에 바이너리 다운로드를 못한다. 위 사진과 같은 FAIL! (Auth)와 Complete(Write) operation failed Log가 뜨면서 진행이 되지 않는다.간단하게 설정에서 해제 가능 HOW TO SOLVE - 설정 - 개발자 옵션 - OEM 잠금해제 실행- 다운로드 모드 진입시 FRP LOCK : OFF로 해제된 것을 확인 - 정상적으로 바이너리 업로드 완료

반응형