A proof of concept of a PHP Miner that can mine DuinoCoin

Overview

Duino Coin - PHP Miner

This is a proof of concept. This miner is provided as is, with no guarantee it will work as intended for you. I don't intend to actively maintain this miner. I'm also not responsible for how you use it.

Why did you do it?

I only made this to have some fun and to prove that PHP 8 is indeed faster than python.

For sure there are a lot of room for improvements such as spawning multiple async threads (either in the guessing algorithm or multiple instances) to make use of multi-processors. However, I don't intend to do it for the sake of simplicity.

You might also like...
A php.ini scanner for best security practices

Scanner for PHP.ini The Iniscan is a tool designed to scan the given php.ini file for common security practices and report back results. Currently it

🤖 Id obfuscation based on Knuth's multiplicative hashing method for PHP.
🤖 Id obfuscation based on Knuth's multiplicative hashing method for PHP.

Optimus id transformation With this library, you can transform your internal id's to obfuscated integers based on Knuth's integer hash. It is similar

㊙️ AntiXSS | Protection against Cross-site scripting (XSS) via PHP

㊙️ AntiXSS "Cross-site scripting (XSS) is a type of computer security vulnerability typically found in Web applications. XSS enables attackers to inje

An experimental object oriented SSH api in PHP

PHP SSH (master) Provides an object-oriented wrapper for the php ssh2 extension. Requirements You need PHP version 5.3+ with the SSH2 extension. Insta

TCrypto is a simple and flexible PHP 5.3+ in-memory key-value storage library

About TCrypto is a simple and flexible PHP 5.3+ in-memory key-value storage library. By default, a cookie will be used as a storage backend. TCrypto h

Fetches random integers from random.org instead of using PHP's PRNG implementation

TrulyRandom Composer-compatible library to interact with random.org's API in order to generate truly random lists of integers, sequences of integers,

PHPGGC is a library of PHP unserialize() payloads along with a tool to generate them, from command line or programmatically.

PHPGGC: PHP Generic Gadget Chains PHPGGC is a library of unserialize() payloads along with a tool to generate them, from command line or programmatica

Let's Encrypt/ACME Command Line client written in PHP

Acme PHP Acme PHP is a simple yet very extensible CLI client for Let's Encrypt that will help you get and renew free HTTPS certificates. Acme PHP is a

PHP Malware Finder

PHP Malware Finder _______ __ __ _______ | ___ || |_| || | | | | || || ___| | |___| || || |___ Webshell finder, |

Comments
  • Failed to open stream

    Failed to open stream

    $ php miner.php PHP Warning: require(/home/pi/duino-coin-php-miner-main/vendor/autoload.php): Failed to open stream: No such file or directory in /home/pi/duino-coin-php-miner-main/miner.php on line 2 PHP Fatal error: Uncaught Error: Failed opening required '/home/pi/duino-coin-php-miner-main/vendor/autoload.php' (include_path='.:/usr/share/php') in /home/pi/duino-coin-php-miner-main/miner.php:2 Stack trace: #0 {main} thrown in /home/pi/duino-coin-php-miner-main/miner.php on line 2

    Envirnment: PHP8

    opened by z7737546436 1
  • Socket closed

    Socket closed

    Hello, Thank you @ricardofiorani for your awesome project. I have an issue with your script, after few seconds I get a "socket closed" error, then it reconnects, receives a new work, and the socket is closing again. I'm stuck in this weird loop.

    • [2021-08-07T11:58:44.602004+00:00] name.INFO: Connected to server version: 2.6 [] []
    • [2021-08-07T11:58:44.623332+00:00] name.INFO: SERVER SENT DATA ["d647a041bd22b7a9926b5139c546a903977f23ce,29a5cc6bc71655e134a076318a72258964bbee3e,75000\n"] []
    • [2021-08-07T11:58:44.623480+00:00] name.INFO: Starting to work {"baseHash":"d647a041bd22b7a9926b5139c546a903977f23ce","digest":"29a5cc6bc71655e134a076318a72258964bbee3e","difficulty":"75000\n"} []
    • [2021-08-07T11:58:49.262216+00:00] name.DEBUG: Time difference [4.638556003570557] []
    • [2021-08-07T11:58:49.262479+00:00] name.INFO: FOUND! {"result":4060325} []
    • [2021-08-07T11:58:49.262591+00:00] name.INFO: Current HashRate {"hashRate":"8.75 Gh/s"} []
    • [2021-08-07T11:58:49.284931+00:00] name.INFO: SERVER SENT DATA ["You have been moved to a higher difficulty tier\n"] []
    • [2021-08-07T11:58:49.285086+00:00] name.INFO: Connected to server version: 0 [] []
    • [2021-08-07T11:59:04.285648+00:00] name.WARNING: [SOCKET CLOSED] [] []
    • [2021-08-07T11:59:04.285866+00:00] name.ALERT: Sleeping 10 seconds before trying again... [] []
    • [2021-08-07T11:59:05.290359+00:00] name.INFO: 10 seconds before trying again. [] []
    • [2021-08-07T11:59:06.292969+00:00] name.INFO: 9 seconds before trying again. [] []
    • [2021-08-07T11:59:07.294461+00:00] name.INFO: 8 seconds before trying again. [] []
    • [2021-08-07T11:59:08.297331+00:00] name.INFO: 7 seconds before trying again. [] []
    • [2021-08-07T11:59:09.301297+00:00] name.INFO: 6 seconds before trying again. [] []
    • [2021-08-07T11:59:10.302880+00:00] name.INFO: 5 seconds before trying again. [] []
    • [2021-08-07T11:59:11.303665+00:00] name.INFO: 4 seconds before trying again. [] []
    • [2021-08-07T11:59:12.305571+00:00] name.INFO: 3 seconds before trying again. [] []
    • [2021-08-07T11:59:13.310144+00:00] name.INFO: 2 seconds before trying again. [] []
    • [2021-08-07T11:59:14.313803+00:00] name.INFO: 1 seconds before trying again. [] []
    • [2021-08-07T11:59:15.316519+00:00] name.INFO: 0 seconds before trying again. [] []
    • [2021-08-07T11:59:15.316621+00:00] name.ALERT: Connecting to 51.15.127.80:2811... [] []
    • [2021-08-07T11:59:15.343641+00:00] name.INFO: Asking server for a new job... [] []
    • [2021-08-07T11:59:15.366198+00:00] name.INFO: SERVER SENT DATA ["2.6"] []
    • [2021-08-07T11:59:15.366367+00:00] name.INFO: Connected to server version: 2.6 [] []
    • [2021-08-07T11:59:15.387372+00:00] name.INFO: SERVER SENT DATA ["a1c86617a9c1618600fd4d9a3d3e8504664d5d84,26b244d8e0c60a416fa49e98bc9f733d30e2cc68,75000\n"] []

    Do you know what's wrong and how I could fix it?

    Thanks

    opened by JulienDev 1
  • autoload.php missing?

    autoload.php missing?

    Fatal error: Uncaught Error: Failed opening required '/code/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /code/miner.php:2

    doesnt seem to exist in downloaded zip file or in any directory

    opened by modfiles 1
  • Clarification about recent updates

    Clarification about recent updates

    First of all, thank you for your issue raised. I appreciate it.

    Now, I would like to announce that this miner does not work at the moment with the DuinoCoin. Basically, because the server rejects any found solution that is not within the "expected time". Now, currently, I don't have much time to investigate, but I have to say that I got disappointed that the algorithm DUCO-S1 was changed (again)

    These kinds of changes make it hard for external collaboration and maintenance.

    Therefore, I'm going to wait for DUINO coin code base to get more mature and stable to rewrite and fix for once this miner.

    If anyone feels like giving it a try, please continue your work based on this branch -> https://github.com/ricardofiorani/duino-coin-php-miner/pull/7

    Thank you for your understanding

    opened by ricardofiorani 2
Releases(v1.0.0)
Owner
Ricardo Fiorani
It's all fun and games until you get tangled in WebSockets with NodeJS trying to make your own multiplayer game.
Ricardo Fiorani
ChestRandomBP: This plugin generates chests in random places within a specific world. Where you can customize what each one of them contains, the time and the world of spawning.

ChestRandomBP ChestRandomBP: This plugin generates chests, it works PocketMine-MP and random places within a specific world. Where you can customize w

null 5 Sep 19, 2021
Damn Vulnerable Web Services is an insecure web application with multiple vulnerable web service components that can be used to learn real world web service vulnerabilities.

Damn Vulnerable Web Services is an insecure web application with multiple vulnerable web service components that can be used to learn real world web service vulnerabilities.

Sam Sanoop 416 Dec 17, 2022
CrimeFlare - This tools can help you to see the real IP behind CloudFlare protected websites

CrimeFlare is a useful tool for bypassing websites protected by CloudFlare WAF, with this tool you can easily see the real IP of websites that have been protected by CloudFlare. The resulting information is certainly very useful for conducting further penetration testing, and analyzing websites with the same server.

Zidan Rahmandani 428 Jan 3, 2023
PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

PHPIDS PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web ap

null 752 Jan 3, 2023
php-chmod is a PHP library for easily changing permissions recursively.

PHP chmod php-chmod is a PHP library for easily changing the permissions recursively. Versions & Dependencies Version PHP Documentation ^1.1 ^7.4 curr

Mathias Reker ⚡️ 5 Oct 7, 2022
PHP 5.x support for random_bytes() and random_int()

random_compat PHP 5.x polyfill for random_bytes() and random_int() created and maintained by Paragon Initiative Enterprises. Although this library sho

Paragon Initiative Enterprises 8k Jan 5, 2023
PHP Secure Communications Library

phpseclib - PHP Secure Communications Library Supporting phpseclib Become a backer or sponsor on Patreon One-time donation via PayPal or crypto-curren

null 4.9k Jan 7, 2023
Simple Encryption in PHP.

php-encryption composer require defuse/php-encryption This is a library for encrypting data with a key or password in PHP. It requires PHP 5.6 or new

Taylor Hornby 3.6k Jan 3, 2023
Standards compliant HTML filter written in PHP

HTML Purifier HTML Purifier is an HTML filtering solution that uses a unique combination of robust whitelists and aggressive parsing to ensure that no

Edward Z. Yang 2.7k Jan 5, 2023
A database of PHP security advisories

PHP Security Advisories Database The PHP Security Advisories Database references known security vulnerabilities in various PHP projects and libraries.

null 1.9k Dec 18, 2022