linux下的信息收集

基础信息收集

  1. 查看系统类型
cat /etc/issue
cat /etc/*-release
cat /etc/lsb-release
cat /etc/redhat-release
  1. 内核版本
cat /proc/version
uname -a
uname -mrs
rpm -q kernel
dmesg |grep Linux
ls /boot | grep vmlinuz
  1. 进程与服务
ps aux
ps -ef
top
cat /etc/service
  1. 安装的应用程序
dpkg -l
rpm -qa

计划任务

crontab -l
ls -alh /var/spool/cron
ls -al /etc/ | grep cron
ls -al /etc/cron*
cat /etc/at.allow
cat /etc/at.deny
cat /etc/cron.allow
cat /etc/cron.deny
cat /etc/crontab
cat /etc/anacrontab
cat /var/spool/cron/crontabs/root

网络配置

cat /etc/network/interfaces
      /etc/sysconfig/network
      /etc/resolv.conf
      /etc/sysconfig/network
      /etc/networks
 iptables -L
 hostname
 dnsdomainname

网络通信

netsstat -antup
netstat -antpx
netstat -tulpn
arp -e
route

用户信息

id
who
w
last
cat ~/.bash_history
          nano_history
          atftp_history
          mysql_history
          php_history

设置不记录:unset HISFILE

日志信息

/etc/httpd/logs/*
/var/log/*
/var/run/utmp

可能用于提权的程序

查找有suid位或sgid为的程序
 find / -perm -g=s -o -perm -u=s -type f 2 > /dev/null

查找能写或进入的目录

  find / -writable -type d 2>/dev/null
    find / -perm -o+w -type d 2>/dev/null
    find / -perm -o+x -type d 2>/dev/null

凭证收集

/etc/passwd
账户名称
密码字段,其中:
x代表密码存储在shadow中;
无值代表空口令
!或!!代表无法登录
此字段也可以存储密码密文
SID

/etc/shadow
账号名称
密码字段,其中:
俩$之间的
1表明使用MD5加密的
2表明是用Blowfish加密的
5表明是用SHA-256加密的
6表明使用SHA-512加密的
由于有sait值存在,只能采用hash碰撞的方式

使用工具

                   **hashcat
                   John the Ripper**
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

FODKING

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值