momosecurity / cornerstone Goto Github PK
View Code? Open in Web Editor NEWLinux命令转发记录
License: BSD 3-Clause "New" or "Revised" License
Linux命令转发记录
License: BSD 3-Clause "New" or "Revised" License
请教一下,貌似以下语句这种写法,好像不会生效吧?
AUDIT_LASTHISTLINE="${AUDIT_CMD%%+([^ 0-9])*}"
是不是要改成
AUDIT_LASTHISTLINE="${AUDIT_CMD%%+[^ 0-9]*}"
具体代码块
function AUDIT_DEBUG() {
if [ -z "$AUDIT_LASTHISTLINE" ]; then #initialization
local AUDIT_CMD="$(fc -l -1 -1 2>/dev/null)" #previous history command
AUDIT_LASTHISTLINE="${AUDIT_CMD%%+([^ 0-9])*}"
else
AUDIT_LASTHISTLINE="$AUDIT_HISTLINE"
fi
local AUDIT_CMD="$(history 1)" #current history command
AUDIT_HISTLINE=$(/bin/echo $AUDIT_CMD |/bin/awk '{print $1}')
if [ "$AUDIT_HISTLINE" != "$AUDIT_LASTHISTLINE" ] || [ "$AUDIT_HISTLINE" = "1" ]; then #avoid logging unexecuted commands after 'ctrl-c', 'empty+enter', or after 'ctrl-d'
LOGGER
fi
}
关于冰蝎或者哥斯拉的远程执行命令,我测试了下似乎没有办法审计到!
不知道有时间的化,能否帮忙看看,有没有办法,我看了下都是no tty的环境
首先非常感谢陌陌安全团队的贡献,这个脚本很有用
然后我想请教2个问题
请问 .bash_history 和jumpserver记录的有什么区别?
第二个问题是探讨型,为何采用这种方式收集?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.