Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change bash line size to 256 bytes #55

Merged
merged 1 commit into from
May 4, 2022
Merged

change bash line size to 256 bytes #55

merged 1 commit into from
May 4, 2022

Conversation

yindex
Copy link
Contributor

@yindex yindex commented May 4, 2022

bash监控中遇到诸如:wget、curl场景时,默认命令长度80相对较短
如下述命令
wget https://support.asiainfo-sec.com/TM-Product/Product/Deep_Security/DS_for_Multi_Hypervisor/10.5_MH/DSA/Agent-RedHat_EL7-10.5.0-3336.x86_64.zip
因此针对一般情况,修改line长度到256字节

存在问题
修改到256依旧无法满足超长命令情况(如更长的url), 不过一般情况下应该可以满足需求

kern/bash_kern.c Outdated Show resolved Hide resolved
user/event_bash.go Outdated Show resolved Hide resolved
Copy link
Member

@cfc4n cfc4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix it,and merge all commits into one commit.

ref: https://www.internalpointers.com/post/squash-commits-into-one-git

@cfc4n cfc4n added good first issue Good for newcomers fix bug fix PR labels May 4, 2022
@yindex
Copy link
Contributor Author

yindex commented May 4, 2022

fix it,and merge all commits into one commit.

ref: https://www.internalpointers.com/post/squash-commits-into-one-git

sorry for commit by amend

Copy link
Member

@cfc4n cfc4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cfc4n cfc4n merged commit fce21b5 into gojue:master May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix bug fix PR good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants