An open API service indexing awesome lists of open source software.

https://github.com/dobin/proxybypasser

Bypass proxy download restrictions with JavaScript download
https://github.com/dobin/proxybypasser

Last synced: over 1 year ago
JSON representation

Bypass proxy download restrictions with JavaScript download

Awesome Lists containing this project

README

          

# Proxy Bypasser

Provides a HTTP server which serves a directory of files,
which can be downloaded via JavaScript. They will be zipped. Indicated filetype is PDF (not really relevant).

Proxies are blind for this technique.

## Usage

```
$ pip install -r requirements.txt
$ python3 proxybypasser.py --path /mnt/data
```

## What?

Content of file is in `{{filecontent}}` inside a javascript variable inside a
html. No HTTP request to the file is being performed, its all in the browser.

`download.html`:
```javascript

function download() {
const linkSource = `data:application/pdf;base64,{{filecontent}}`;
const downloadLink = document.createElement('a');
document.body.appendChild(downloadLink);

downloadLink.href = linkSource;
downloadLink.target = '_self';
downloadLink.download = "{{filename}}";
downloadLink.click();
}

```