Created
October 23, 2014 18:35
-
-
Save dyerw/95b9af4d44671b150552 to your computer and use it in GitHub Desktop.
Non-working Go Facebook Form Spammer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/http" | |
"net/url" | |
"os" | |
"io/ioutil" | |
) | |
func main() { | |
myurl := "http://facebook.com/login.php?login_attempt=1" | |
// Test to see if we can connect | |
resp, err := http.Get(myurl) | |
if err != nil { | |
fmt.Println("Unable to connect.") | |
fmt.Println(err) | |
os.Exit(1) | |
} | |
fmt.Println("Able to connect.") | |
fmt.Println(resp.Status) | |
tries := 0 | |
for resp.StatusCode == 200 { | |
tries++ | |
resp, err = http.PostForm(myurl, | |
url.Values{"email": {"[email protected]"}, | |
"pass": {"thisisnotthepassword"}, | |
// These are all just ripped from Facebook | |
"lsd": {"AVoE319-"}, | |
"default_persistent": {"0"}, | |
"timezone": {"240"}, | |
"lgnrnd": {"104544_0RqN"}, | |
"lgnjs": {"1414089943"}, | |
"locale": {"en_US"}, | |
"cuid": {"AYiDtAx77r6FD_gdwuRKX3aZNT4HapqB-sa5951ugXtpOoTGUPrTkD9g3cKCrvakX13qbqHbUCfhHkwQWqJM-hht3ZzEC2hfRDJqD3uDWSo1GrVcn9seTZRIbW_EKrMJ954WERvau_fzf8wEVe4N40ct"}, | |
"qsstamp": {"W1tbNSwxOSwzMiw0MCw1Miw3MSw3Nyw5MCwxMzAsMTM2LDE1NywxNTgsMTg0LDE5MSwyMTcsMjI0LDIzOCwyNDEsMjUxLDI5NSwzMDQsMzA1LDMzMSwzNTQsNDEyLDQyNyw0NDYsNDkwLDUwMCw1MTAsNTE4LDUyMiw1NDQsNTY1LDU2OSw1NzgsNTgyLDU4OSw1OTMsNjA5LDY3Miw2OTNdXSwiQVptRTJ3UzNmQW5CQnVUTTBicGxxX1NSck45Q3U5T3NCZHBtcXJSWnJfa0kyNDRGeVRVbWNRbVBZc3c5UGRmdjN4cXJPYlZMRlV5S0JWeENETE9hdGtBaXhweFE4UHZJNnFNeU82Ym5DcjF6bklHR0FBd0MyTnVoQ3FZV2x1bnVVc3RDRUZibUxxQ2R4WUtZUWg0ZDFrMGk1d0VlSDBTT0xIYlYtcXJvMUFEdVVfdlZpR2xOcGhVN3huMzBMRkt2ODh2X1dLYWdHNncycE1VN0xEWDlCTmRyIl0="}}) | |
if err != nil { | |
fmt.Println(err) | |
break | |
} | |
} | |
body, err := ioutil.ReadAll(resp.Body) | |
if err != nil { | |
fmt.Println(err) | |
} | |
fmt.Println(tries) | |
fmt.Println(resp.Status) | |
fmt.Println(body) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment