Skip to content

Commit 0d9a40d

Browse files
authored
Use target['Platform'] instead of target_platform
1 parent c490d64 commit 0d9a40d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/multi/http/oracle_weblogic_wsat_deserialization_rce.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ def initialize(info = {})
5656
end
5757

5858
def cmd_base
59-
target_platform == 'win' ? 'cmd' : '/bin/sh'
59+
target['Platform'] == 'win' ? 'cmd' : '/bin/sh'
6060
end
6161

6262
def cmd_opt
63-
target_platform == 'win' ? '/c' : '-c'
63+
target['Platform'] == 'win' ? '/c' : '-c'
6464
end
6565

6666
def process_builder_payload

0 commit comments

Comments
 (0)