전체 글
-
ctagstool 2017. 1. 31. 15:03
linux에서 source code분석하기 좋은 툴 설치>sudo apt-get install ctags mach>brew install ctags Xcode에 따라온 FreeBSD ctags가 너무 구닥다리라서, brew를 통해 새로 설치하는 편이 낫다. 설치를 끝내고 ctags –version을 하는데도 옛날 위치를 가르킴. ~/.profile에 alias를 추가해주어야 한다. ctags생성 ctags -R을 사용하여, 현재 및 하위 모든 디렉토리를 tag로 생성한다. 그리고 tags가 만들어진 directory에서 vim을 켜야 ctags를 사용할 수 있다. 다른 방법으로는 .vimrc에 set tags=[ctags path]를 설정해주면 된다. 자주 사용하는 command ctrl+] : 해당 함..
-
python 코딩Programming 2017. 1. 31. 15:00
python http 코딩 1. request보내기import requestsr = requests.get('https://api.github.com/events')r = requests.post('http://httpbin.org/post', data = {'key':'value'}) 2. cookie값 추가import requestsreq_cookies = dict(style=cookie)r = requests.get('https://api.github.com/events', cookies = request_cookies) 3. 웹으로부터 파일 받아오기import urllib testfile = urllib.URLopener()testfile.retrieve("http://randomsite.com/..
-
pyvextool 2017. 1. 31. 14:55
virgrind의 vex를 python으로 binding함. VEX보다 활발히 개발되고 있으며 angr에서 사용하는 IR이다. 설치 git site:https://github.com/angr/vex You need to install the development package as well. libffi-dev on Debian/Ubuntu, libffi-devel on Redhat/Centos/Fedora. pyvex에서 하는일. IRSB를 python ojbect0에서 c로 바꿔주는 과정을 거친다. pyvex에서 제공하는 api를 사용하여 vex를 사용할 수 있다, VEX IR https://github.com/angr/vexVEX IR을 확인하고 싶으면, 위의 에서 참조하면 된다.
-
triton dependencytool 2017. 1. 18. 15:56
https://github.com/JonathanSalwan/Triton 설치해야할 library는 다음과 같다. z3: https://github.com/Z3Prover/z3.gitboost: https://sourceforge.net/projects/boost/files/boost/1.63.0/capstone: http://www.capstone-engine.org/download.htmlpython: https://www.python.org/ boost$sudo apt-get install libboost-all-dev libz3 https://github.com/Z3Prover/z3 에 linux, windows에서 compile하는 방법 잘 설명되어 있다. libcapston$sudo apt-g..
-
sublime latextool 2016. 11. 4. 11:38
ctrl+shift+p 를 누르고, install package Control 을 설치한다.ctrl+shift+p 를 누르고 “install ” 입력하고 엔터 -> latextools 입력하고 선택하여 설치한다.setting user에서 아래와 같이 경로만 지정해주면 됨."windows": {"distro" : "texlive",// Command to invoke Sumatra. If blank, "SumatraPDF.exe" is used (it has to be on your PATH)"sumatra": "C:/Program Files/SumatraPDF/SumatraPDF.exe",}
-
api monitoring, API hooking toolwindows system 2016. 6. 14. 22:28
WinAPIOverride http://jacquelin.potier.free.fr/winapioverride32/ source까지 공개한 툴이다. 나는 heap , process등 중요한 시스템관련 API를 후킹했는데, 그러면 실행에 문제가 생긴다. api list를 txt, xlxs로 출력해주는 좋은 툴. SpyStudio-v2뭔지는 모르겠지만, diff와 관련된 기능이 있다. ui는 괜찮아보이기는하다 조금만 쓰다보면 상당히 불편하다. API-monitor 가장 reliable 한 툴. diStormXhttps://github.com/gdabah/distormxVisual studio 2015에서 컴파일하면 된다. 손쉬운 코드로 쉽게 후킹할 수 있다. pydbghttp://pedramamini.com..
-
C++ 문자열 및 파일Programming 2016. 6. 7. 18:03
std:string -> char* std::string str = "string"; char* chr = str;chr = str.c_str(); c++ getline함수 1. 의 cin, 의 ifstream의 멤버 변수char cstr[512];cin.getline(cstr,512);ifstream inf("test.txt"); char cstr[512]; inf.getline(cstr,512); 2. string의 getline함수string str1; string str2; ifstream inf("test.txt");getline(inf,str1); //파일 입출력 getline(cin,str2); //표준 입출력두가지 종류의 getline 이 있음. istream& getline (istrea..