All Projects → orleven → Hamster

orleven / Hamster

Licence: other
Hamster是基于mitmproxy开发的异步被动扫描框架,基于http代理进行被动扫描,主要功能为重写数据包、签名、漏洞扫描、敏感参数收集等功能(开发中)。

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Hamster

PoC-Bank
Focus on cybersecurity | collection of PoC and Exploits
Stars: ✭ 83 (+207.41%)
Mutual labels:  poc
PocOrExp in Github
聚合Github上已有的Poc或者Exp,CVE信息来自CVE官网。Auto Collect Poc Or Exp from Github by CVE ID.
Stars: ✭ 544 (+1914.81%)
Mutual labels:  poc
exploits
Some personal exploits/pocs
Stars: ✭ 52 (+92.59%)
Mutual labels:  poc
iota-mqtt-poc
IOTA Proof of Concept, store MQTT messages on the tangle.
Stars: ✭ 40 (+48.15%)
Mutual labels:  poc
vnf-asterisk
Documentation, configuration, reference material and other information around an Asterisk-based VNF
Stars: ✭ 38 (+40.74%)
Mutual labels:  poc
flaskbomb
GZip HTTP Bombing in Python for everyone
Stars: ✭ 30 (+11.11%)
Mutual labels:  poc
e2e-testing
Formal verification of Elastic-Agent and more using BDD
Stars: ✭ 22 (-18.52%)
Mutual labels:  poc
CVE-2020-8597
CVE-2020-8597 pppd buffer overflow poc
Stars: ✭ 48 (+77.78%)
Mutual labels:  poc
Pool2021
Pools organized for Epitech's students in 2021.
Stars: ✭ 19 (-29.63%)
Mutual labels:  poc
CVE-2020-0796-POC
CVE-2020-0796 Pre-Auth POC
Stars: ✭ 86 (+218.52%)
Mutual labels:  poc
Android-Task-Injection
Task Hijacking in Android (somebody call it also StrandHogg vulnerability)
Stars: ✭ 52 (+92.59%)
Mutual labels:  poc
chmod-stego
A PoC on passing data through UNIX file privilege bits (RWX Triplets)
Stars: ✭ 23 (-14.81%)
Mutual labels:  poc
pbscan
基于burpsuite headless 的代理式被动扫描系统
Stars: ✭ 98 (+262.96%)
Mutual labels:  passive-scanner
AD WebScanner
AD工作室精心研发漏洞安全扫描器
Stars: ✭ 91 (+237.04%)
Mutual labels:  webscanner
DNS-Fender
A Proof-of-Concept tool utilizing open DNS resolvers to produce an amplification attack against web servers. Using Shodan APIs and native Linux commands, this tool is in development to cripple web servers using spoofed DNS recursive queries.
Stars: ✭ 47 (+74.07%)
Mutual labels:  poc
HomeUniteUs
We're working with community non-profits who have a Host Home or empty bedrooms initiative to develop a workflow management tool to make the process scalable (across all providers), reduce institutional bias, and effectively capture data.
Stars: ✭ 22 (-18.52%)
Mutual labels:  poc
financial
POC de uma aplicação de domínio financeiro.
Stars: ✭ 62 (+129.63%)
Mutual labels:  poc
1earn
ffffffff0x 团队维护的安全知识框架,内容包括不仅限于 web安全、工控安全、取证、应急、蓝队设施部署、后渗透、Linux安全、各类靶机writup
Stars: ✭ 3,715 (+13659.26%)
Mutual labels:  poc
Blueborne-CVE-2017-1000251
Blueborne CVE-2017-1000251 PoC for linux machines
Stars: ✭ 14 (-48.15%)
Mutual labels:  poc
kubernetes-cluster
Vagrant As Automation Script
Stars: ✭ 34 (+25.93%)
Mutual labels:  poc

概述

Hamster是基于mitmproxy开发的异步被动扫描框架,基于http代理进行被动扫描,主要功能为重写数据包、签名、漏洞扫描、敏感参数收集等功能(开发中)。

Python 3.9 Mysql 8.0 RabbitMQ 3 Redis 3

模块

  1. 漏洞扫描:brower/burpsuite → server → rabbitmq ->agent → support → target
  2. 渗透测试辅助:brower/burpsuite → server → target

server:

  1. 被动扫描代理端口
  2. 管理控制台
  3. 推送流量到agent进行扫描
  4. 手工测试时进行签名、waf绕过。

agent

  1. 漏扫
  2. 扫描的poc发送到supprt进行签名、waf绕过等

supprt

  1. 给agent进行签名、waf绕过等。

安装

# 通过dockerfile文件部署 mysql,redis,rabbitmq 
docker-compose up -d

# PIP安装依赖
python3.9 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

配置

为了覆盖延迟型的SSRF、Log4j2等漏洞,对于此类数据包进行了缓存,因此此类漏洞的扫描也需要配合DNSLog

  1. 建议先配置DNSLog ,并从DNSLog 项目中获取到API-Key等信息。
  2. 通过修改 conf/hamster.conf (第一次运行后生成) 配置mysql,redis,rabbitmq,dnslog,具体请看注释。

运行

第一次运行需要先初始化数据库:

source venv/bin/activate
python init.py
  1. 运行server
source venv/bin/activate
python server.py
  1. 运行agent
source venv/bin/activate
python agent.py
  1. 运行support
source venv/bin/activate
python support.py
  1. 设置浏览器HTTP代理或者设置burpsuite二级代理upstream proxy servers, 代理认证请配置 conf/hamster.conf.

burpsuite_proxy

  • host: localhost
  • port: 8000
  • authtype: basic
  • username: hamster
  • password: Hamster@123
  1. 然后浏览器访问目标网站就可以进行漏洞扫描了。

  2. 也可以查看访问控制台http://admin.hamster.com/hamster/查看扫描结果

web

插件编写

插件目录为addon,具体功能如下(addon本后续不再更新):

  1. addon/agent agnet用, 主要存放扫描poc。
  2. addon/common server、support共用,可用于给数据包waf、sign等。
  3. addon/server server用,一般涉及数据包加解密时和supprt联用
  4. addon/support support用,一般涉及数据包加解密时和server联用

同目录下addon按照字母顺序加载,如果脚本之间存在运行先后逻辑,请合理安排脚本文件名。

PS: 参考插件模版目录test_addon即可。

关于缓存日志查询

日志保存天数,默认3天,数据库缓存默认1天。

  1. 如果dnslog告警了,请等待2分钟后,在漏洞中查看。
  2. 如果短时间内触发多个dnslog,且漏洞仅更新了1个的话,这是因为这几个dnslog的触发原因是一样的,漏洞已做了去重处理,忽略就行。
  3. 如果dnslog告警,且漏洞没有更新,表示这个漏洞是延迟触发的,且超过了数据库缓存天数,可以尝试在logs目录中查找,如果还是没找到,那就是说明延迟太久了,缓存已经没了。
find logs/ -name "*" -print0 | xargs -0 grep -i -n "{dnslog}" 2>/dev/null
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].