GithubHelp home page GithubHelp logo

Comments (4)

intrd avatar intrd commented on May 18, 2024 1

Hey @intrd,

Can you add some sample URLs where it gets failed, so we can make changes accordingly.

sure, this input breaks the httpx:

http://target.com:80/%22:269092299880021,%224456808911257%22:117599551732038,%224456808791254%22:219099868222532,%224456808631250%22:117241395101609,%224456808471246%22:379290365485680,%224456808271241%22:217348818399031,%224456808071236%22:512726018751670,%224456807991234%22:291913630927125,%224456807831230%22:291001267685617,%224456807791229%22:378181278930281%7D

maybe a good idea is to hash or randomize the url path and stores like this:

/target.com_80/32e152b6824592d175fc8cfda4237433e595292770a67c543c4992d30cb0f9f2

from httpx.

ehsandeep avatar ehsandeep commented on May 18, 2024 1

@intrd This is fixed with #113

from httpx.

ehsandeep avatar ehsandeep commented on May 18, 2024

Hey @intrd,

Can you add some sample URLs where it gets failed, so we can make changes accordingly.

from httpx.

intrd avatar intrd commented on May 18, 2024

Dirty/temporary fix @ httpx/cmd/httpx/httpx.go:

"encoding/hex"
"crypto/md5"

...

        // store responses in directory
        if scanopts.StoreResponse {
                splitted := strings.Split(domain, "/")
                path := ""
                if len(splitted) == 1 {
                        path = "/"
                }else{
                        path = splitted[1]
                }
                domain := splitted[0]
                hasher := md5.New()
                hasher.Write([]byte(path))
                out := hex.EncodeToString(hasher.Sum(nil))
                fullpath := "output/"+domain+"/"+out
                if _, err := os.Stat("output/"+domain); os.IsNotExist(err) { 
                        os.MkdirAll("output/"+domain, 0700)
                }
                err := ioutil.WriteFile(fullpath, []byte(resp.Raw), 0644)
                if err != nil {
                        gologger.Fatalf("Could not write response, at path to disc: %s", fullpath)
                }
        }


$ find output/

output/
output/target1.com
output/target1.com/a8f5f167f44f4964e6c998dee827110c
output/target2.com
output/target2.com/a660a4c512ce611d365624fe1bc6b5c6
output/target2.com/22bd4dae3f7b3f28e87813a4ccd13a12
output/help.target3.com
output/help.target3.com/2f8a6bf31f3bd67bd2d9720c58b19c9a

from httpx.

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.