원본 : https://blog.0xbadc0de.be/archives/67 소스는 따로 올리지 않았기 때문에 원본들어가서 받으면 됩니다.---------------------------------------------------------------------------------------------------------------------------소개 휴일동안, C++로 완전히 코딩된 프로그램을 리버싱하고 분석하는 시간을 가졌다. 오로지 IDA만을 정보 출처로 사용하여 C++ 코드 원형을 심각하게 연구한건 이것이 처음이다. 다음은 흥미있는 함수 내부를 분석하기 시작했을 때, Hex-rays로부터 얻은 샘플이다.v81 = 9;v63 = *(_DWORD *)(v62 + 88);if ( v63 ){ ..
보호되어 있는 글입니다.
보호되어 있는 글입니다.
필요사항python 설치(2.7로만 해봤음)pip 설치construct- 사용 방법 : import construct- 설치 방법 : pip install construct- 페이로드용 템플릿 생성에 유용함(https://www.exploit-db.com/exploits/41993/) flask(https://pypi.org/project/Flask/)- 사용 방법 : from flask import Flask- 설치 방법 : pip install -U Flask- HTTPS 사용 : https://blog.miguelgrinberg.com/post/running-your-flask-application-over-https - pip install pyopenssl 필요 - openssl로 인증서랑 키 ..
Windows Python 환경 변수 등록내 PC - 시스템 속성 클릭오른쪽의 시스템 속성 클릭고급 시스템 설정 클릭고급 - 환경 변수 클릭시스템 변수 - Path를 선택 후, 편집 클릭'C:\Python27' 추가적용 및 확인 pip 설치pip 설치(get-pip.py, 마우스 오른쪽 클릭 - 다른 이름으로 링크 저장 - 저장)CMD를 켜고 get-pip.py 실행대기'C:\Python27\Script' 환경 변수 등록적용 및 확인 참고 : https://github.com/BurntSushi/nfldb/wiki/Python-&-pip-Windows-installation
보호되어 있는 글입니다.
소스코드123456789101112131415161718192021222324252627282930#include #include #include #define BUF_SIZE 512 int main() { char fdata[BUF_SIZE]; ifstream ifs("./test.txt"); if(ifs.is_open()) { // 파일 열기 확인 while (!ifs.eof()) { // 파일 끝 확인 memset(fdata, 0, BUF_SIZE); ifs.getline(fdata, BUF_SIZE); // 파일에서 1줄 읽어들임 regex reg("^(\\w+?): (\\w+)"); // 정규식 패턴 string fdata_str = fdata; smatch m; bool ismatched = ..
보호되어 있는 글입니다.
소스 코드1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768# -*- coding: utf8 -*-import re, os, sys debug = 0 def Check_Main_Activity(activity): code = activity[1] if debug: print activity exp = re.compile(r"[\s]+([\s\w\"\/\=\-\.\:]+?)\n") intent_filter = re.findall(exp, code) if not code: return 0 for tag in intent_filter:..
Smali 코드 분석123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140.class public Lcom/example/tribal/filereader/MainActivity;.super Landroid/s..