sum random bullshit lmfao
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
Param(
|
||||||
|
[string]$hosts_file = "subnets.txt",
|
||||||
|
[int]$delay_seconds = 120,
|
||||||
|
[int]$port = 5555,
|
||||||
|
[bool]$ChkDsk = $false
|
||||||
|
)
|
||||||
|
|
||||||
|
# infinitte looppsie
|
||||||
|
$counter = 1
|
||||||
|
while($True) {
|
||||||
|
Clear-Host # this ig iss the new clear/cls
|
||||||
|
|
||||||
|
Write-Host "Scanning $subnet for port $port loop count $counter`n"
|
||||||
|
# only show open ports, disable ping host check, output to stdout in greppable format on specified port for all subnets in hosts file
|
||||||
|
nmap --open -Pn -oG - -p $port -iL "$hosts_file"
|
||||||
|
$counter++
|
||||||
|
|
||||||
|
Write-Host "`nSleeping $delay_seconds Seconds`n"
|
||||||
|
Start-Sleep -Seconds $delay_seconds
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
10.0.0.0/24
|
||||||
|
10.0.2.0/24
|
||||||
|
10.0.1.0/24
|
||||||
|
192.168.56.0/24
|
||||||
|
172.18.208.0/24
|
||||||
@@ -1,7 +1,10 @@
|
|||||||
$media_viewer_dir="C:\Users\human\OneDrive\Documents\Git\Media-Viewer"
|
$media_viewer_dir="C:\Users\human\OneDrive\Documents\Git\Media-Viewer"
|
||||||
Set-Location "$media_viewer_dir"
|
Set-Location "$media_viewer_dir"
|
||||||
|
|
||||||
Write-Host "Sillyfillyy synching media lolee"
|
Write-Host "`nSillyfillyy synching media loleen`n"
|
||||||
|
|
||||||
|
Write-Host "`nChanging directory to Media-Viewer`n"
|
||||||
|
cd "$media_viewer_dir"
|
||||||
|
|
||||||
# get da synciedink
|
# get da synciedink
|
||||||
Write-Host "`nSyncing`n"
|
Write-Host "`nSyncing`n"
|
||||||
@@ -31,4 +34,4 @@ gitsync
|
|||||||
Write-Host "`nSyncing finaly again`n"
|
Write-Host "`nSyncing finaly again`n"
|
||||||
gitsync
|
gitsync
|
||||||
|
|
||||||
Write-Host "aahm done bein a sillyfilly fro noew"
|
Write-Host "`naahm done bein a sillyfilly fro noew`n"
|
||||||
|
|||||||
Reference in New Issue
Block a user