zzsj0928 / luci-app-pushbot

PushBot running on openwrt
343 stars 59 forks source link

web登陆没有提示,ssh和web错误登陆也没有 #54

Open Artectek opened 2 years ago

82kg commented 2 years ago

同样有这个问题

82kg commented 2 years ago

x86的op,现在好像系统日志里 不输出 web登录和ssh登录的日志了。导致pushbot没法采集到登录情况

435325553 commented 2 years ago

web登陆没有提醒,错误提示也没 SSH登陆有提示.但是拉黑功能失效 固件: Onewrt Dev22.02.05 From Lean Openwrt SNAPSHOT / LuCI Master (git-21.335.48743-5f363d9) 内核:5.4.175 系统: OP_X86

liaojack8 commented 1 year ago

也遇到這個問題

fengymi commented 9 months ago

修改ssh登录识别逻辑 vim /usr/bin/pushbot/pushbot 找到 cat ${dir}login_monitor|grep -i "Bad password attempt|Login attempt for nonexistent user from"|grep -Eo "[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}" >> ${dir}ssh_failed 这行,修改匹配规则 我的改成这个就行 cat ${dir}login_monitor|grep -i "Bad password attempt|Exit before auth from .*: Exited normally|Failed password"|grep -Eo "[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}" >> ${dir}ssh_failed