Skip to content

Commit

Permalink
v3.4 - see CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xnl-h4ck3r committed Jul 15, 2023
1 parent e785fcd commit 48760f2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## Changelog

- v3.4

- Changed

- Fix a bug that was causing the `Show params as query string` option to not display anything if the `Include common parameters` option is not ticked.
- Ensure there is a newline character at the end of the final line on output files.

- v3.3

- New
Expand Down
13 changes: 11 additions & 2 deletions GAP.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Good luck and good hunting! If you really love the tool (or any others), or they helped you find an awesome bounty, consider BUYING ME A COFFEE! (https://ko-fi.com/xnlh4ck3r) (I could use the caffeine!)
"""
VERSION="3.3"
VERSION="3.4"

from burp import IBurpExtender, IContextMenuFactory, IScopeChangeListener, ITab
from javax.swing import (
Expand Down Expand Up @@ -1353,7 +1353,7 @@ def cbShowQueryString_clicked(self, e=None):
# Show the parameter list or query string depending on the option selected
if self.cbShowQueryString.isSelected():
# Set the values if not already set
if self.outParamQuery.text == "":
if self.outParamQuery.text == "" or self.outParamQuery.text == "NO PARAMETERS FOUND":
index = 0
paramQuery = ""
self.outParamQuery.text = "UPDATING..."
Expand Down Expand Up @@ -3048,6 +3048,7 @@ def fileWriteParams(self):
f.write(self.txtParamsWithURL.encode("UTF-8").replace(" "," "))
else:
f.write(self.txtParamsOnly.encode("UTF-8"))
f.write("\n".encode("UTF-8"))
f.close()
except Exception as e:
self._stderr.println("fileWriteParams 2")
Expand All @@ -3063,6 +3064,7 @@ def fileWriteParams(self):
f.write(self.txtParamsWithURL.encode("UTF-8").replace(" "," "))
else:
f.write(self.txtParamsOnly.encode("UTF-8"))
f.write("\n".encode("UTF-8"))
f.close()
except Exception as e:
self._stderr.println("fileWriteParams 3")
Expand Down Expand Up @@ -3090,6 +3092,7 @@ def fileWriteParams(self):
fileText = "\n".join(sorted(set(fileText.split())))
with open(os.path.expanduser(self.getFilePath(root) + "_params.txt"), "w") as f:
f.write(fileText)
f.write("\n".encode("UTF-8"))
f.close

except IOError as e:
Expand Down Expand Up @@ -3132,6 +3135,7 @@ def fileWriteLinks(self):
f.write(self.txtLinksOnlyInScopeOnly.encode("UTF-8"))
else:
f.write(self.txtLinksOnly.encode("UTF-8"))
f.write("\n".encode("UTF-8"))
f.close()
except Exception as e:
self._stderr.println("fileWriteLinks 2")
Expand All @@ -3153,6 +3157,7 @@ def fileWriteLinks(self):
f.write(self.txtLinksOnlyInScopeOnly.encode("UTF-8"))
else:
f.write(self.txtLinksOnly.encode("UTF-8"))
f.write("\n".encode("UTF-8"))
f.close()
except Exception as e:
self._stderr.println("fileWriteLinks 3")
Expand Down Expand Up @@ -3189,6 +3194,7 @@ def fileWriteLinks(self):
fileText = "\n".join(sorted(set(fileText.split())))
with open(os.path.expanduser(self.getFilePath(root) + "_links.txt"), "w") as f:
f.write(fileText)
f.write("\n".encode("UTF-8"))
f.close

except IOError as e:
Expand Down Expand Up @@ -3229,6 +3235,7 @@ def fileWriteWords(self):
f.write(self.txtWordsWithURL.encode("UTF-8").replace(" "," "))
else:
f.write(self.txtWordsOnly.encode("UTF-8"))
f.write("\n".encode("UTF-8"))
f.close()
except Exception as e:
self._stderr.println("fileWriteWords 2")
Expand All @@ -3244,6 +3251,7 @@ def fileWriteWords(self):
f.write(self.txtWordsWithURL.encode("UTF-8").replace(" "," "))
else:
f.write(self.txtWordsOnly.encode("UTF-8"))
f.write("\n".encode("UTF-8"))
f.close()
except Exception as e:
self._stderr.println("fileWriteWords 3")
Expand Down Expand Up @@ -3271,6 +3279,7 @@ def fileWriteWords(self):
fileText = "\n".join(sorted(set(fileText.split())))
with open(os.path.expanduser(self.getFilePath(root) + "_words.txt"), "w") as f:
f.write(fileText)
f.write("\n".encode("UTF-8"))
f.close

except IOError as e:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<center><img src="https://raw.githubusercontent.com/xnl-h4ck3r/GAP-Burp-Extension/main/GAP/images/title.png"></center>

## About - v3.3
## About - v3.4

This is an evolution of the original getAllParams extension for Burp. Not only does it find more potential parameters for you to investigate, but it also finds potential links to try these parameters on, and produces a target specific wordlist to use for fuzzing.
The full Help documentation can be found [here] (https://github.com/xnl-h4ck3r/burp-extensions/blob/main/GAP%20Help.md) or from the Help icon on the GAP tab.
Expand Down

0 comments on commit 48760f2

Please sign in to comment.