텔레그램 chatid확인
# Operation System/Windows2020. 1. 14. 14:34텔레그램 chatid확인

웹브라우저에서 아래 링크로 확인가능https://api.telegram.org/bot[botID]/getUpdates

리눅스 원격 SSH접속시 텔레그램(telegram) 알람
# Operation System/Linux2019. 12. 18. 10:42리눅스 원격 SSH접속시 텔레그램(telegram) 알람

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계정 상태 확인
# Script/Powershell2019. 8. 21. 10:20[파워쉘]Guest계정 상태 확인

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
# Storage2019. 8. 13. 17:16[NAS]시놀로지(헤놀로지) 알림 텔레그램 PUSH

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

[파워쉘]윈도우 계정 생성 텔레그램 알람
# Script/Powershell2019. 2. 16. 21:56[파워쉘]윈도우 계정 생성 텔레그램 알람

# create_new_user_push.ps1 생성 $events=Get-WinEvent -FilterHashtable @ -MaxEvents 1 foreach($Event in $Events){ $eventXMLs = [xml]$Event.ToXml() foreach($eventXML in $eventXMLs){ $logs = New-Object psobject -Property @{ newUser = $eventXML.Event.Eventdata.Data[0].'#text' Server = $eventXML.Event.Eventdata.Data[1].'#text' createuser = $eventXML.Event.Eventdata.Data[4].'#text' } } } $token = "#####..

image