httpd.conf를 확인해보자. .... # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common # You need to enable mod_logio.c to use %I and %O LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combined..
Port 22 ssh 서버에서 사용할 Listen Port Protocol 2 ssh 서버에서 사용할 openssh 버전, 되도록 버전 2를 사용하도록... LogLevel INFO 로그 레벨을 지정 SyslogFacility AUTH syslog facility 설정 strictModes yes 사용자 홈 디렉터리의 퍼미션 체크 PasswordAuthentication yes 패스워드 인증 사용 AllowUsers root test1 test@1.1.1.1 ssh 접속을 허용할 사용자을 설정, 호스트IP를 같이 입력하면 해당 호스트에서만 계정 접속 가능 DenyUsers test3 test4 ssh 접근을 차단할 사용자 PermitRootLogin no 보안상 no로 설정해 놓는게 좋다. 최조 접근을 ..
1. rename 사용하기 $ rename arg1 arg2 arg3 -arg1 : 바꾸고자하는 문자 -arg2 : 바꾸고자하는 문자를 대체하는 문자 -arg3 : 대상 파일 ex) rename before after berofe* before로 시작하는 파일 이름을 after로 시작하는 파일 이름로 바꾸어 줌 2. find, sed 사용하기 $ find /var -name "*.before*" | sed -e 'p' -e 's/.before/.after/g' | xargs -n 2 mv '/var' 디렉터리에서 'before'라는 문자가 포함된 파일을 찾아 이름을 'after'로 변경해서 파일을 저장해 준다. 기존 파일을 유지할려면 'mv'를 'cp'로 하면 된다. sed에서 첫번째 편집 구문'p'는 ..
1. 우선 Gnome을 설치한다. $ sudo apt-get install gnome-core 2. VNC 서버를 설치한다. $ sudo apt-get install vnc4server 3. VNC 서버 정상 구동여부 확인 및 연관된 스크립트 파일 생성을 위해 VNC 서버를 구동한다. $vncserver 4. 확인 후 VNC 서버를 내린다. $vncserver -kill :1 5. VNC 설정 파일을 수정한다. $ cd ~ $ vi .vnc/xstartup #!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER -->주석 제거 #exec /etc/X11/xinit/xinitrc gnome-session ..
GNS3은 시스코 에뮬레이터이다. 시스코 Catalyst Switch를 실습할 수 없는게 아쉽지만 Router 실습은 실제 장비와 거의 동일하게 적용이 가능하다. 시스코 랩이 있는 사이트를 보면 Frame-relay 기준으로 구성이 되어 있어서 GNS3에서 Frame-realy 구성을 하는 방법을 적어 놓고자 한다. GNS3은 이 글을 쓸 당시 v0.8.4 RC2까지 나와 있지만 Windows 7(64bits)에서 정상적으로 실행이 잘 안되는 관계로 v0.8.3.1 기준으로 설명하고자 한다. 그러나 굳이 버전을 나눌 필요는 없을 것 같기는 하다. GNS3은 Dynagen과 돌일하게 net 파일을 가지고 랩 구성을 한다. GNS3에서는 프로젝트라는 표현을 쓴다. 설정을 Dynagen과 동일하다. 즉, GN..
참고사이트 : http://cciedynamips.wordpress.com/ 1. Ubuntu 12.04 버전을 설치 2. dynamips 사용을 위한 디렉터리 생성 # sudo mkdir /opt/dynamips # sudo chmod -R 755 /opt/dynamips 3. dynagen 파일을 다운로드 http://sourceforge.net/projects/dyna-gen/files/ # cd /opt/dynamips # tar zxvf dynagen-0.11.0.tar.gz 4. dynamips 파일을 다운로드 dynamips-0.2.8-RC3-community-x86.bin (32bits) dynamips-0.2.8-RC3-community-x86_64.bin (64bits) 퍼미션 변경 #..
Mysql은 기본적으로 바이너리 로그를 남긴다.해당 파일은 복구시에도 사용할 수 있다. my.cnf에 보면log-bin=mysql-bin을 주석처리 하지 않는다면 로그를 지속적으로 쌓을 것이다. 기본적으로 data 디렉터리에 쌓이는 것 같다. 필요치 않다면 해당 부분을 주석처리하면 된다. 복구할 때는 mysqlbinlog msyql-bin.000001 > bakcup.sql 형식으로해서 쿼리문으로 복구가 가능하다. 로그를 관리할려면 my.cnf에 아래와 같이 설정하면 된다. binlog_cache_size = 50M # binlog cache 사이즈 max_binlog_size = 500M # bin로그 maximum 사이즈 expire_logs_days = 3 # 로그 만료기간 바이너리 로그 리스트는 ..
참조 : http://www.prasannatech.net/2008/07/socket-programming-tutorial.html 검색하다가 괜찮은 것 같아 블로그에 올려본다. 혹시 의미를 오역할까봐 그냥 원문으로 올린다. Generic Socket Programming tutorial S.Prasanna sprasanna199@gmail.com This is a generic socket programming tutorial which mainly concentrates on how to communicate with two machines using TCP/IP and UDP/IP protocols irrespective of the programming language used to impleme..
- Total
- Today
- Yesterday
- MySQL csv
- tcpdstat
- webhack
- cisco ssh
- capinfos
- dvwa_command
- 리눅스 버전
- megacli
- editcap
- docker
- NX ASLR
- 도커
- tshark
- history timestamp
- dvwa_bruteforce
- pcapng
- bash modification
- oracle 11gr2
- metasploitable3
- docker_dvwa
- ${1##*.}
- bash parameter
- recovery file on linux
- mergecap
- ssl decrypt
- text2pcap
- 윈도우 패스워드 복구
- filesystem check
- dvwa
- excel_aton
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |