-
-
Save miadz/8fdfd045b05b3c6e24631b7643f44748 to your computer and use it in GitHub Desktop.
Reverse-Engineering Instagram
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 'openssl' | |
require 'base64' | |
require 'json' | |
require 'httpclient' | |
http = HTTPClient.new(:agent_name => useragent) | |
key = "" #The Private key | |
login_info = {:guid => "00000000-0000-0000-0000-000000000000", | |
:password => "PASSWORD", | |
:username => "USERNAME", | |
:device_id => "android-0000000000000000", | |
:_csrftoken => "missing" | |
}.to_json | |
signed_body = "#{Digest::HMAC.hexdigest(login_info, key, Digest::SHA256)}.#{login_info}" | |
post_data = {:signed_body => signed_body, :ig_sig_key_version => 4} | |
result = http.post("https://instagram.com/api/v1/accounts/login/", post_data, "Content-Type" => "application/json") | |
p result.body |
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
const-string v5, "LOGGING" | |
invoke-static {v5, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment