Git Product home page Git Product logo

bao7uo / waf-cookie-fetcher Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 7.0 770 KB

WAF Cookie Fetcher is a Burp Suite extension written in Python, which uses a headless browser to obtain the values of WAF-injected cookies which are calculated in the browser by client-side JavaScript code and adds them to Burp's cookie jar. Requires PhantomJS.

Home Page: https://portswigger.net/bappstore/0f6ce51c1cb349689ecb4025e8db060a

License: Apache License 2.0

Python 95.76% HTML 4.24%
burp burp-extensions burpsuite-pro burp-api bypass-wafs cookies

waf-cookie-fetcher's People

Contributors

bao7uo avatar pajswigger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

waf-cookie-fetcher's Issues

Support for regexp

I have some cookies which have dynamic name. Therefore, I would like to use regexp to take care of these. However I think that is not possible, because when I tried, I had this Traceback:

Traceback (most recent call last):
  File "C:\Users\user\AppData\Roaming\BurpSuite\bapps\0f6ce51c1cb349689ecb4025e8db060a\waf-cookie-fetcher.py", line 370, in performAction
    cb.callbacks.stdOutput("Removed cookie: " + cookie_name)
AttributeError: 'burp.jbf' object has no attribute 'stdOutput'

	at org.python.core.Py.AttributeError(Py.java:205)
	at org.python.core.PyObject.noAttributeError(PyObject.java:1013)
	at org.python.core.PyObject.__getattr__(PyObject.java:1008)
	at org.python.pycode._pyx4.performAction$38(C:\Users\user\AppData\Roaming\BurpSuite\bapps\0f6ce51c1cb349689ecb4025e8db060a\waf-cookie-fetcher.py:351)
	at org.python.pycode._pyx4.call_function(C:\Users\user\AppData\Roaming\BurpSuite\bapps\0f6ce51c1cb349689ecb4025e8db060a\waf-cookie-fetcher.py)
	at org.python.core.PyTableCode.call(PyTableCode.java:167)
	at org.python.core.PyBaseCode.call(PyBaseCode.java:307)
	at org.python.core.PyBaseCode.call(PyBaseCode.java:198)
	at org.python.core.PyFunction.__call__(PyFunction.java:482)
	at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
	at org.python.core.PyMethod.__call__(PyMethod.java:228)
	at org.python.core.PyMethod.__call__(PyMethod.java:218)
	at org.python.core.PyMethod.__call__(PyMethod.java:213)
	at org.python.core.PyObject._jcallexc(PyObject.java:3626)
	at org.python.core.PyObject._jcall(PyObject.java:3658)
	at org.python.proxies.__main__$SHA_Remove_Cookies$6.performAction(Unknown Source)
	at burp.l0c.a(Unknown Source)
	at burp.xx.a(Unknown Source)
	at burp.zx.a(Unknown Source)
	at burp.dy.a(Unknown Source)
	at burp.qyi.a(Unknown Source)
	at burp.fhf.a(Unknown Source)
	at burp.fhf.a(Unknown Source)
	at burp.fhf.a(Unknown Source)
	at burp.k4b.l(Unknown Source)
	at burp.k4b.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:745)

I tried to remove cookies like this:
image
Thanks,
Andrej

Exception thrown

Hi,
I wanted Empty the whole cookie jar within the session handling rule:
image

but then I saw an exception thrown in the Session Handler:

image

Error trace:

Traceback (most recent call last):
  File "C:\Users\user\AppData\Roaming\BurpSuite\bapps\0f6ce51c1cb349689ecb4025e8db060a\waf-cookie-fetcher.py", line 349, in performAction
    cookies_to_remove_names = self.cookies_to_remove.getNames()
AttributeError: 'SHA_Remove_Cookies' object has no attribute 'cookies_to_remove'

	at org.python.core.Py.AttributeError(Py.java:205)
	at org.python.core.PyObject.noAttributeError(PyObject.java:1013)
	at org.python.core.PyObject.__getattr__(PyObject.java:1008)
	at org.python.pycode._pyx4.performAction$38(C:\Users\user\AppData\Roaming\BurpSuite\bapps\0f6ce51c1cb349689ecb4025e8db060a\waf-cookie-fetcher.py:351)
	at org.python.pycode._pyx4.call_function(C:\Users\user\AppData\Roaming\BurpSuite\bapps\0f6ce51c1cb349689ecb4025e8db060a\waf-cookie-fetcher.py)
	at org.python.core.PyTableCode.call(PyTableCode.java:167)
	at org.python.core.PyBaseCode.call(PyBaseCode.java:307)
	at org.python.core.PyBaseCode.call(PyBaseCode.java:198)
	at org.python.core.PyFunction.__call__(PyFunction.java:482)
	at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
	at org.python.core.PyMethod.__call__(PyMethod.java:228)
	at org.python.core.PyMethod.__call__(PyMethod.java:218)
	at org.python.core.PyMethod.__call__(PyMethod.java:213)
	at org.python.core.PyObject._jcallexc(PyObject.java:3626)
	at org.python.core.PyObject._jcall(PyObject.java:3658)
	at org.python.proxies.__main__$SHA_Remove_Cookies$6.performAction(Unknown Source)
	at burp.l0c.a(Unknown Source)
	at burp.xx.a(Unknown Source)
	at burp.zx.a(Unknown Source)
	at burp.dy.a(Unknown Source)
	at burp.qyi.a(Unknown Source)
	at burp.fhf.a(Unknown Source)
	at burp.fhf.a(Unknown Source)
	at burp.fhf.a(Unknown Source)
	at burp.k4b.l(Unknown Source)
	at burp.k4b.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:745)

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.