Code Monkey home page Code Monkey logo

Comments (6)

gl4nce avatar gl4nce commented on June 9, 2024

I found a workaround. Converting p12 to pem format with openssl works fine.

# converting
openssl pkcs12 -in mtls.p12 -out mtls.crt.pem -clcerts -nokeys
openssl pkcs12 -in mtls.p12 -out mtls.key.pem -nocerts -nodes

# gobuster
gobuster dir -u "https://web.site" -w /usr/share/wordlists/dirb/big.txt --client-cert-pem ./mtls.crt.pem --client-cert-pem-key ./mtls.key.pem

from gobuster.

firefart avatar firefart commented on June 9, 2024

Jeah looks like this is a problem with gos implementation of pkcs12. There is already an open issue for this:
golang/go#62375

from gobuster.

firefart avatar firefart commented on June 9, 2024

Looks like hashicorp switched to another library because of this problem: hashicorp/go-azure-sdk#328
will have a look if the other library works too

from gobuster.

firefart avatar firefart commented on June 9, 2024

@gl4nce can you please try out the dev branch and see if that works for your p12?
go install github.com/OJ/gobuster/v3@dev

Thanks!

from gobuster.

gl4nce avatar gl4nce commented on June 9, 2024

That was incredibly fast. :)

Tested and working fine for me. Thanks a lot!

$ ./gobuster dir -u "https://web.site" -w /usr/share/wordlists/dirb/big.txt --client-cert-p12 ../mtls.p12 --client-cert-p12-password "password" 
===============================================================
Gobuster v3.7
by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart)
===============================================================
[+] Url:                     https://web.site
[+] Method:                  GET
[+] Threads:                 10
[+] Wordlist:                /usr/share/wordlists/dirb/big.txt
[+] Negative Status codes:   404
[+] User Agent:              gobuster/3.7
[+] Timeout:                 10s
===============================================================
Starting gobuster in directory enumeration mode
===============================================================
/.htaccess            (Status: 403) [Size: 199]
/.htpasswd            (Status: 403) [Size: 199]
[...]

from gobuster.

firefart avatar firefart commented on June 9, 2024

Awesome thanks for testing :)

from gobuster.

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.