-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload to github
- Loading branch information
0 parents
commit 4a29f4a
Showing
21 changed files
with
11,624 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# BurpScripthon | ||
|
||
BurpScripthon is a plugin for BurpSuite that allows the analysis of http requests | ||
and responses, through python scripts. | ||
#### Note: | ||
Only work for linux.(Because path implementation; you can make a PR) | ||
|
||
|
||
### Installation. | ||
Clone this repo with `git clone http://github.com/n4irda.code/BurpScripthon.git` | ||
and load it from BurpSuite. | ||
|
||
|
||
### Quick Start. | ||
- To use your scripts, you need to put them in $HOME/.BurpScripthon/scripts folder, | ||
then write the name of your script in BurpScripthon and load it. | ||
|
||
- Your scripts must have two functions called `requests` and `response`, | ||
they both take two arguments called `HttpMessageInfo` and `extension`. | ||
``` | ||
def request(HttpMessageInfo, extension): | ||
''' | ||
Process a http request before send it. | ||
arguments: | ||
HttpMessageInfo: Instance of (burp.IHttpRequestResponse) | ||
extension: Instance of (BurpScripthon) | ||
return: Message string to put in `Script Out` tab, or None. | ||
''' | ||
def response(HttpMessageInfo, extension): | ||
''' | ||
Process a http response before send it. | ||
arguments: | ||
HttpMessageInfo: Instance of (burp.IHttpRequestResponse) | ||
extension: Instance of (BurpScripthon) | ||
return: Message string to put in `Script Out` tab, or None. | ||
''' | ||
``` | ||
|
||
- BurpScripthon include a copy of BeautifulSoup4, you can use it in your script with | ||
`import bs4 | ||
|
||
|
||
### Examples. | ||
|
||
See the code in folder scripts for examples.. |
Oops, something went wrong.