Views 7194 Votes 0 Comment 0
Atachment
Attachment '1'
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
로그 파일과 같은 특정 파일의 최근 액세스 시간 정보를 맘대로 수정해서 해킹(공격)을 탐지하게 어렵게 할 수 있음 ㅋㅋ

inode 정보 수정하는 내용을 주로 설명함~
아래는 헤더파일과 대충의 내용~

/*
* 프로그램 : inodehack (inode의 값을 수정하여 ATIME, MTIME, CTIME 변경)
* 설치방법 : make all
* 실행방법 : ./inodehack [filename1] [filename2] ...
* 날짜입력 : yyyy-mm-dd hh:mm:ss
*/

/*
* Header file
*/
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>
#include<utime.h>
#include<sys/stat.h>
#include<string.h>
#include<time.h>
#include<sys/time.h>

#define MAX_BUF_SIZE 64

/* file 의 정보를 읽어서 atime, mtime, ctime 을 t[] 배열에 반환 */
void get_info(char *file, struct stat *st, time_t *t);

/* 실행 시 입력받은 문자열을 timeval 구조체에 입력하여 반환 */
struct timeval str2timeval(char *s);

/* atime, mtime, ctime 을 수정, flag를 두어 어떤 time을 수정할 것인지 판단 */
void set_amc(const char *file, struct timeval *set, struct stat st, unsigned char flag);

?

List of Articles
No. Category Subject Author Date Views
85 Develop [android] 레이아웃 사이즈 변경 (동적; programmatically) hooni 2016.11.07 1486
84 Develop [android] 딜레이를 구현하기 위한 꼼수 hooni 2016.11.24 940
83 Develop [android] 디바이스(시뮬레이터) hosts 파일 수정하기 hooni 2013.04.23 31077
82 Develop [android] 단일 Thread 환경의 안드로이드에서 Handler를 사용 file hooni 2013.04.23 26494
81 Develop [android] 개발 환경 세팅 따라하기 ㅋㅋ file hooni 2013.04.23 40403
80 Develop [android] 간단한 SQLIite 예제 hooni 2017.06.14 1334
79 Develop [android] 가속도 센서를 이용한 흔듦(Shake) 감지 file hooni 2014.11.04 1898
78 Develop [android] [번역] 안드로이드 Android Cloud to Device Messaging(C2DM) hooni 2013.04.23 20425
77 PPT [android] XML파서(XMLParser)의 종류와 성능 비교에 대한 발표 자료 file hooni 2013.04.23 75643
76 Develop [android] SurfaceView를 이용한 애니메이션 ㅎㅎ file hooni 2013.04.23 57711
75 Develop [android] SQLiteOpenHelper를 이용한 DBManager hooni 2017.06.14 2076
74 Develop [android] N-Puzzle 게임 file hooni 2015.07.09 869
73 Develop [android] ListView+ArrayAdapter 테스트 hooni 2013.04.23 43901
72 Develop [android] keytool을 사용하여 키스토어 생성 hooni 2013.04.23 69515
71 Develop [android] How can I place app icon on launcher home screen? hooni 2016.11.15 1267
70 Develop [android] GCM 사용하기 1 (GCM 서비스 신청하기) file hooni 2013.07.06 51356
Board Pagination Prev 1 ... 67 68 69 70 71 74 Next
/ 74