Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
Upload to github
  • Loading branch information
n4irda committed Sep 14, 2021
0 parents commit 4a29f4a
Show file tree
Hide file tree
Showing 21 changed files with 11,624 additions and 0 deletions.
690 changes: 690 additions & 0 deletions BurpScripthon.py

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions README.md
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..
Loading

0 comments on commit 4a29f4a

Please sign in to comment.