{"id":27700329,"url":"https://github.com/aryanslayerrr/miner-automation","last_synced_at":"2025-04-25T18:58:45.416Z","repository":{"id":288818586,"uuid":"969256049","full_name":"AryanSLAYERRR/miner-automation","owner":"AryanSLAYERRR","description":"A miner that works on a vulrenability of a website","archived":false,"fork":false,"pushed_at":"2025-04-19T19:54:09.000Z","size":50,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T21:06:56.156Z","etag":null,"topics":["crypto","exploit","mining","monero","python","xmrig"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AryanSLAYERRR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-19T18:32:09.000Z","updated_at":"2025-04-19T20:47:30.000Z","dependencies_parsed_at":"2025-04-22T00:15:41.703Z","dependency_job_id":null,"html_url":"https://github.com/AryanSLAYERRR/miner-automation","commit_stats":null,"previous_names":["aryanslayerrr/crypto-miner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AryanSLAYERRR%2Fminer-automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AryanSLAYERRR%2Fminer-automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AryanSLAYERRR%2Fminer-automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AryanSLAYERRR%2Fminer-automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AryanSLAYERRR","download_url":"https://codeload.github.com/AryanSLAYERRR/miner-automation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250878752,"owners_count":21501741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crypto","exploit","mining","monero","python","xmrig"],"created_at":"2025-04-25T18:58:44.584Z","updated_at":"2025-04-25T18:58:45.410Z","avatar_url":"https://github.com/AryanSLAYERRR.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monero-Miner\n# ⚠️ DISCLAIMER\n\nThis project is provided **for educational purposes only**. The developer is **not responsible** for any misuse, consequences, damage, or violations resulting from the use of this code. **Use at your own risk.**\n\nIf anyone does want to know how it works feel free to contact me on my IG, i dont find it useful to explain each part of the files here, as most will use it for personal purposes\n---\nThis project uses XMRIG CC by [Bendr0id](https://github.com/Bendr0id/xmrigCC)\n\n# ‼️‼️IMPORTANT:\nFor Now the code only supports MONERO mining, if this gets attention il add other CPU intensive options for mining. OR you can edit the command.txt file yourself if you know what you are doing.\n\n\n# 💻 Browser Miner Automation with Playwright\n\nThis project automates browser-based crypto mining using [Playwright](https://playwright.dev/python/) and Google account OTP-based login. It logs into a vulnerable platform, opens multiple tabs, and injects a safe JavaScript-based keep-alive script to maintain mining sessions.\n\n## ⚙️ Features\n\n- 🔐 Auto-login using Gmail OTP (via Gmail API)\n- 🚀 Multi-tab mining automation (customizable tab count)\n- 🧠 JavaScript-based keep-alive system (safe \u0026 non-intrusive)\n- 🔄 Command injection into terminal through the web interface\n- 🧼 Email cleanup to avoid inbox clutter\n- 💵 You Get approx 700-800 Hashrate on every TAB\n- TO DO - More advance detections for inactivity, Better config optimization, aim for higher hashrate \n\n## 🛠 Requirements\n- Python 3.10+\n- Playwright \n- Gmail API credentials (`credentials.json`)\n- Google API packages:\n  ```bash\n  pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib\n- Install playwright browser binaries\n  \n## 📁 Setup\n\n1. **Clone the Repository**\n  ```bash\n  git clone https://github.com/AryanSLAYERRR/miner-automation.git\n  cd miner-automation\n  ```\n\n2. **Install Python Dependencies**\n  ```bash\n  pip install -r requirements.txt\n  playwright install\n  ```\n\n3. **Set Up Gmail API**\n   \n  🟥 **NOTE** \n  **You will be giving the BOT full access to your gmail, so using alt gmail ID is highly preffered**\n  \n  1. **Create a Google Cloud Project**\n      - Go to: https://console.cloud.google.com/\n      \n      - Click \"Create Project\" → give it a name (like “Gmail Login BOT”).\n    \n  2. **Enable Gmail API**\n      - After project is created, go to \"APIs \u0026 Services\" \u003e Library.\n      \n      - Search for \"Gmail API\" → Click Enable.\n\n  3. **Create OAuth Credentials**\n      - Go to APIs \u0026 Services \u003e Credentials.\n      \n      - Click \"Create Credentials\" → OAuth client ID\n      \n      - Choose Desktop App.\n      \n      - Download the credentials.json file.\n      \n      - Rename it credentials.json and save it in the same directory\n\n\n4. **Add Your Monero Wallet Address**\n      - Use any wallet supported by nanopool.org,\n        Open `command.txt` and edit the field (Your_wallet_address) with you own wallet address, there are 3 such fields\n\n5. **Add your email**\n      - Head to main.py and edit (\"your_email\") with the email you used for creating the cloud project\n\n## 🚀 Usage\n\nRun the script:\n\n```bash\npython gmailcode.py\n```\nThe script will:\n  - Open up a google auth window\n  - Select the account you used to create credentials.json\n  - You may get an error of insufficent access, or the dev has not allowed you to access it\n  - To fix this, Go to console.cloud.google.com\n  - Open your project\n  - Go to APIS\n  - Then Go to OAuth consent Screen\n  - Click on Audience\n  - Under Test Users, Click on Add users\n  - Fill the email you used for this project\n  - Save\n  - Now rerun `python gmailcode.py`\n  - If Sucessfull, it should save a file named `token.json`\n\n  - Now Run\n    ```bash\n    python main.py\n    ```\n  - This will start the program and you should see chromium tab pop up and simulating the login process for you\n\n**OPTIONS**\n  - You can edit the num_tabs field if you want more tabs mining ( Do not exceed more than 90% ram consumption, as it may cause forceful inactivity)\n  - To check mining progress, head to https://nanopool.org and enter your wallet address in the search field\n\n  20 tabs being run\n  ![image](https://github.com/user-attachments/assets/7c697625-3813-4759-a4d7-9e380e3ca116)\n\n  ![image](https://github.com/user-attachments/assets/fc672b28-2438-41c5-951b-de3ff1b932bb)\n\n**NOTE**\n**THIS IS AN EXPLOIT AND MAY STOP WORKING IF PATCHED**\n\n## 🧠 How Keep-Alive Works\n\nInstead of sending keystrokes, we inject the following safe JavaScript:\n- Scrolls the page slightly up and down\n- Focuses the terminal's hidden input field\n- Dispatches an `input` event\n\nThis keeps the mining sessions alive without disrupting the actual terminal behavior.\n\n## 📂 Project Structure\n\n```\nminer-automation/\n├── gmailcode.py                # Gmail OTP handler\n├── main.py                     # Main automation logic\n├── command.txt                 # Paste your mining command here\n├── credentials.json            # Google OAuth client credentials\n├── token.json                  # Auto-generated on first login\n├── requirements.txt\n├── .gitignore\n├── README.md\n```\n\n## 🔒 Security Notes\n\n- Your Gmail credentials are stored locally and securely.\n- Never share `credentials.json` or `token.json`.\n- Avoid using accounts with 2FA unless you're using app passwords.\n\n## 📌 Disclaimer\n\nThis project is intended for educational purposes only. Use it responsibly and ensure you're not violating any terms of service or mining policies of the platform you're interacting with.\n\n## 📜 License\n\nMIT License\n\nCopyright (c) 2025 AryanSLAYERRR\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n---\n\nCreated with 💻 by [Aryan Gupta](https://github.com/AryanSLAYERRR)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryanslayerrr%2Fminer-automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faryanslayerrr%2Fminer-automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryanslayerrr%2Fminer-automation/lists"}