Created
January 9, 2020 11:05
-
-
Save kourindouhime/00b8d8094eaae5c785b1f296155ce5d6 to your computer and use it in GitHub Desktop.
Free yota 2020
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
require 'open-uri' | |
begin | |
req = open("http://ya.ru") | |
if req.base_uri.to_s.include? "yota" | |
puts "Enabling freebies" | |
#req2 = open("http://hello.yota.ru/wa/v1/service/temp/sa") | |
`curl 'http://hello.yota.ru/wa/v1/service/temp/sa' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://hello.yota.ru/sa/?redirurl=http:%2F%2Fya.ru%2F' -H 'Origin: http://hello.yota.ru' -H 'X-Requested-With: XMLHttpRequest' -H 'User-Agent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.89 Safari/537.36' -H 'Content-Type: application/json;charset=UTF-8' --data-binary '{}' --compressed` | |
#puts req2.read | |
end | |
rescue | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment