Netfilter를 통한 html 소스 보기
패킷에 웹페이지 html 소스를 보려고하는데 출력 결과
<소스코드>if(iph->protocol == IPPROTO_TCP && source == http) {
data = (char *)tcph + sizeof(*tcph);
printk("tcp 데이터 : %s\n",data);
printk("-----------------------------------------------------"); }
dmesg 를 쳐본 결과
[81040.500855] -----------------------------------------------------tcp 데이터 : \xffffffb9PRN\xffffffcc(\xffffffa3\xffffffa5"2\xffffff98\xffffffa6T\xfffffff2'j5\xffffffb5\xffffffd6:{\xfffffffc\xffffffd49(\xffffffb5 (\xffffffb5\xffffff99Pߥ\xffffffb0\P\xffffff8eb#\xffffff97\xffffffbd\xffffffecnw\xffffff9euET\xffffff9d\xffffff901\xffffffd5\xffffffca;!\xffffff93\xffffffba땼2Q\xffffffac(\xfffffff9n\xffffffcc\xffffffe4\xffffffc1\xfffffffcG'\xffffffa5\xfffffffa\xffffffa2b,\xffffffdaW\xffffffabW\xffffffc4>D)\xffffff88!*\xffffffc4ja\xffffff93\xffffff82l,\0\xffffffe0U\xfffffff0\xffffffe0\xffffff95%\xffffffda\xffffffc26\xffffffa5\xffffffcch@\xffffff9c\xffffff97\xfffffff7\xfffffff4\xffffff861i1=$\xffffffe9\xffffffc8D\xffffff8b\xffffffc7(\xffffff9f\xffffff8d\xffffffc2\xffffffe2\xffffff91#v\xfffffff9\xffffffca_E\xffffffb9 |\xffffffa0N\\xffffffac\xfffffff6\xffffff84\xffffffca\xffffffd5\xffffffecY\xffffffb9\xffffffff/\xffffffc3\xfffffffd\xffffffffW\xffffffb4?\xffffff9d\xffffffed?w$[.^\xffffffac\xffffffd21u\\xffffff92\xffffffaehz\xffffffd5x\xffffffb6x\xffffffae\xffffffaa⚧Ir\xffffffc5\xfffffff9\xffffffdar\xffffffafԅ\xffffff8e\xffffffb4#\xffffff86\xffffffdd\xffffff90D8"8\xffffffd5b\xffffffe7m$\xffffff83z(\xffffffeaػ\xffffffd3\xffffffb3j\xffffffe5\xffffff8f(Nz1\xfffffffa1V\xffffff96k\xfffffffa\xffffffd9
=ē|\xffffffc4;\xffffffad\\xffffffd0\xffffffc6t\xffffffb9\xffffff92\xffffffef\xffffff90z\xffffff92C=)\xffffff88z\xffffff92\xffffff9fz\xffffffa3S\xffffff8b\xffffffc5
tcp data 안에 html 소스가 업는건가요;..어떻게 접근을해야할지 막막합니다...
댓글 달기