본문 바로가기
반응형

메모.10

Frida 사용 시 주의 사항. frida server와 host간의 버전을 맞춰야 한다. android 4.2.2(SDK 12)는 frida 최신 버전으로 되지 않는다. - SDK12는 frida 12.4.7 버전에서 사용이 가능하다. frida 12.4.7은 python 3.7에서 실행이 가능하다. 하지만 Mac OS(M2)의 최소 버전은 3.8이다.. frida 12.4.7을 3.8에서 실행하면 오류가 나온다. conda를 이용하여 강제로 3.7을 설치해야 한다. ## create empty environment conda create -n [name] ## activate conda activate [name] ## use x86_64 arch conda config --env --set subdir osx-64 ## insta.. 2023. 3. 14.
Content-Type header [application... #ElasticSearch 8.3.3 >curl -X PUT "localhost:9200/user/_doc/1?pretty" -H 'Content-Type:application/json' -d '{"username":"nanglam"}' { "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported", "status" : 406 } 후하. curl: (6) Could not resolve host: application 까지 해결하니깐 Content-Type header ... 에러가 나온다.. 구글링 결과 -H 'Content-Type:application/json'을 옵션에 추가하면 저 Content-Type header ... 에러가 안나온다고 .. 2022. 8. 9.
curl: (6) Could not resolve host: application #ElasticSearch 8.3.3 >curl -X PUT "localhost:9200/user/_doc/1?pretty" -H 'Content-Type: application/json' -d'{"username":"nanglam"}' { "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported", "status" : 406 } curl: (6) Could not resolve host: application -H 'Content-Type: application/json'을 추가하고 실행하면 curl: (6) Could not resolve host: application 오류가 나온다. >curl -X PUT "localhost:9200/user.. 2022. 8. 8.
curl: (60) schannel: SEC_E_UNTRUSTED_ROOT #ElasticSearch 8.3.3 >curl http://localhost:9200 curl: (52) Empty reply from server [@timestamp][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [USER] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:59661} 해당 오류는 접속 할 때 HTTP를 사용해서 발생하므로 https를 사용하면 해결 할 줄 알았다. 그런데.. >curl https://localhost:9200 curl: (60) schannel.. 2022. 8. 7.
curl: (52) Empty reply from server #ElasticSearch 8.3.3 Elasticsearch를 윈도우에서 다운로드하고, ElasticSearch 8.3.3을 실행시켰다. 그 후 curl 명령을 날리면 다음과 같은 에러가 나타난다. >curl http://localhost:9200 curl: (52) Empty reply from server [@timestamp][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [USER] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:59661} https://stackoverf.. 2022. 8. 6.
C언어 문자 입력 받을 시 주의사항 #문자 인식 못함, 문자 오류 getchar, scanf("%c")는 흔히 문자를 입력 받을 때 사용한다. 하지만, 처음 사용하는 경우 getchar, scanf("%c")가 정확히 '무엇을 받아오는지' 모르기 때문에 오류가 생기기도 한다. 아래는 흔하게 오류를 발생하는 코드다. #include int main() { char a, b; a = getchar(); b = getchar(); printf("%c %c", a, b); return 0; } 입력 > a 출력 > a 실행을 하고 a에 입력을 하면 바로 printf가 실행되며 종료된다. scanf("%c")도 위와 같이 a 입력 후 printf가 실행된다. #include int main() { char a, b; scanf("%c", &a); scanf("%c", &b); .. 2022. 7. 30.
Visual Studio Code 한글 깨짐 해결 #VSCode VSCode를 이용하여 코딩을 하고 있었는데. 아래와 같이 한글이 깨진다. VSCode는 기본적으로 UTF-8 인코딩 방식을 사용중인데, 설정을 한글 코드(EUC-KR)로 설정하면 된다. UTF-8부분을 클릭하면 인코딩하여 다시 열기가 있다. EUC-KR로 설정하면 된다. 그러면 코드쪽 한글이 깨지게 되는데, 코드에 커서를 올려두고 ctrl+z를 입력하면 돌아온다. 다시 컴파일하고 실행하면 정상적으로 실행된다. 위의 방법은 파일마다 설정해줘야 하는 불편함이 있다. 아래는 윈도우에서 자체적으로 UTF-8을 지원하게 하는 방식이다. 윈도우 키를 누르고 지역을 검색하면 국가 또는 지역이 있다. 관리자 옵션에서 시스템 로캘? 변경을 클릭한다. Beta: 세계 언어 지원을 위해 Unicode UTF-8 사용을 체.. 2022. 7. 12.
VMware workstation 15 블루스크린 해결 #System Service Exception VMware workstation 15를 설치하고 이미지 로드했더니 블루스크린이 떳다. 오류명은 System Service Exception이고, VMware 실행까지는 괜찮지만 이미지 로드하면 블루스크린이 나왔다. 백신도 다 삭제하고, 포맷도 진행했었는데 별 소용이 없었다.. 구글링을 해보니깐 VMware workstation 16으로 설치하면 블루스크린이 안뜬다는 말이 있었다. 어떤 차이인지 모르겠지만, VMware workstation 16부터는 블루 스크린이 안뜨는거 같다. 참고 사이트. https://quasarzone.com/bbs/qf_sw/views/69486 https://quasarzone.com/bbs/qf_sw/views/30986 https://witch49.tistory.com/.. 2022. 7. 11.
Windows 11 Git 설치 #GitHub https://git-scm.com/ Git git-scm.com git-scm에서 Download for Windows를 누르면 다운로드 페이지로 이동할 수 있다. 원하는 프로그램으로 설치하면 된다. * 아래부터는 64-bit Git for Windows Setup. 파일로 설치했다. Next를 클릭한다. Git의 설치 경로 지정 원하는 옵션 선택 * Addtional icons - On the Desktop 바탕화면에 아이콘 추가 * Windows Explorer integration - Git Bash Here : Git Bash 연결 * Windows Explorer integration - Git GUI Here : Git GUI 연결 * Git LFS(Large File Support) : 용.. 2022. 7. 10.
Visual Studio Code C/C++ 설치 #VSCode Visual Studio Code를 설치한다. https://code.visualstudio.com/ Visual Studio Code - Code Editing. Redefined Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. code.visualstudio.com Visual Studio Code 실행 후 확장프로그램에서 C/C++을 검색하여 설치한다. Visua.. 2022. 7. 9.
반응형