Contents

Views 7193 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);


?

  1. [c] 가변인자 함수(printf와 같은..)

  2. [c] 로또(Lotto) 번호 생성기

  3. [c] 시스템공학 레포트 (pass1, pass2)

  4. [c] 연산자 우선순위.. ㅋㅋ

  5. [c] 문자열 라이브러리 최신버전

  6. [c] 함수 목록과 예제 소스 파일

  7. [c] 시스템 보안 과제.. 시간(amc time) 변경

  8. [c] 네트워크 관련 프로그래밍 (포트스캔 탐지 샘플)

  9. [js] 네이버에서 그림 퍼올 때.. URL Encoding 관련ㅋㅋ

  10. [php] 웹 터미널 & 업로드 소스..

  11. [c] 단기과정[01/08] 배열, 포인터

  12. [c] 단기과정[01/17] 후위연산 스택 계산기..

Board Pagination Prev 1 ... 32 33 34 35 36 37 38 39 40 41 ... 98 Next
/ 98