centos5.11에서 텔레그램 감시 설정 걸었었는데 아래와 같이 오류 발생 curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version tlsv1이 문제가되어 발생된듯합니다. openssl 및 curl 버전 업그레이드하면 해결! openssl버전 업그레이드 https://darksharavim.tistory.com/463 centos5 openssl 버전 업그레이드 버전확인 $ openssl version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 $ wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz $ ...
웹브라우저에서 아래 링크로 확인가능https://api.telegram.org/bot[botID]/getUpdates
ssh설정폴더에 /etc/ssh/sshrc 파일생성 후 아래와 같이 작성 (실행권한 주세요~ chmod +x sshrc) #!/bin/bash DESTINATION="텔래그램 채널(대화방) ID" BOTID="텔레그램 봇 ID 입력" remoteip=`w | grep $USER | awk '{print $3}'` HOSTNAME_S=`hostname -s` conntime=$(date +"%Y-%m-%d %H:%M:%S") msg=`echo -e "접속서버 : " $HOSTNAME_S " \n접속IP : " $remoteip "\n접속시간 : "$conntime "\n"$USER"계정이 접속되었습니다!!"` curl -s \ --request POST https://api.telegram.org/bot{..
![[파워쉘]Guest계정 상태 확인](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbZEJFu%2FbtrCiuwuqHg%2FAAAAAAAAAAAAAAAAAAAAAJKWuCRmBf29bLtVcYbuST76FwCCnuQBS3rzxapS7pNh%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DsBJ1h6vEWF7xheiMzlhUVYXpWck%253D)
guest계정은 보안상 비활성화하는게 좋습니다. 아래는 파워쉘로 guest계정이 비활성화되어있는지 상태를 확인하는 스크립트입니다. Get-WmiObject -Class Win32_UserAccount -Filter "LocalAccount='$true' and Name='Guest'"|Select-Object Name,Disabled|Format-Table -AutoSize 참조 : https://social.technet.microsoft.com/Forums/windowsserver/en-US/31eeea8c-e268-4dd0-8a62-4fc44e87f3a2/check-if-a-local-user-account-is-disabled-on-a-remote-computer?forum=winserverman..
![[NAS]시놀로지(헤놀로지) 알림 텔레그램 PUSH](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Feo9QXK%2Fbtsuej3y28X%2FAAAAAAAAAAAAAAAAAAAAACc8Hsz4PWmvvD3AB2QJTi6sEUSchqz7JWFR4rD6F-63%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3D9Fq8KiqXqriZe9CRgrm1GEoV850%253D)
https://api.telegram.org/bot[token]/sendmessage?chat_id=[id]&user=1&pass=2&phone=3&text="hello world" 출처 : https://lamanus.kr/4 https://gabrielkim.tistory.com/entry/Synology-Download-Station%EC%97%90-Telegram-%EC%95%8C%EB%9E%8C-%EC%A0%81%EC%9A%A9%ED%95%98%EA%B8%B0