Author

Topic: Vb.Net \ C# - Method to read console windows (Read 669 times)

sr. member
Activity: 445
Merit: 251
pHp DeV
I use AutoIT with WinAPI for such things.
newbie
Activity: 25
Merit: 0
bump
newbie
Activity: 25
Merit: 0
Yeah, that's what I originally tried but the output isn't captured from Claymore. Have you had different luck using it?
legendary
Activity: 1512
Merit: 1057
SpacePirate.io
newbie
Activity: 25
Merit: 0
I believe miners like Claymore are private code, nothing to recompile. If we had the source code, he'd be out a lot of money.
sr. member
Activity: 392
Merit: 268
Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ
Why don't you modify the miner program and recompile it, so that it reports data using a saner interface than trying to parse a user-oriented CLI?
newbie
Activity: 25
Merit: 0
Hey Everyone,

I'm trying to create an agent that reports back data from common miners to a web service. My first thought was to capture the text using the RedirectStandardOutput as part of .Net's StartInfo, but it doesn't seem to work with Claymore's Ethereum miner. Everything works like a charm if I use a simple batch script to ping a website like google.com. I've read that some applications use unorthodox methods of sending output text. I tried capturing the error output but didn't have any luck on that front.

Code for the form: https://pastebin.com/GkBgN0G6
Class I'm using to launch the processes: https://pastebin.com/xWgBM1Ya

My next thought was to pull up Spy++ and see if I could capture the messages that way. It turns out that command consoles are protected by Windows and prevents Spy++ from accessing the console messages.

My hope is that there's a simple tweak to get what I have working. Has anyone been successful doing this?

Thanks!
Jump to: