Coder Social home page Coder Social logo

peer2profit's Introduction

peer2profit

Contributors Forks Stargazers Issues MIT License Docker Pulls



Logo

Peer2Profit

Docker image for Peer2Profit

SHARE YOUR TRAFFIC AND PROFIT ON IT!

Github | Docker Hub

Language

English | 中文文档

Introduction

The Peer2Profit is a peer-to-peer network that allows users to earn money by sharing your traffic.

This project is the first docker image for Peer2Profit in the whole Internet, even earlier than the Peer2Profit official image.

It has below features:

  1. Supporting two tags of image based on Alpine and Debian-11. The tag alpine is absolutely the smallest image, and the tag latest is the Debian-11 based image.

  2. The script peer2fly.sh will help with below steps

    • Install the necessary packages
    • Set Swap Memory(two times of the physical memory)
    • Install docker and docker-compose
    • Setting email and container numbers
    • Start the containers as you required with docker-compose
  3. Support Docker image for linux/386, linux/amd64, linux/arm/v7, linux/arm64

Notes

  • Verified on Ubuntu16+, Debian10 and CentOS8
  • Preferred Russian VPS, where residential IP is better
  • Try it if you are interested via my referrals

Usage

1. Interactive

bash <(curl -fsSL bit.ly/peer2fly)

Or giving the parameters:

curl -fsSL bit.ly/peer2fly |bash -s -- --email [email protected] --number 5

2. Download and run with parameters

wget -q https://bit.ly/peer2fly -O peer2fly.sh

Given the parameters, for example

bash peer2fly.sh --email [email protected] --number 10

3. Install as a service on Ubuntu/Debian system

bash <(curl -fsSL git.io/JzDdQ) [email protected]

Disclaimer

This program is for learning purposes only, not for profit, please delete it within 24 hours after downloading, not for any commercial use. The text, data and images are copyrighted, if reproduced, please indicate the source.

Use of this program is subject to the deployment disclaimer. Use of this program is subject to the laws and regulations of the country where the server is deployed, the country where it is located, and the country where the user is located, and the author of the program is not responsible for any misconduct of the user.

Stargazers over time

Stargazers over time

peer2profit's People

Contributors

dependabot[bot] avatar enwaiax 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

Watchers

 avatar  avatar

peer2profit's Issues

Question

When you want to run it more than once, will this script auto fetch some proxies from internet and use them to get different IP for every container to increase profits?

Doesn't work when trying to install as service on Ubuntu server 20.04

bash <(curl -fsSL git.io/JzDdQ) email redracted
Installing dependencies...
Installing p2pclient...
--2023-12-03 18:48:09-- https://updates.peer2profit.app/peer2profit_0.48_amd64.deb
Resolving updates.peer2profit.app (updates.peer2profit.app)... 178.32.99.172
Connecting to updates.peer2profit.app (updates.peer2profit.app)|178.32.99.172|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10381318 (9.9M) [application/octet-stream]
Saving to: ‘p2pclient.deb’

p2pclient.deb 100%[=======================================================================>] 9.90M 35.2MB/s in 0.3s

2023-12-03 18:48:09 (35.2 MB/s) - ‘p2pclient.deb’ saved [10381318/10381318]

Selecting previously unselected package peer2profit.
(Reading database ... 113633 files and directories currently installed.)
Preparing to unpack p2pclient.deb ...
Unpacking peer2profit (0.48) ...
dpkg: dependency problems prevent configuration of peer2profit:
peer2profit depends on libxcb-icccm4; however:
Package libxcb-icccm4 is not installed.
peer2profit depends on libxcb-image0; however:
Package libxcb-image0 is not installed.
peer2profit depends on libxcb-keysyms1; however:
Package libxcb-keysyms1 is not installed.
peer2profit depends on libxcb-render-util0; however:
Package libxcb-render-util0 is not installed.
peer2profit depends on libxcb-render0; however:
Package libxcb-render0 is not installed.
peer2profit depends on libxcb-xinerama0; however:
Package libxcb-xinerama0 is not installed.
peer2profit depends on libxcb-xkb1; however:
Package libxcb-xkb1 is not installed.
peer2profit depends on libxkbcommon-x11-0; however:
Package libxkbcommon-x11-0 is not installed.
peer2profit depends on libxkbcommon0; however:
Package libxkbcommon0 is not installed.
peer2profit depends on libxcb-util1; however:
Package libxcb-util1 is not installed.

dpkg: error processing package peer2profit (--install):
dependency problems - leaving unconfigured
Processing triggers for mime-support (3.64ubuntu1) ...
Errors were encountered while processing:
peer2profit
Starting peer2profit...
Created symlink /etc/systemd/system/multi-user.target.wants/peer2profit.service → /etc/systemd/system/peer2profit.service.
● peer2profit.service - peer2profit
Loaded: loaded (/etc/systemd/system/peer2profit.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2023-12-03 18:48:14 UTC; 25ms ago
Process: 3325947 ExecStart=/usr/bin/p2pclient -l [email and ip address];8.8.8.8,1.1.1.1 (code=exited, status=203/EXEC)
Main PID: 3325947 (code=exited, status=203/EXEC)

how to use it on gcp?

it can be used on aws but not on gcp
info. about the gcp VM: Intel Broadwell x86/64 [debian-11-bullseye-v20230206]

here are the logs

Swap already enabled
Filename Type Size Used Priority
/swapfile file 8048636 0 -2
total used free shared buff/cache available
Mem: 3.8Gi 133Mi 3.4Gi 0.0Ki 363Mi 3.5Gi
Swap: 7.7Gi 0B 7.7Gi
Installing docker

Executing docker install script, commit: 66474034547a96caa0a25be56051ff8b726a1b28

  • sh -c 'apt-get update -qq >/dev/null'
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian bullseye InRelease: Splitting up /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_InRelease into data and signature failed
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian bullseye-updates InRelease: Splitting up /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye-updates_InRelease into data and signature failed
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian bullseye-backports InRelease: Splitting up /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye-backports_InRelease into data and signature failed
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.cloud.google.com/apt google-compute-engine-bullseye-stable InRelease: Splitting up /var/lib/apt/lists/packages.cloud.google.com_apt_dists_google-compute-engine-bullseye-stable_InRelease into data and signature failed
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.cloud.google.com/apt cloud-sdk-bullseye InRelease: Splitting up /var/lib/apt/lists/packages.cloud.google.com_apt_dists_cloud-sdk-bullseye_InRelease into data and signature failed
    W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Splitting up /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_InRelease into data and signature failed
    W: Failed to fetch http://security.debian.org/debian-security/dists/bullseye-security/InRelease Error writing to file - write (28: No space left on device) [IP: 151.101.78.132 80]
    W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Splitting up /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye-updates_InRelease into data and signature failed
    W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-backports/InRelease Splitting up /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye-backports_InRelease into data and signature failed
    W: Failed to fetch http://packages.cloud.google.com/apt/dists/google-compute-engine-bullseye-stable/InRelease Splitting up /var/lib/apt/lists/packages.cloud.google.com_apt_dists_google-compute-engine-bullseye-stable_InRelease into data and signature failed
    W: Failed to fetch http://packages.cloud.google.com/apt/dists/cloud-sdk-bullseye/InRelease Splitting up /var/lib/apt/lists/packages.cloud.google.com_apt_dists_cloud-sdk-bullseye_InRelease into data and signature failed
    W: Some index files failed to download. They have been ignored, or old ones used instead.
  • sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null'
    E: You don't have enough free space in /var/cache/apt/archives/.
    Failed to enable unit: Unit file docker.service does not exist.
    Failed to start docker.service: Unit docker.service not found.
    docker installation failed, please check your environment

Proxy support for peer2profit

Hi,
I tried to add proxy but it does not work since the file is not in the path it is expected.
Manually adding proxychains to p2pclient does not work.
Is it possible to make this compatible with proxychains or any other application to redirect the traffic from p2pclient application in linux.

Thank you

Blocked

Hello, i run docker Image, does Not work. Error "licence run out"

Looked peer2profit deleted the docker reposity

Trying to run script in WSL2 doesnt work

I dont really know if its supossed to work in WSL2, I'm running it as the instructions say in Ubuntu 20.04 LTS, docker installed and docker-compose installed too. but.. it doesnt seem to work.

It doesnt seem to connect to docker properly.
`root@ALC-902SN73:/home/david/Peer2Profit# ./peer2fly.sh --email "redacted@gmail.com" --number "10"
Swap already enabled
cat: /proc/swaps: No such file or directory
total used free shared buff/cache available
Mem: 31Gi 12Gi 19Gi 17Mi 223Mi 19Gi
Swap: 96Gi 58Mi 95Gi
Linux distribution is: "Ubuntu"
Linux version is: "20.04"
Docker has been installed, skipped
docker-compose has been installed, skipped
Your email is: redacted@gmail.com
Your container numbers is: 10
Will use defalut version: enwaiax/peer2profit:latest
proxychains4.conf found, skipped
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 677, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1277, in request
File "http/client.py", line 1323, in _send_request
File "http/client.py", line 1272, in endheaders
File "http/client.py", line 1032, in _send_output
File "http/client.py", line 972, in send
File "docker/transport/unixconn.py", line 43, in connect
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "requests/adapters.py", line 449, in send
File "urllib3/connectionpool.py", line 727, in urlopen
File "urllib3/util/retry.py", line 410, in increment
File "urllib3/packages/six.py", line 734, in reraise
File "urllib3/connectionpool.py", line 677, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1277, in request
File "http/client.py", line 1323, in _send_request
File "http/client.py", line 1272, in endheaders
File "http/client.py", line 1032, in _send_output
File "http/client.py", line 972, in send
File "docker/transport/unixconn.py", line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "docker/api/client.py", line 214, in _retrieve_server_version
File "docker/api/daemon.py", line 181, in version
File "docker/utils/decorators.py", line 46, in inner
File "docker/api/client.py", line 237, in _get
File "requests/sessions.py", line 543, in get
File "requests/sessions.py", line 530, in request
File "requests/sessions.py", line 643, in send
File "requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "docker-compose", line 3, in
File "compose/cli/main.py", line 81, in main
File "compose/cli/main.py", line 200, in perform_command
File "compose/cli/command.py", line 70, in project_from_options
File "compose/cli/command.py", line 153, in get_project
File "compose/cli/docker_client.py", line 43, in get_client
File "compose/cli/docker_client.py", line 170, in docker_client
File "docker/api/client.py", line 197, in init
File "docker/api/client.py", line 222, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))
[13945] Failed to execute script docker-compose
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 677, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1277, in request
File "http/client.py", line 1323, in _send_request
File "http/client.py", line 1272, in endheaders
File "http/client.py", line 1032, in _send_output
File "http/client.py", line 972, in send
File "docker/transport/unixconn.py", line 43, in connect
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "requests/adapters.py", line 449, in send
File "urllib3/connectionpool.py", line 727, in urlopen
File "urllib3/util/retry.py", line 410, in increment
File "urllib3/packages/six.py", line 734, in reraise
File "urllib3/connectionpool.py", line 677, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1277, in request
File "http/client.py", line 1323, in _send_request
File "http/client.py", line 1272, in endheaders
File "http/client.py", line 1032, in _send_output
File "http/client.py", line 972, in send
File "docker/transport/unixconn.py", line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "docker/api/client.py", line 214, in _retrieve_server_version
File "docker/api/daemon.py", line 181, in version
File "docker/utils/decorators.py", line 46, in inner
File "docker/api/client.py", line 237, in _get
File "requests/sessions.py", line 543, in get
File "requests/sessions.py", line 530, in request
File "requests/sessions.py", line 643, in send
File "requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "docker-compose", line 3, in
File "compose/cli/main.py", line 81, in main
File "compose/cli/main.py", line 200, in perform_command
File "compose/cli/command.py", line 70, in project_from_options
File "compose/cli/command.py", line 153, in get_project
File "compose/cli/docker_client.py", line 43, in get_client
File "compose/cli/docker_client.py", line 170, in docker_client
File "docker/api/client.py", line 197, in init
File "docker/api/client.py", line 222, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))
[13949] Failed to execute script docker-compose
Clean cache
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 677, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1277, in request
File "http/client.py", line 1323, in _send_request
File "http/client.py", line 1272, in endheaders
File "http/client.py", line 1032, in _send_output
File "http/client.py", line 972, in send
File "docker/transport/unixconn.py", line 43, in connect
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "requests/adapters.py", line 449, in send
File "urllib3/connectionpool.py", line 727, in urlopen
File "urllib3/util/retry.py", line 410, in increment
File "urllib3/packages/six.py", line 734, in reraise
File "urllib3/connectionpool.py", line 677, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1277, in request
File "http/client.py", line 1323, in _send_request
File "http/client.py", line 1272, in endheaders
File "http/client.py", line 1032, in _send_output
File "http/client.py", line 972, in send
File "docker/transport/unixconn.py", line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "docker/api/client.py", line 214, in _retrieve_server_version
File "docker/api/daemon.py", line 181, in version
File "docker/utils/decorators.py", line 46, in inner
File "docker/api/client.py", line 237, in _get
File "requests/sessions.py", line 543, in get
File "requests/sessions.py", line 530, in request
File "requests/sessions.py", line 643, in send
File "requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "docker-compose", line 3, in
File "compose/cli/main.py", line 81, in main
File "compose/cli/main.py", line 200, in perform_command
File "compose/cli/command.py", line 70, in project_from_options
File "compose/cli/command.py", line 153, in get_project
File "compose/cli/docker_client.py", line 43, in get_client
File "compose/cli/docker_client.py", line 170, in docker_client
File "docker/api/client.py", line 197, in init
File "docker/api/client.py", line 222, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))
[13966] Failed to execute script docker-compose
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?`

Support for ARMv7

Your introduction says "Support Docker image for linux/386, linux/amd64, linux/arm/v7, linux/arm64".

However, when I try to this on my Raspberry, I get the error message

me@ubuntu:~# docker-compose up
[+] Running 0/1
 ⠇ Peer2Profit Pulling                                                                        1.8s
no matching manifest for linux/arm/v7 in the manifest list entries

The entry on my docker-compose.yaml looks like this:

    Peer2Profit:
        container_name: Peer2Profit
        image: enwaiax/peer2profit:alpine
        environment:
            - email= ...
            - use_proxy=false
        restart: unless-stopped

Am I doing something wrong or is amd64 actually the only supported arch? I also tried the latest for the debian image, but that yielded the same error.

能否做个Docker命令创建的命令呢,运行交互脚本和一键脚本后,只显示了一下SWAP和LINUX信息和版本,就没其它显示和下步了

能否做个Docker命令创建的命令呢,运行交互脚本和一键脚本后,只显示了一下SWAP和LINUX信息和版本,就没其它显示和下步了~
[root@NAS peer2profit]# ./peer2fly.sh
Swap already enabled
Filename Type Size Used Priority
/dev/md8 partition 999868 313344 -1
total used free shared buff/cache available
Mem: 1.8G 700M 42M 19M 1.1G 1.1G
Swap: 976M 306M 670M
Linux distribution is: nas
Linux version is: 2018.04.9
Unsupported linux system
[root@NAS peer2profit]#

Auto fetch proxies every 30 min from link

Add option that you can provide link and it will auto fetch proxies from it every 30 min (or make it be custom interval) and on start. So you can make gist file with proxies and update it when you get new proxies

Error

root@instance:/home/ubuntu# bash <(curl -fsSL bit.ly/peer2fly)
Swap already enabled
Filename                                Type            Size            Used            Priority
/swapfile                               file            2097148         60808           -2
              total        used        free      shared  buff/cache   available
Mem:           11Gi       6.8Gi       3.6Gi       4.0Mi       1.3Gi       4.7Gi
Swap:         2.0Gi        59Mi       1.9Gi
ERROR: Unsupported architecture: aarch64

p2pclient not available anymore

The download link to p2pclient_0.60_amd64.deb is not working anymore. Is there any workaround to run this version of software?

Peer2profit Is on but not earning

Hello, thank you very much for your work.
I successfully readapted a bit your code and I have now the docker peer2profit running, as I can also see it in my dashboard .
The problem is that is not sharing bandwidth, it displays 0 Bites on the "mynetworks" page .
Is now like 4 days that is up and running.
Do you have any idea of why this is happening?

I'm using a Linux virtual machine , which I'm paying to an host provider monthly for other purposes

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.