[보안]HTTP/2 취약점(CVE-2023-44487)
# Security2024. 1. 3. 08:21[보안]HTTP/2 취약점(CVE-2023-44487)

진단 특정 서버의 HTTP 버전을 확인하려면 curl 명령을 사용합니다. 이는 특정 서버의 실제 HTTP 프로토콜 버전을 알려줍니다. 다음 스크립트를 사용하십시오. 예: https://redhat.com을 테스트하는 경우 [darksharavim]curl -sl https://redhat.com -o/dev/null -w '%{http_version}\n' 1.1 curl 버전이 낮아 최신버전으로 업그레이드 진행 [darksharavim]wget https://curl.se/download/curl-8.5.0.tar.gz [darksharavim]yum -y install libnghttp2-devel [darksharavim]./configure \ --prefix=/usr/local/curl-8.5...

embed이미지 본문 첨부 메일발송 스크립트
# Script/Bash2023. 2. 16. 09:04embed이미지 본문 첨부 메일발송 스크립트

#!/bin/bash # 이메일 발신자, 수신자, 제목 및 내용 설정 from_email="sender@naver.com" from_pw="password" smtphost="smtp.naver.com" to_email="recipient@example.com" subject="Test email with embedded image" body="This is a test email with an embedded image." boundary="boundary_string" # 이미지 파일 경로 설정 image_path="/path/to/image.png" # 이메일 본문에 이미지를 추가 body_with_image="From: $from_email\r\nTo: $to_email\r\nSubject: $s..

curl이용 imap 및 pop3 접속체크
# E-Mail2022. 9. 23. 15:12curl이용 imap 및 pop3 접속체크

imap check [darksharavim.tistory.com]curl -u "mailid@test.com:password" ₩ imap://mail.test.com/inbox pop3 check [darksharavim.tistory.com]curl -u "mailid@test.com:password" ₩ pop3://mail.test.com/inbox

curl smtp command
# E-Mail2022. 9. 23. 08:45curl smtp command

curl을 이용해서 메일발송. curl 버전 7.20.0 이상에서만 작동합니다. 따라서 이전 버전의 curl을 사용하고 있다면, 업그레이드하여 --mail-from 옵션을 사용할 수 있는지 확인해야 합니다. 사전에 아래처럼 발송할 내용을 파일(mailsample.txt)로 생성. from: to: subject: test mail sorry, this is test mail . 인코딩해서 발송할 경우는 헤더에 아래내용 추가해야 함. from: to: subject: test mail MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain;charset=utf-8 sorry, this is test mail. 파일을 생성했으면 ..

curl command
# Operation System/Linux2022. 9. 21. 08:09curl command

cURL은 FTP, 고퍼(Gopher), HTTP, HTTPS, SCP, LDAP등 다양한 통신규악을 지원하는 명령줄 방식의 데이터 전송도구이다. download/upload 모두 가능하며 HTTP, HTTPS, FTP, LDAP, SCP, TELNET, SMTP, POP3 등 중요 프로토콜을 지원하며 Linux/Unix 계열 및 Windows 등 중요 OS에서 구동된다. curl command line tool and library for transferring data with URLs (since 1998) Time to donate to the curl project? Everything curl is a detailed and totally free book that explains basica..

image