[파워쉘]curl이용하여 smtp발송
# Script/Powershell2025. 5. 23. 17:57[파워쉘]curl이용하여 smtp발송

선행Set-ExecutionPolicy RemoteSigned -Scope CurrentUser sendmail.ps1curl.exe --url "smtp://[smtp호스트명]:[포트 예25]" ` --mail-from "[발송자메일주소]" ` --mail-rcpt "[수신자메일주소]" ` --user "[발송자메일주소]:[패스워드]" ` -T mail.txt 반드시 curl.exe 입력!!!mail.txtFrom: [발송자메일주소]To: [수신자메일주소]Subject: curl SMTP testThis is a test email sent via curl on Windows.

[보안]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. 파일을 생성했으면 ..

image