Git Product home page Git Product logo

byp4xx's People

Contributors

goshawk22 avatar jalvarezit avatar jeibloo avatar josue87 avatar lobuhi avatar pyaterki avatar six2dez avatar tomquinn8 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

byp4xx's Issues

Idea: Redirect URL

Would be good if it told us where it redirected to. What do you think?

Small Changes

I´ve found a few small bugs.

line 19 - put the url in quotes because of the semicolons
code = popen("curl -k -s -I %s '%s'" % (options_var, payload_var)).read()

line 129 - just cosmetic
print("Between %2e: ",curl_code_response(options+" -X GET",payload))

line 145 - remove the backslash no need to escape
payload=url+"/.;/"+uri

line 147 -remove the backslash no need to escape and add the semicolon
payload=url+";foo=bar;/"+uri

thanks for this cool script!!

Install instructions

Congrats on moving to go!

could you add a release or install instructions?

tried this, but there are no releases

go install github.com/lobuhi/byp4xx.git@latest

Options -r for request.txt

hallo brother love you works and can you add request file options for sending all this and the template of request.txt based on burpsuite item

error Traceback (most recent call last)

byp4xx https://redacted/.htaccess.zip
[+]VERB TAMPERING
CONNECT: HTTP/1.1 400 Bad Request
TRACE: HTTP/1.1 405 Method Not Allowed

[+]HEADERS
X-Original-URL: HTTP/1.1 200 OK
Command: curl -k -s -I -X GET -H "X-Original-URL: /.htaccess.zip" https://redacted/
X-Rewrite-URLL: HTTP/1.1 200 OK
Command: curl -k -s -I -X GET -H "X-Rewrite-URL: /.htaccess.zip" https://redacted

[+]#BUGBOUNTYTIPS
/%ef%bc%8f: HTTP/1.1 404 Not Found
Between /.;/: HTTP/1.1 404 Not Found
Traceback (most recent call last):
File "/home/k/.local/bin//byp4xx", line 8, in
sys.exit(main())
File "/home/k/.local/lib/python3.10/site-packages/byp4xx.py", line 391, in main
result = curl_code_response(options+" -X GET --path-as-is",payload)
File "/home/k/.local/lib/python3.10/site-packages/byp4xx.py", line 34, in curl_code_response
status = code.split(" ")[1] # Status code is in second position
IndexError: list index out of range

return content length

It's better to return the content length after the status code 200.
Thanks so much.

byp4xx Head Request Error!

Hey. I just installed byp4xx (with git clone) and ran it for test something then I just realized there's an error on HEAD request tab.

Curl Version: curl 7.74.0 (x86_64-pc-linux-gnu) Release-Date: 2020-12-09.

Error Output:

[+]HTTP Methods...
GET request: 404
POST request: 404
HEAD request: curl: option -m: expected a proper numerical parameter
curl: try 'curl --help' or 'curl --manual' for more information

Line 74 and 77 -m flag has 1.0 value
74: STATUS=$(curl $REDIRECT -k -s -o /dev/null -m 1.0 -w "%{http_code}" -X HEAD $URL$DIR)

Then I just changed the -m flag value 1.0 to 1 and its worked fine for me.
74: STATUS=$(curl $REDIRECT -k -s -o /dev/null -m 1 -w "%{http_code}" -X HEAD $URL$DIR)

[+]HTTP Methods...
GET request: 404
POST request: 404
HEAD request: 404

But in this section when a program comes to the head request tab to send request its waiting about 1 or 2 seconds longer than other requests.

Maybe it's not an error but I don't know.I just wanted to announce it :)
Best Regards.

License?

Respected author, please add a license! I suggest MIT

HEAD request: curl: option -m: expected a proper numerical parameter

Hello! :)

When running this:

$ ./byp4xx.sh -r -c https://www.test.com

I'm getting this:

[+]HTTP Methods...
GET request: 403
POST request: 403
HEAD request: curl: option -m: expected a proper numerical parameter
curl: try 'curl --help' or 'curl --manual' for more information

The byp4xx.sh uses the following command, with the -m option:

echo -n "HEAD request: "
STATUS=$(curl $REDIRECT -k -s -o /dev/null -m 1.0 -w "%{http_code}" -X HEAD $URL$DIR)

If I change to -m 1 (instead of 1.0), it works without the message above.

My setup:

$ uname -r
5.9.0-kali1-amd64

$ curl -V
curl 7.72.0 (x86_64-pc-linux-gnu) libcurl/7.72.0 OpenSSL/1.1.1g zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.8.0 nghttp2/1.41.0 librtmp/2.3
Release-Date: 2020-08-19

Thanks!

Add Filtering by response size

Hey mate,

Sometimes pages redirect to the main site if a path is not found (pretty common nowadays),
with the result being the tool returns a 200 falsely.
Can you add a response size filter for this?

issue

what if i get a 200 response but want to use that to forward with burp suite where can I get the full request the script used and got a 200 request?

Reason for removing trailing / ?

Hi,

Is there a reason for removing the trailing "/" in this part :

#Count "/" on target param just to parse the last part of URI path
bar_count = target.count("/")
if target.endswith("/"):
	bar_count = bar_count -1

if bar_count == 2:
	url = target
	uri = ""
	
else:
	aux =  target.split("/")
	url = "/".join(aux[:bar_count])
	uri = aux[bar_count]

In my use case I have a HTTP 405 when not adding the trailing "/" to the request

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.