วิธี SSH ข้ามเซิฟเวอร์โดยไม่ใส่รหัสผ่าน
ยกตัวอย่างเช่น ssh จากเครื่อง A ไปเครื่อง B โดยไม่ใช้รหัสผ่านในการ ssh @เครื่อง A ssh-keygen -t rsa (มีอะไรขึ้นมาก็กด enter ผ่านไปให้หมด แล้วพิมพ์คำสั..
from https://github.com/vdeville/ssh-login-alert-telegram
apt-get -y install git
cd /opt/ && git clone https://github.com/vdeville/ssh-login-alert-telegram.git
or
mkdir /opt/ssh-login-alert-telegram
cd /opt/ssh-login-alert-telegram
wget --no-check-certificate https://raw.githubusercontent.com/vdeville/ssh-login-alert-telegram/master/alert.sh
wget --no-check-certificate https://raw.githubusercontent.com/vdeville/ssh-login-alert-telegram/master/credentials.config
wget --no-check-certificate https://raw.githubusercontent.com/vdeville/ssh-login-alert-telegram/master/deploy.sh
vim credentials.config
#change USERID=999999999 //my-target profile id chat from @userinfobot
#change KEY="1111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" //key bot api from @botfather
vim alert.sh
#change hostname -I | awk '{print $2}' if print $1 alert ip 127.0.0.1
find USERID with https://t.me/userinfobot
create telegram bot for KEY with https://t.me/BotFather
test api
https://api.telegram.org/bot1111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/sendMessage?chat_id=999999999&text=HelloWorld
deploy && test login ssh for Alert noti
bash deploy.sh
#if show "No zsh detected", yum/apt-get install -y zsh
April 3, 2023
Blog | #Command #Linux #Security
ยกตัวอย่างเช่น ssh จากเครื่อง A ไปเครื่อง B โดยไม่ใช้รหัสผ่านในการ ssh @เครื่อง A ssh-keygen -t rsa (มีอะไรขึ้นมาก็กด enter ผ่านไปให้หมด แล้วพิมพ์คำสั..
#การใช้ netstat ตรวจสอบการถูกยิงด้วย syn คำสั่ง netstat -ntu | grep SYN_RECV | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nrอันนี้จะบอกว่..
find /home/*/domains/*/public_html/ -maxdepth 2 -type f -name '.htaccess' -print0 | xargs -0 grep -il '(py|exe|php)' find /home/*/domains/*/public_htm..
example error curl -I https://www.google.com/ curl: (60) SSL certificate problem: unable to get local issuer certificate . . ..
วิธีการปิด Windows Security Alert ที่แสดงในมุมขวาล่างของ Taskbar ให้ทำตามขั้นตอนดังนี้ 1. Start -> Control Panel -> Windows Security Center 2. คลิก Ch..
Mod_evasive คือ module เสริม ชนิดหนึ่งของ apache ซึ่งทำหน้าที่ ตรวจจับ การ request ผ่าน service apache โดย มีขั้นตอนการทำงาน คือ ถ้า IP ใด มีการ reque..