Code Monkey home page Code Monkey logo

Comments (3)

olearycrew avatar olearycrew commented on June 2, 2024

For HTMX or any javascript frontend rendering framwork, you'll probably need to use headless mode - see https://github.com/projectdiscovery/katana?tab=readme-ov-file#crawling-mode

As noted in standard mode

without any javascript or DOM rendering, potentially missing post-dom-rendered endpoints or asynchronous endpoint calls that might happen in complex web applications

But Headless runs in a headless browser you should be able to use katana with it.

from katana.

cyeganeh01248 avatar cyeganeh01248 commented on June 2, 2024

I noticed it still doesnt register all the endpoints even in headless mode. In a test app I wrote up, it has a /, /static/styles.less, and a /test path. where the /test path is activated by htmx. It doesn't seem to get that endpoint despite turning on jsl, jc, or headless/system chrome.

from katana.

Mzack9999 avatar Mzack9999 commented on June 2, 2024

@crigger61 Thanks for opening this issue. Would it be possible to provide an example of the page which is not correctly parsed? Generally headless should be able to render all compatible javascript engines, and indirectly various endpoints are captured at runtime via headless. If the endpoints instead are triggered by some particular browser events (ex. hoovering with the mouse, clicking, etc) or user interaction, katana is probably not still able to do it autonomously, so the only option is implementing a custom parser that extract these info via static analysis.

from katana.

Related Issues (20)

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.