Correct authentication

Can't always be true
bug/bundler_fix
sinn3r 2015-02-13 11:48:10 -06:00
parent 9a56e5c4f9
commit f5e0dddd3c
1 changed files with 6 additions and 2 deletions

View File

@ -28,8 +28,12 @@ module Nessus
:json => 1
}
res = http_post(:uri=>"/session", :data=>payload)
if res['token']
@token = "token=#{res['token']}"
true
return true
else
false
end
end
def x_cookie