xnl-h4ck3r / GAP-Burp-Extension

Burp Extension to find potential endpoints, parameters, and generate a custom target wordlist
1.2k stars 131 forks source link

Attribute error #6

Closed Spideynati closed 1 year ago

Spideynati commented 1 year ago

Using burp version 2022.12.5 tried previous versions also This is the error I'm getting

"doEverything 1 AttributeError("'NoneType' object has no attribute 'toString'",)"

After sending target to GAP

xnl-h4ck3r commented 1 year ago

Hi. I'm not sure why it happens, but someone else had this issue and they said it was resolved by moving the cloned folder to a different directory. Maybe try changing the folder to make sure it has no spaces, and not non ASCII characters, and see if that fixes the problem? Thanks Xnl

Spideynati commented 1 year ago

Hey, I tried what you mentioned above it didn't work for me but GAP is working in burp version 2022.8.5 I tried changing the jython version and also tried it on 3-4 targets on latest version, I'm using Kali Linux. This extension is so awesome though I must say, Thank you!

xnl-h4ck3r commented 1 year ago

Hey. Sorry, I thought that errror was happening when you tried loading the extension itself. Is it loading okay, but when you try to run for a target you get that error? Does it throw the same error for every target you try? Can you give me an example of a target you are looking at? Also, I'm not sure if this causes any problems, but could you check if the "Auto save output to directory" contains any spaces or non ASCII characters?

Spideynati commented 1 year ago

The error occurs when I'm sending my target to GAP, save output directory is "/home/username/Documents/" target i used: www.caffeine.tv, www.tinder.com(thier subdomains as well), also tried other like google.com and so its gives the same attribute error in newer versions after 2022.8.5

xnl-h4ck3r commented 1 year ago

Just to clarify, you are right clicking on a target on the "Target -> Site map" pane, and selecting "Extensions" and then "GAP"?? To have that speciifc error, it must mean tha the Burp API is returning a None type for "getSelectedMessages" in the Interface IContextMenuInvocation. But I can't see how that is possible, and I can't reproduce it :( Do you have any problems with any other extensions that you access in the same way through the Target Site map? When you expand the target in the site map, are there any entries that don't seem to have a proper URL, maybe the host header missing or something? Have you got any other extensions that are running that are maybe creating some strange entries in the site map?

Spideynati commented 1 year ago

Sorry for late reply, Actually yeah I doing exactly like you told like target>site map then selecting GAP in extension tab no matter what target i use, I even did fresh installation and used it without any other extensions still got that error in Kali linux. But, When i used it with Windows it worked just fine in the latest version with other extensions and my previous file not sure why it worked there and not in kali though Just to clarify I'm attaching the ss of the error I'm getting in Kali after sending target to GAP burpgaperror.png

Spideynati commented 1 year ago

Hey, @xnl-h4ck3r the whole problem solved by Changing java-jdk version to 19 it was 17 before in kali linux. Thanks once again for such an amazing tool.

xnl-h4ck3r commented 1 year ago

Hey @Spideynati thanks for letting me know! I'm glad you figured it out :)