Skip to content

Commit 6294cbf

Browse files
committed
Fix manage/pxexploit datastore
1 parent b894050 commit 6294cbf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/post/windows/manage/pxexploit.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def initialize
3636

3737
register_advanced_options(
3838
[
39-
OptString.new('TFTPROOT', [ false, 'The TFTP root directory to serve files from' ]),
39+
OptString.new('TFTPROOT', [ false, 'The TFTP root directory to serve files from',
40+
File.join(Msf::Config.data_directory, 'exploits', 'pxexploit')]),
4041
OptString.new('SRVHOST', [ false, 'The IP of the DHCP server' ]),
4142
OptString.new('NETMASK', [ false, 'The netmask of the local subnet', '255.255.255.0' ]),
4243
OptBool.new('RESETPXE', [ true, 'Resets the server to re-exploit already targeted hosts', false ]),
@@ -46,9 +47,6 @@ def initialize
4647
end
4748

4849
def run
49-
if not datastore['TFTPROOT']
50-
datastore['TFTPROOT'] = ::File.join(Msf::Config.data_directory, 'exploits', 'pxexploit')
51-
end
5250
if not client.lanattacks
5351
print_status("Loading lanattacks extension...")
5452
client.core.use("lanattacks")

0 commit comments

Comments
 (0)