From 703fa43a3ad7989cfb28e1f7625dbfb02ebfc4a4 Mon Sep 17 00:00:00 2001 From: Deathwalker9959 Date: Tue, 5 Dec 2023 17:27:06 +0200 Subject: [PATCH 1/4] Create go.yml --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..0065213 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... From 22f5c885953eeb14365442f59a42a3b36633b402 Mon Sep 17 00:00:00 2001 From: Deathwalker9959 Date: Tue, 5 Dec 2023 17:35:41 +0200 Subject: [PATCH 2/4] Update go workflow --- .github/workflows/go.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0065213..6869337 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,8 +21,19 @@ jobs: with: go-version: '1.20' - - name: Build - run: go build -v ./... - - name: Test run: go test -v ./... + + - name: Create dist directory + run: mkdir dist + + - name: Build + run: go build -o ./dist -v ./... + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.3 + with: + # Artifact name + name: native_http_proxy + # A file, directory or wildcard pattern that describes what to upload + path: ./dist/* From 31d2910cb151ce39764f259a043c6adc4edd224f Mon Sep 17 00:00:00 2001 From: Deathwalker9959 Date: Tue, 5 Dec 2023 18:07:04 +0200 Subject: [PATCH 3/4] Create LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..03f4687 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Andreas Malathouras + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 98f215153353f51d3d07ba2badcfec68d9791535 Mon Sep 17 00:00:00 2001 From: Deathwalker9959 Date: Tue, 5 Dec 2023 18:07:21 +0200 Subject: [PATCH 4/4] Create README.md --- README.md | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a0c7bfc --- /dev/null +++ b/README.md @@ -0,0 +1,80 @@ +# HTTP Tunnel Proxy + +This HTTP tunnel proxy is designed to serve both HTTP/1.1 and HTTP/2 requests over TCP while randomizing its TLS fingerprint to evade scraper blocking through TLS fingerprinting techniques. + +## Table of Contents + +- [Features](#features) +- [Installation](#installation) +- [Usage](#usage) +- [Configuration](#configuration) +- [Contributing](#contributing) +- [License](#license) + +## Features + +- **HTTP/1.1 and HTTP/2 Support:** This proxy supports both HTTP/1.1 and HTTP/2 protocols, making it versatile for various web applications. + +- **Randomized TLS Fingerprint:** The proxy continuously randomizes its TLS fingerprint, making it difficult scraper detection to identify and block based on TLS fingerprinting. + +- **TCP Tunneling:** The proxy tunnels traffic over TCP, ensuring robust and reliable communication. +## Source Installation + +1. Clone this repository to your server: + + ```bash + git clone https://github.com/Deathwalker9959/native-http-proxy.git + ``` + +2. Navigate to the project directory: + + ```bash + cd native-http-proxy + ``` + +3. Install the required dependencies: + + ```bash + go get + ``` +4. Install as binary + ```bash + go install native-http-proxy + ``` + +## Usage + +1. Start the HTTP tunnel proxy: + + ```bash + ./native-http-proxy --port 8080 + ``` + +2. Configure your client to use the proxy. Ensure that you point your client to the correct proxy server address and port. + +3. Enjoy seamless HTTP/1.1 and HTTP/2 traffic while evading scraper blocking! + +## Configuration + +You can customize the behavior of the HTTP tunnel proxy by modifying the commandline arguements. Here are some of the available configuration options: + +- `port`: The port on which the proxy server listens. + +Make sure to review and update the configuration to suit your specific requirements. + +## Contributing + +Contributions are welcome! If you want to contribute to this project, please follow these steps: + +1. Fork the repository. +2. Create a new branch for your feature or bug fix. +3. Make your changes and commit them. +4. Create a pull request describing your changes. + +## License + +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. + +--- + +Feel free to use this HTTP tunnel proxy for your web scraping, data gathering, or other network-related projects. If you have any questions or encounter issues, don't hesitate to open an issue or reach out to us for support. Happy proxying!