Coder Social home page Coder Social logo

laluka / bypass-url-parser Goto Github PK

View Code? Open in Web Editor NEW
950.0 12.0 102.0 339 KB

bypass-url-parser

Home Page: https://linktr.ee/TheLaluka

License: GNU Affero General Public License v3.0

Python 99.44% Dockerfile 0.56%
bypass differential exploit hacking offensive parser pentest security semicolon tool

bypass-url-parser's People

Contributors

dependabot[bot] avatar gabdug avatar jtof-fap avatar laluka avatar louka-jc avatar nishantbhagat57 avatar slicingmelon avatar snyk-bot avatar

Stargazers

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

Watchers

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

bypass-url-parser's Issues

[Bug] Greedy regex matches garbage instead of full title on edge-cases

Hello,

By default, BUP tries to find the title of the web page using the following regex (line 1236 on my version):

REGEX_TITLE = re.compile(r"<title>(.*)</title>", re.IGNORECASE)

The problem is the greedy (.*) part which could match several HTML "title" tags, and pollute the output logs (I often ran in this case, but can't share the targets here).

To fix this you could simply use an operator to make the regex "lazy":

REGEX_TITLE = re.compile(r"<title>(.*?)</title>", re.IGNORECASE)

Thus, the match will stop at the first "</title>" tag. Of course, you'll have to make sure that the "search" (line 1532 on my version) doesn't return a list if there are multiple "title" tags in the page.

Example of problematic data:

<html><title>sample_page</title><body><title>sample_page_indeed</title></body></html>

a small bug on mac

I found a small bug on mac
code
~~~
#your code on mac
echo -e "\e[34m----------------------\e[0m"
image

#my code on mac
echo "\033[30m black color \033[0m"

~~~
image

run
image

Your color code is not implemented and printed directly on the mac
Thank you for your software, thank you for your efforts

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.