Code Monkey home page Code Monkey logo

Comments (5)

lc avatar lc commented on August 16, 2024

Hey @michael1026,

I think this could be a good option to add, but not something the tool should do by default. For example, if there is an archived URL for port :8080 and :443, they could be running entirely different services, so it may be beneficial at times to have them.

Furthermore, if we strip the ports, would we default to https:// or http://?

from gau.

michael1026 avatar michael1026 commented on August 16, 2024

if there is an archived URL for port :8080 and :443, they could be running entirely different services

Completely agreed, that's why I wanted to only strip :80 and :443 from the output. Ports like :4443, :8080, :8081, etc would be left alone

Furthermore, if we strip the ports, would we default to https:// or http://?

Correct me if I'm wrong, as I didn't build this tool, but don't the URLs come from the APIs with protocols as is? I don't suggest modifying the protocols at all.

Here's a simple before and after of my suggestion.

Before:

https://example.com/
https://example.com:443/
https://example.com/users
http://example.com:80/forum
http://example.com:8080/dashbaord
http://example.com/user/jim

After:

https://example.com/
https://example.com/
https://example.com/users
http://example.com/forum
http://example.com:8080/dashbaord
http://example.com/user/jim

from gau.

lc avatar lc commented on August 16, 2024

Hey @michael1026,

Sorry, I get what you're saying now. I'm curious what the use-case is for this? All I can think of is for better sorting (sort -u)?

Thanks

from gau.

michael1026 avatar michael1026 commented on August 16, 2024

For the most part, yes. Or with uniq or TomNomNom's anew. I just don't see the need for port 80 and 443 to be specified when they're not necessary. If it's out of scope of this project, I can just write a simple tool that does this for my needs and that's no problem.

from gau.

lc avatar lc commented on August 16, 2024

Hey @michael1026,

Sorry - I forgot about this issue. I don't think I'll write any functionality to strip those ports on the output because it shouldn't make a difference besides a visual preference.

from gau.

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.