Squires on Nostr: import os import time # Prompt the user for consent consent = input("Do you give ...
import os
import time
# Prompt the user for consent
consent = input("Do you give permission for this website to mine Monero using your computer's resources? (y/n)")
if consent.lower() == "y":
# Set the URL of the mining pool
pool_url = "YOUR_POOL_URL_HERE"
# Set the address where the mined Monero will be sent
wallet_address = "YOUR_WALLET_ADDRESS_HERE"
# Set the number of threads to use for mining
threads = 4
# Start mining
os.system("xmrig --url {} --user {} --threads {}".format(pool_url, wallet_address, threads))
# Print a message to let the user know that mining has started
print("Mining has started. Press Ctrl+C to stop.")
# Keep the script running until the user terminates it
try:
while True:
time.sleep(1)
except KeyboardInterrupt:
# Stop mining when the user terminates the script
print("Stopping mining. Thank you for using this website.")
else:
print("Mining will not start without your consent. Thank you for visiting this website.")
Published at
2022-12-21 00:59:55Event JSON
{
"id": "1d7be792c898cf72571215055384224eedfdac1b51c5e3e17665d97a77fdd670",
"pubkey": "865c78f4ca985d2d0d16c667dfb3bcd788835c151ecd1c01514f0132ca5c7e52",
"created_at": 1671584395,
"kind": 1,
"tags": [],
"content": "import os\nimport time\n\n# Prompt the user for consent\nconsent = input(\"Do you give permission for this website to mine Monero using your computer's resources? (y/n)\")\n\nif consent.lower() == \"y\":\n # Set the URL of the mining pool\n pool_url = \"YOUR_POOL_URL_HERE\"\n\n # Set the address where the mined Monero will be sent\n wallet_address = \"YOUR_WALLET_ADDRESS_HERE\"\n\n # Set the number of threads to use for mining\n threads = 4\n\n # Start mining\n os.system(\"xmrig --url {} --user {} --threads {}\".format(pool_url, wallet_address, threads))\n\n # Print a message to let the user know that mining has started\n print(\"Mining has started. Press Ctrl+C to stop.\")\n\n # Keep the script running until the user terminates it\n try:\n while True:\n time.sleep(1)\n except KeyboardInterrupt:\n # Stop mining when the user terminates the script\n print(\"Stopping mining. Thank you for using this website.\")\n\nelse:\n print(\"Mining will not start without your consent. Thank you for visiting this website.\")",
"sig": "18d2299f7740848322709c3fc298adbd4b8f85ad2ca5a8db4992f2b5e20f03f879f3689242ae43dd6a4b9eb547eb1d2e891a025e0cd2510b7fc6c36765d5bc1d"
}