Summary
#include <stdio.h>#include <string.h>#include <openssl/bio.h>#include <openssl/err.h>#include <openssl/bn.h>#include <openssl/dh.h>#include <openssl/rand.h>#include <openssl/pem.h> #define IN_FILE “./plain.txt” // plain file#define OUT_FILE “./encrypt.txt” // cipher file unsigned char* readFile(char *file, int *readLen);unsigned char *readFileBio(BIO *fileBIO, int *readLen);unsigned char *addString(unsigned char *destString, int destLen, const unsigned char *addString, int addLen); int main(int argc, char* argv[]){ […]
#include <stdio.h> #include <stdio.h>#include <string.h>#include <openssl/evp.h>#include <openssl/objects.h>#include <openssl/rand.h> int main(int argc, char* argv[]){ int i; // salt bufer length = 8 unsigned char salt[8]; // EVP_CIPHER = Cipher structure const EVP_CIPHER *cipher = NULL; […]
#include <stdio.h>#include <openssl/err.h>#include <openssl/rand.h> int main(int argc, char* argv[]){ int i; int retVal = 0; // 랜덤 수의 길이는 64로 한다. int length = 64; // PRNG에 공급할 seed 생성 RAND_status(); // 생성할 […]
* 역사 psad 소프트웨어 프로젝트는 1999년 가을, 바스티유 개발팀이 바스티유가 경량의 네트워크 침입 탐지 컴포넌트를 제공해야 한다고 결정했을 때 Bastille 리눅스의 일부로 시작했다. 당시 피터 왓킨스는 지금까지도 Bastille 와 함께 제공되는 매우 뛰어난 방화벽 스크립트를 개발 중이었으므로 방화벽 로그가 제공하는 정보에 기반한 IDS 도구를 개발하는 것은 자연스러운 다음 작업이었다. 또 당시 PortSentry(http://sourceforge.net/projects/sentrytools 참조)에는 기본 버리기 […]
* iptables를 이용한 애플리케이션 계층 문자열 매칭 모든 IDS가 가지는 가장 중요한 기능 중 하나는 애플리케이션 계층 데이터에서 악의적인 바이트를 암시라는 바이트 나열을 검색하는 것이다. 그러나 일반적으로 애플리케이션의 구조는 네트워크나 전송 계층 프로토콜보다 훨씬 덜 엄격하게 정의되기 때문에 침입 탐지 시스템은 애플리케이션 계층 데이터를 조사할 때 융통성을 가져야 한다. 네트워크 트래픽에서 애플리케이션 부분 전체에 대해 […]
Recent Comments