def queueRequests(target, wordlists):
engine = RequestEngine(endpoint=target.endpoint,
concurrentConnections=5,
requestsPerConnection=100,
pipeline=False
)
for i in range(1000):
engine.queue(target.req)
engine.start()
def handleResponse(req, interesting):
if "cos" in req.response:
table.add(req)
poniedziałek, 27 stycznia 2020
wtorek, 21 stycznia 2020
Przeszukiwanie plików z dostępem do odczytu na zasobach - powershell
$REMOTE_HOST = "172.21.56.235"
$FILE_TYPES = "*.pst, *.conf"
net view \\$REMOTE_HOST\ |
ForEach-Object {
$path = [regex]::match($_, '(.*) Dysk').Groups[1].Value.Trim()
if ($path -ne "") {
Write-Host ("### PATH: " + $path)
Get-ChildItem -Path \\$REMOTE_HOST\$path -Include $FILE_TYPES -Recurse -ErrorAction Ignore |
ForEach-Object {
Try {
[System.IO.File]::OpenRead($_.FullName).Close()
Write-Host $_.FullName
}
Catch {
#Write-Host ("Niet: " + $_.FullName)
}
}
}
}
$FILE_TYPES = "*.pst, *.conf"
net view \\$REMOTE_HOST\ |
ForEach-Object {
$path = [regex]::match($_, '(.*) Dysk').Groups[1].Value.Trim()
if ($path -ne "") {
Write-Host ("### PATH: " + $path)
Get-ChildItem -Path \\$REMOTE_HOST\$path -Include $FILE_TYPES -Recurse -ErrorAction Ignore |
ForEach-Object {
Try {
[System.IO.File]::OpenRead($_.FullName).Close()
Write-Host $_.FullName
}
Catch {
#Write-Host ("Niet: " + $_.FullName)
}
}
}
}
//Autor: hagier
Subskrybuj:
Posty (Atom)