CMS

WordPress, XE DB 주소 변경

1. 개요 WordPress, XE에서 DB 주소 변경시 적용하는 방법에 대해서 알아본다.   2-1. WordPress sudo vi ./wp-config.php /** MySQL hostname */ #define(‘DB_HOST’, ‘localhost’); define(‘DB_HOST’, ‘DB URL:DB Port’);   2-2. XE sudo vi ./files/config/db.config.php ; master_db, slave_db 모두 수정 $db_info = (object)array ( ‘master_db’ => array ( ‘db_type’ => ‘mysqli’, ‘db_port’ => ‘DB Port’, ‘db_hostname’ => […]

Continue Reading
Tools

Capture network packet

– Wiershark Official Homepage : https://www.wireshark.org/ How to Install : https://www.wireshark.org/docs/wsug_html_chunked/ChBuildInstallUnixInstallBins.html#_installing_from_deb_8217_s_under_debian_ubuntu_and_other_debian_derivatives https://www.wireshark.org/docs/wsug_html_chunked/ChBuildInstallOSXInstall.html   – Network Miner Official Homepage : http://www.netresec.com/?page=NetworkMiner How to Install : https://www.netresec.com/?page=Blog&month=2014-02&post=HowTo-install-NetworkMiner-in-Ubuntu-Fedora-and-Arch-Linux

Continue Reading
Tools

John the Ripper

1. 개요 비밀번호 크랙 프로그램   2. 공식 홈페이지 http://www.openwall.com/john/ 공식 홈페이지에 가면 Pro, official, community-enhanced 3가지 버전이 있는데 community-enhanced 사용을 추천.   3. 설치 cd ~ wget http://www.openwall.com/john/j/john-1.8.0-jumbo-1.tar.gz tar zxf john-1.8.0-jumbo-1.tar.gz cd john-1.8.0-jumbo-1/src ./configure make   4. Example> zip 파일 비밀번호 크랙 ~/john-1.8.0-jumbo-1/run/zip2john ~/wk3Assignment1.zip > zip.hash ~/john-1.8.0-jumbo-1/run/john –incremental zip.hash

Continue Reading
C

ctags

1. ctags란? Ctags is a programming tool that generates an index (or tag) file of names found in source and header files of various programming languages. 소스 파일 분석시 함수, 변수 따라갈 때 사용   2. 설치 방법 [ubuntu] apt-get install ctags   3. 사용 방법 ctags -R ; 소스파일을 자동으로 분석해서 함수, 변수를 tags […]

Continue Reading
C

printf color

1. 개요 printf로 출력시 색상 적용   2. 적용 화면   3. Source Code #include <stdio.h> int main(){ printf(“00 : \x1b[00m color \x1b[0m\t”); printf(“01 : \x1b[01m color \x1b[0m\t”); printf(“02 : \x1b[02m color \x1b[0m\t”); printf(“03 : \x1b[03m color \x1b[0m\t”); printf(“04 : \x1b[04m color \x1b[0m\t”); printf(“05 : \x1b[05m color \x1b[0m\t”); printf(“06 : \x1b[06m color \x1b[0m\t”); printf(“07 : […]

Continue Reading
C

지하철 프로그램

1. 내용 1-1. 처음에 프로그램을 실행하면 메뉴가 나옴 1. 전철 노선도 보기 2. 환승역 조회 3. 전철역 조회 4. 전철 경로 안내 1-2. 사용자로부터 입력을 받으면 아래의 내용 수행 1. 전철 노선도 보기 입력 : N 노선 출력 : N 노선의 역 전체 출력 2. 환승역 조회 입력 : N 노선 출력 : N 노선의 […]

Continue Reading
Back To Top