bypassiwastaken / buypass

Opening blocked sites with the PaymentRequest API
https://buypass.bypassi.com
32 stars 81 forks source link

http #5

Open ghost opened 1 year ago

ghost commented 1 year ago

I know that like zero websites use http nowadays but wharerver.

ghost commented 1 year ago

Not sure to put this in another issue or here, but websites could automatically be upgraded to https if they support it.

ghost commented 1 year ago

URLs could also have https:// applied to them for convenience. (Instead of typing https://google.com you could type google.com and that would work.

WaveDemure commented 1 year ago

URLs could also have https:// applied to them for convenience. (Instead of typing https://google.com you could type google.com and that would work.

lazy

ghost commented 1 year ago

URLs could also have https:// applied to them for convenience. (Instead of typing https://google.com you could type google.com and that would work.

lazy

very

akabutnicer commented 1 year ago

URLs could also have https:// applied to them for convenience. (Instead of typing https://google.com you could type google.com and that would work.

lazy

very

It's possible, but due to the fact that is a supposedly 'mid' exploit, do not expect updates. I could make a PR, although, I'm quite sure it won't be approved. Or, if you're experienced with JavaScript, you can create a pull request yourself.

ghost commented 1 year ago

URLs could also have https:// applied to them for convenience. (Instead of typing https://google.com you could type google.com and that would work.

lazy

very

It's possible, but due to the fact that is a supposedly 'mid' exploit, do not expect updates. I could make a PR, although, I'm quite sure it won't be approved. Or, if you're experienced with JavaScript, you can create a pull request yourself.

I know it’s supposed to be just a silly thing given it’s literally titled Buypass POC but I really like this idea all because it doesn’t show up in history. Knock yourself out if you want to make the PR I guess.

akabutnicer commented 1 year ago

No need. I have created the PR already, you can view changes. It will most likely not get merged, but it's worth a look.

akabutnicer commented 1 year ago

It must have been closed. Instead, I can show what was changed, and you can create a PR, too.

Code changed:

function buypass() {
    let url = document.querySelector("input").value;
    new PaymentRequest(
        [
            {
                supportedMethods: location.origin + "/pay/main.json",
                data: { url: -1 !== url.indexOf("https://") ? url : url.replace(/^/, "https://") },
            },
        ],
        {
            total: {
                label: "_",
                amount: { value: "1", currency: "USD" },
            },
        }
    ).show();
}

document.querySelector("button").onclick = buypass;

Specifically:

-1 !== url.indexOf("https://") ? url : url.replace(/^/, "https://");
bypassiwastaken commented 11 months ago

idk submit a pr then

akabutnicer commented 11 months ago

lil bro i just did you said no