GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - feiniao112/linux: linux安全检查

BranchesTags
Open more actions menu

Latest commit

 

History

43 Commits
43 Commits

Folders and files

NameName
Last commit message
Last commit date
README.MD
README.MD
 
 
del.exp
del.exp
 
 
get.exp
get.exp
 
 
hosts.txt
hosts.txt
 
 
linuxcheck.sh
linuxcheck.sh
 
 
login.sh
login.sh
 
 
put.exp
put.exp
 
 
sh.exp
sh.exp
 
 

Repository files navigation

LinuxCheck

LinuxCheck 是一个自动化的 Linux 系统安全检查工具,用于批量检查多台 Linux 服务器的安全状况。 可适应于Centos和Ubunt系统

功能特点

  • 自动化批量检查多台服务器
  • 全面的安全检查项目
  • 自动收集和整理检查结果
  • 最小化目标服务器影响,执行完成后自动清理

系统要求

  • Linux 操作系统(本地执行机和目标服务器)
  • expect 工具包
  • SSH 服务可用

快速开始

1. 准备工作

克隆仓库到本地:

git clone https://github.com/feiniao112/LinuxCheck.git
cd LinuxCheck

2. 配置目标服务器

编辑 hosts.txt 文件,按以下格式添加服务器信息:

IP地址:普通用户名:普通用户密码:root密码

示例:

192.168.1.81:user:password123:rootpass
192.168.1.82:admin:password456:rootpass

3. 执行检查

sh login.sh

同时也支持针对单台进行检查,只需要将linuxcheck.sh这个文件上传就可以进行检查

4. 检查结果

执行完成后,结果文件会自动收集到本地执行机器上。

文件说明

  • linuxcheck.sh: 主要的安全检查脚本
  • login.sh: 批量登录和执行脚本
  • del.exp: 清理脚本
  • get.exp: 获取结果脚本
  • put.exp: 上传脚本
  • sh.exp: 执行脚本
  • hosts.txt: 服务器配置文件

注意事项

  1. 请确保本地执行机已安装 expect 工具包
  2. 确保目标服务器的 SSH 服务正常运行
  3. 建议使用普通用户执行,需要时会自动提升权限
  4. 所有密码信息请妥善保管,避免泄露

About

linux安全检查

Resources

Readme
Activity

Stars

475 stars

Watchers

14 watching

Forks

191 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.