Created
August 29, 2015 19:39
-
-
Save dhilipsiva/938d68ef2be6e47ad496 to your computer and use it in GitHub Desktop.
Badoo Spam script
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
### | |
Badoo spam and like users. | |
Restrictions due to messages limit per day and captchas still cannot be bypassed. :P | |
### | |
getPage = (url) -> | |
$.get url | |
.done (response, success, xhr) -> | |
results = $ response | |
for result in results.find ".user-card" | |
d1 = $ result | |
profile_link = d1.find(".b-link.c_name.app").attr "href" | |
continue if !profile_link | |
$.get profile_link | |
.done (response, success, xhr) -> | |
try | |
vote_url = response.split('data-choice="yes" data-url="')[1].split('"')[0] | |
if vote_url | |
$.get vote_url+ "&ws=1&rt=#{$vars.rt}" | |
data = | |
act: "add" | |
rt: $vars.rt | |
contact_user_id: response.split('http://badoo.com/en-in/')[1].split("/")[0] | |
message: "Hi! I am dhilipsiva. please visit http://dhilipsiva.com to know more about me." | |
s1: response.split('session_id":"')[1].split('"')[0] | |
$.post "/connections/ws-post.phtml?ws=1&rt=#{$vars.rt}", data | |
navs = results.find ".btn.btn--transparent" | |
getPage navs[navs.length-1].getElementsByTagName("a")[0].href | |
if document.getElementById "spam-script" | |
getPage "/en-in/search/" | |
else | |
script = document.createElement "script" | |
script.onload = -> | |
getPage "/en-in/search/" | |
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js" | |
script.id = "spam-script" | |
document.body.appendChild script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment