mamba-2021 / Piranha

内网配置文件快速收集

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

简介

在拿到webshell之后的收集该服务器上所有配置文件,极大节省了你手翻配置的时间,让你内网更快一步

版本

python >=3.1.x

Piranha=v0.1

安装

pip3 install -r re.txt

配置文件

config.yaml

image-20230713092022703

可以根据个人实战情况,进行修改字典

用法

Windows

查找配置文件放到path.txt

dir /s/b C:\www\*.conf >path.txt  #这里配置文件后缀不仅限于conf,可根据实战环境进行搜索

进行搜索并且写入

Piranha_win_amd64.exe path.txt

查找完毕之后,会生成file_all.txt,file_filterate.txt;file_filterate.txt是根据字典过滤后的

image-20230713091713413

Linux

查找配置文件放到path.txt

find /var/www/ -name *.conf >path.txt  #这里配置文件后缀不仅限于conf,可根据实战环境进行搜索

进行搜索并且写入

./Piranha_lin_amd64 path.txt

打包

pip3 install pyinstaller
pyinstaller -F Piranha.py

Linux: image

Windows: image

About

内网配置文件快速收集


Languages

Language:Python 100.0%