Views 7193 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
389 Develop 참고하고 지울 자료.. 집에서 바야지.. ㅋㅋ file hooni 2013.04.23 12123
388 Database [oracle] SQL문 실행 방법 3가지 file hooni 2013.12.19 12123
387 Database [mysql] DB->Text, Text->DB 변환 hooni 2003.04.23 12129
386 Develop SVN 명령어 (SVN command) hooni 2014.02.28 12139
385 Develop [c] 문자열 자르는 함수(strtok) 예제 hooni 2013.04.23 12176
384 PPT [doc] 정보보호학술대회 논문지 ㅋㅋ file hooni 2013.04.23 12178
383 System/OS [linux] 파일내 문자열 찾아 바꾸기 hooni 2013.04.23 12195
382 Develop [php] 하루 전 날짜 쉽게 구하기. hooni 2013.12.25 12200
381 System/OS [linux] iconv를 이용하여 euc-kr 문서를 utf-8로 대량으로 변환하기 file hooni 2014.01.09 12219
380 Develop [c++] 자료구조(링크리스트,스택,큐)와 후위 표기 계산기 샘플 ㅋㅋ 4 file hooni 2013.04.23 12318
379 System/OS [mac] Charlesproxy 간단한 설정 내용~ hooni 2013.11.12 12325
378 Develop [api] 인스타그램에서 최신 이미지 가져오기 (Using Instagram API) 20 file hooni 2018.04.05 12344
377 System/OS [linux] X환경 GNOME에서 KDE로 바꾸는 법.. hooni 2013.04.23 12365
376 System/OS [linux] root도 삭제하지 못하는 파일 속성 hooni 2003.04.23 12412
375 System/OS [linux] DNS(Domain Name System) 설치, 설정 hooni 2003.04.23 12438
374 System/OS [sql] alter table 쿼리 예제 hooni 2003.04.23 12459
Board Pagination Prev 1 ... 48 49 50 51 52 ... 74 Next
/ 74