Last active
June 17, 2016 15:14
-
-
Save 0xbe7a/dd416b4001fdc70cfab5ea6aaa3f6602 to your computer and use it in GitHub Desktop.
Famous.AF Auto recapture Bot
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
/** | |
* Created by bela on 17.06.16. | |
*/ | |
module.exports.cookie = "your cookie hear. You can find it at any XHR Request under Cookie: "Whatever"" |
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
var request = require('request') | |
var config = require("./config") | |
var cookie = config.cookie | |
function api(user, bump, callback){ | |
var url = "https://www.famous.af/_/proxy/api/people/" + user + "/fave" | |
request.post({url: url, headers: { | |
'Cookie': cookie}, | |
formData: { | |
'bump_uuid': bump | |
}}, function(err, res, body){ | |
callback(body) | |
}) | |
} | |
//Gets the recently stolen Accounts. | |
function getBump(){ | |
request({url: "https://www.famous.af/_/proxy/api/me/faves/bumped?", headers: { | |
'Cookie': cookie} | |
}, function(err, res, body){ | |
JSON.parse(body).data.forEach(function(user){ | |
//Check if a person we want got stolen | |
if(weWant.indexOf(user.twitter_username) != -1){ | |
console.log("ARR, we are going to take over this ship!", user.twitter_username) | |
api(user.id, user.last_bump.bump_uuid, function(response){ | |
console.log('Captured') | |
}) | |
}else{ | |
} | |
}) | |
}) | |
} | |
//Array with all usernames, we want to keep as long as we can! | |
var weWant = ["H8Paul", "Hattiwatt1","wirrew", "iamskoglund", "RECfilming", "mrVaderdan", "SteinbachErika"] | |
setInterval(getBump, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment