File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
modules/auxiliary/admin/scada Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ def initialize(info = {})
20
20
It allows a remote user to read out the PLC Type, Firmware and
21
21
Build number on port TCP/1962.
22
22
And also to read out the CPU State (Running or Stopped) AND start
23
- or stop the CPU on port TCP/20547 (confirmed ILC 15x and 17x series)
24
- or on port TCP/41100 (confirmed ILC 39x series)
23
+ or stop the CPU on port TCP/41100 (confirmed ILC 15x and 17x series)
24
+ or on port TCP/20547 (confirmed ILC 39x series)
25
25
} ,
26
26
'Author' => 'Tijl Deneut <tijl.deneut[at]howest.be>' ,
27
27
'License' => MSF_LICENSE ,
@@ -211,11 +211,11 @@ def run
211
211
if device . start_with? ( 'ILC 15' , 'ILC 17' )
212
212
devicetype = '15x'
213
213
print_status ( '--> Detected 15x/17x series, getting current CPU state:' )
214
- ractionport == 0 ? ( rport = 41100 ) : ( rport = ractionport )
214
+ ractionport . nil ? ( rport = 41100 ) : ( rport = ractionport )
215
215
elsif device . start_with? ( 'ILC 39' )
216
216
devicetype = '39x'
217
217
print_status ( '--> Detected 39x series, getting current CPU state:' )
218
- ractionport == 0 ? ( rport = 20547 ) : ( rport = ractionport )
218
+ ractionport . nil ? ( rport = 20547 ) : ( rport = ractionport )
219
219
else
220
220
print_error ( 'Only ILC and (some) RFC devices are supported.' )
221
221
return
You can’t perform that action at this time.
0 commit comments