PoshCode Archive  Artifact [44a659cb46]

Artifact 44a659cb4638cb398f5bc819c100adb6fff958fc43f2514fc47ab81300b1e050:

  • File Down-with-SOPA.ps1 — part of check-in [ce1212f7a3] at 2018-06-10 13:19:35 on branch trunk — Let’s fill the logs of the US House and Senate servers with the message we don’t want SOPA or E-Parasite! (user: hotsnoj size: 980)

# encoding: ascii
# api: powershell
# title: Down with SOPA!
# description: Let’s fill the logs of the US House and Senate servers with the message we don’t want SOPA or E-Parasite!
# version: 0.1
# type: script
# author: hotsnoj
# license: CC0
# x-poshcode-id: 3053
# x-archived: 2011-11-22T10:46:30
# x-published: 2011-11-16T09:12:00
#
#
<#
.Synopsis
Let's fill the logs of the US House and Senate servers with the message we don't want SOPA or E-Parasite!
.Description
Runs an while(1) loop that grabs a couple URI's from each branch's website and sleeps for 1 second between requests.
#>

# twitter tags
#occupyUSSenate
#occupyUSHouse
#sopa
#eparasite

while(1){
    try{
        (new-object net.webclient).downloadstring("http://www.house.gov/downWithSOPA") | Out-Null;
    } catch{}
    
    try{
        (new-object net.webclient).downloadstring("http://www.senate.gov/downWithE-Parasite") | out-n
    } catch{}
    
    sleep 1;
}