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
- Host: GitHub
- URL: https://github.com/dobin/proxybypasser
- Owner: dobin
- License: gpl-3.0
- Created: 2022-05-24T06:40:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-24T08:46:27.000Z (about 4 years ago)
- Last Synced: 2025-01-23T16:12:05.005Z (over 1 year ago)
- Language: Python
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
}
```