mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-04 02:35:58 +02:00
7 lines
231 B
Batchfile
7 lines
231 B
Batchfile
@echo off
|
|
ping -n 1 -4 172.28.128.3 | find /i "TTL=" > nul
|
|
IF ERRORLEVEL 1 (echo "Linux host not available.") ELSE (
|
|
cmdkey /add:172.28.128.3 /user:chewbacca /pass:rwaaaaawr5
|
|
net use W: \\172.28.128.3\public /savecred /p:yes
|
|
)
|