Contents

Views 7194 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
585 Develop [ios] 소소한 팁 (Rect,Point,Path,URL 등) hooni 2013.08.08 29457
584 Develop [ios] 스크린 캡쳐 (전원버튼 + 홈버튼) 호출 알아내기 hooni 2014.11.19 1556
583 Develop [ios] 스터디 자료 (from 종길M) secret hooni 2013.06.04 0
582 Develop [iOS] 시뮬레이터에 푸시 알림을 보내는 방법 file hooni 2021.10.13 1826
581 Develop [ios] 아이폰 GPS 사용하기 hooni 2014.05.24 3956
580 Etc [ios] 아이폰 개발 따라하기 ㅋㅋㅋ hooni 2013.04.23 23304
579 Develop [ios] 아이폰 개발 총정리.. file hooni 2013.04.23 23865
578 Develop [ios] 아이폰 앱 이름 및 버전 정보 hooni 2015.03.24 857
577 Develop [ios] 아이폰에서 진동(Vibrate) 기능 추가하기 hooni 2014.04.18 3464
576 Develop [ios] 아이폰용 앱 오픈 소스들 hooni 2013.04.23 467085
575 Develop [ios] 애플 앱스토어 IDFA 리뷰 정책 변경 안내 file hooni 2014.05.07 4187
574 Develop [ios] 앱 딜리게이트 얻어오기. (AppDelegate) hooni 2014.05.10 3348
Board Pagination Prev 1 ... 45 46 47 48 49 50 51 52 53 54 ... 98 Next
/ 98