内网渗透过程中搜寻指定文件内容Everything小工具

工具概述

当对内网束手无策的时候,入口机器上面说不定藏着突破口,翻找本地的文件和建立的网络连接就是手法

这里也提供一个文件内容敏感词的字典,需要可以自己去整理,如下:

请访问原文链接:内网渗透过程中搜寻指定文件内容FindEverything小工具查看最新版。原创作品,转载请保留出处。

复制代码
jdbc:

user=

password=

key=

ssh-

ldap:

mysqli_connect

sk-

通过快速遍历机器文件,去寻找这些关键词,可以找到突破口,这个代码我之前也分享给好几个朋友,在实战阶段效果不错

工具使用

Python的默认安装路径是 /usr/bin/python/usr/local/bin/python

通过以下命令可以尝试常见Python变量并查看版本 -V

复制代码
python -V

python2 -V

python3 -V

py -V

py2 -V

py3 -V

Python3环境

复制代码
python3 FindEverything.py -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c "password=" -d D:/

python3 FindEverything.py -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c jdbc:mysql

python3 FindEverything.py -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c jdbc:mysql -o output.txt

Python3环境但没有tqdm包

复制代码
python3 FindEverything-notqdm.py -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c "password=" -d D:/

python3 FindEverything-notqdm.py -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c jdbc:mysql

python3 FindEverything-notqdm.py -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c jdbc:mysql -o output.txt

Python2环境

复制代码
python2 FindEverything-py2.py -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c "password=" -d D:/

python2 FindEverything-py2.py -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c jdbc:mysql

python2 FindEverything-py2.py -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c jdbc:mysql -o output.txt

没有Python环境则使用sh

复制代码
./FindEverything.sh -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c "password=" -d D:/

./FindEverything.sh -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c jdbc:mysql

./FindEverything.sh -n .txt,.ini,.yaml,.php,.jsp,.java,.xml,.sql -c jdbc:mysql -o output.txt

其他小技巧

复制代码
find / -type f \( -iname "*.conf" -o -iname "*.yml" -o -iname "*.yaml" -o -iname "*.ini" \)

请访问原文链接:内网渗透过程中搜寻指定文件内容FindEverything小工具查看最新版。原创作品,转载请保留出处。

相关推荐
学逆向的1 天前
C++纯虚函数
开发语言·c++·网络安全
买大橘子也用券1 天前
玄机-应急响应靶场-第一章wp汇总
网络安全·应急响应
-SOLO-1 天前
备份apk 工具
android
KKKlucifer1 天前
数据安全管控产品选型排名与深度解析
网络·安全
其实防守也摸鱼1 天前
软件安全与漏洞--软件安全编码与防御技术理论题库
开发语言·网络·安全·网络安全·软件安全·软件安全与漏洞
极创信息1 天前
Linux挖矿病毒深度清理实战教程,从进程隐藏、Rootkit驻留到彻底根除
java·大数据·linux·运维·安全·tomcat·健康医疗
数据知道1 天前
指纹浏览器本地存储“孤岛化”:IndexedDB、LocalStorage、SessionStorage 的安全隔离
爬虫·安全·数据采集·指纹浏览器
xhtdj1 天前
智源大会圆桌大模型没有终局具身智能可能是中国的 AlphaGo 时刻
人工智能·clickhouse·安全·动态规划
HavenlonLabs1 天前
区块链解决信任分布,AI 需要解决能力控制
人工智能·安全·区块链
MartinYeung51 天前
[论文学习]大型语言模型(LLM)安全与隐私-基于善、恶、丑的深度分析
学习·安全·语言模型