Contents

조회 수 7193 댓글 0
Atachment
첨부 '1'
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
로그 파일과 같은 특정 파일의 최근 액세스 시간 정보를 맘대로 수정해서 해킹(공격)을 탐지하게 어렵게 할 수 있음 ㅋㅋ

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] 디피-헬만 키교환(Diffie–Hellman key exchange) 샘플 코드.. ㅋㄷ

  2. [mysql] 양력, 음력 DB데이터

  3. [c] 파일(int fd)에서 개행문자 단위로 읽기 by 후리자

  4. [c] 지폰(gphone) 소스.. 수정(암호화)

  5. [c] 암호 알고리즘 소스..

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

  7. [switch] 시스코 카탈리스트(Cisco Catalyst) 2950 미러링 설정

  8. [c] 네트워크 보안 프로그래밍 과제 (Server,Agent,Client)

  9. [php] 탐색기와 같은 다이나믹 트리(xml/xsl 이용)

  10. [js] 스타크래프트(starcraft)..

  11. [js] 툴팁.. 좋은거.. (tooltip)

  12. [web] URL 인코딩 방법.. 테이블.. ㅋㅋ

Board Pagination Prev 1 ... 47 48 49 50 51 52 53 54 55 56 ... 71 Next
/ 71