MCPcopy Index your code
hub / github.com/bit4woo/burp_collaborator_http_api

github.com/bit4woo/burp_collaborator_http_api @v0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2 ↗ · + Follow
355 symbols 390 edges 47 files 294 documented · 83% updated 8y agov0.2 · 2018-05-24★ 44
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

burp_collaborator_http_api

A burp extender that let you use burp collaborator server within http api

一个让你可以通过HTTP API调用burp的collaborator服务器的插件

  • 听说你想用cloudeye,而又没有注册码?
  • 听说你想用dnslog,而又嫌太麻烦?
  • 听说你想用ceye,而又怕认证?

这个插件让你分分钟用上burp版本的dnslog.

部署说明:

最简单的方式一:运行burp pro并安装这个插件即可。

这个方式使用的是burp官方的服务器

方式二:自建burp collaborator服务器,这样就能做到完全独立自主了。

这个参考官方文档:https://portswigger.net/burp/help/collaborator_deploying github上也有docker版的部署方法:https://github.com/integrity-sa/burpcollaborator-docker

接口说明:

生成payload: http://127.0.0.1:8000/generatePayload

获取payload的记录: http://127.0.0.1:8000/fetchFor?payload=e0f34wndn15gs5xyisqzw8nwyn4ds2 目前这个接口是一股脑的原样返回,数据没有做处理,但足以判断命令是否执行成功。后续会优化

它可以接受的请求类型包括: http\https\DNS\SMTP\SMTPS\FTP;demo版本暂不区分,后续有空会继续优化,提供特定类型的查询和数据提取。

接口调用举例

简单的python调用举例:

# !/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'bit4'
__github__ = 'https://github.com/bit4woo'

import requests

proxy = {"http": "http://127.0.0.1:8888", "https": "https://127.0.0.1:8888"}
url = "http://127.0.0.1:8000/generatePayload"
response = requests.get(url)
payload = response.text
print payload
requests.get("http://{0}".format(payload))
url = "http://127.0.0.1:8000/fetchFor?payload={0}".format(payload.split(".")[0])
res = requests.get(url)
print  res.content

尝试在无图形界面的linux上运行:

这部分还在研究中,如果你有好的方法,欢迎提交给我,谢谢!

sudo java -jar burp.jar --collaborator-server #最简单的部署一个collaborator服务器的方式

java -jar burpsuite_pro_1.7.33.jar --user-config-file=collaborator_http_api.json #启动burp并加装指定插件,需要先在json中配置

java -Djava.awt.headless=true -jar burpsuite_pro_1.7.33.jar --user-config-file=collaborator_http_api.json #不启动图形界面


Extension points exported contracts — how you extend this code

IBurpExtender (Interface)
All extensions must implement this interface. Implementations must be called BurpExtender, in the package burp, must be [2 …
src/burp/IBurpExtender.java
IExtensionStateListener (Interface)
Extensions can implement this interface and then call IBurpExtenderCallbacks.registerExtensionStateListener()</cod [2 …
src/burp/IExtensionStateListener.java
IHttpService (Interface)
This interface is used to provide details about an HTTP service, to which HTTP requests can be sent.
src/burp/IHttpService.java
IHttpRequestResponsePersisted (Interface)
This interface is used for an IHttpRequestResponse object whose request and response messages have been sav
src/burp/IHttpRequestResponsePersisted.java
IContextMenuFactory (Interface)
Extensions can implement this interface and then call IBurpExtenderCallbacks.registerContextMenuFactory() t
src/burp/IContextMenuFactory.java

Core symbols most depended-on inside this repo

getPort
called by 4
src/burp/IHttpService.java
getProperties
called by 2
src/burp/IBurpCollaboratorInteraction.java
generatePayload
called by 2
src/burp/IBurpCollaboratorClientContext.java
fetchCollaboratorInteractionsFor
called by 2
src/burp/IBurpCollaboratorClientContext.java
exit
called by 1
src/burp/HTTPServer.java
run
called by 1
src/burp/HTTPServer.java
queryToMap
called by 1
src/burp/HTTPServer.java
getLocalHostLANAddress
called by 1
src/burp/HTTPServer.java

Shape

Method 293
Interface 41
Class 21

Languages

Java100%

Modules by API surface

src/burp/IBurpExtenderCallbacks.java90 symbols
src/test/CHTTPServer.java23 symbols
src/burp/IExtensionHelpers.java22 symbols
src/test/CHTTPServerTest.java18 symbols
src/burp/IScanIssue.java12 symbols
src/burp/HTTPServer.java12 symbols
src/burp/IHttpRequestResponse.java11 symbols
src/burp/ITextEditor.java9 symbols
src/burp/IScanQueueItem.java8 symbols
src/burp/IParameter.java8 symbols
src/burp/IMessageEditorTab.java8 symbols
src/burp/IResponseInfo.java7 symbols

For agents

$ claude mcp add burp_collaborator_http_api \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page