Fix useless local assignments
This commit is contained in:
@@ -305,7 +305,6 @@ module BeEF
|
|||||||
BD.set(session_id, 'browser.language', browser_lang)
|
BD.set(session_id, 'browser.language', browser_lang)
|
||||||
else
|
else
|
||||||
err_msg "Invalid browser language returned from the hook browser's initial connection."
|
err_msg "Invalid browser language returned from the hook browser's initial connection."
|
||||||
browser_lang = 'Unknown'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# get and store the cookies
|
# get and store the cookies
|
||||||
@@ -349,7 +348,6 @@ module BeEF
|
|||||||
BD.set(session_id, 'host.os.arch', os_arch)
|
BD.set(session_id, 'host.os.arch', os_arch)
|
||||||
else
|
else
|
||||||
err_msg "Invalid operating system architecture returned from the hook browser's initial connection."
|
err_msg "Invalid operating system architecture returned from the hook browser's initial connection."
|
||||||
os_arch = 'Unknown'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# get and store default browser
|
# get and store default browser
|
||||||
@@ -358,7 +356,6 @@ module BeEF
|
|||||||
BD.set(session_id, 'host.software.defaultbrowser', default_browser)
|
BD.set(session_id, 'host.software.defaultbrowser', default_browser)
|
||||||
else
|
else
|
||||||
err_msg "Invalid default browser returned from the hook browser's initial connection."
|
err_msg "Invalid default browser returned from the hook browser's initial connection."
|
||||||
default_browser = 'Unknown'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# get and store the hardware type
|
# get and store the hardware type
|
||||||
|
|||||||
Reference in New Issue
Block a user