Skip to content

Instantly share code, notes, and snippets.

@widhisec
Created March 16, 2023 07:54
Show Gist options
  • Save widhisec/bf238496e13447a6929652a7520a3eb8 to your computer and use it in GitHub Desktop.
Save widhisec/bf238496e13447a6929652a7520a3eb8 to your computer and use it in GitHub Desktop.
instagram login
WAKTU=$(date +%s%N|cut -b1-13)
uuid=$(od -x /dev/urandom | head -1 | awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}')
curl -s -k -X $'POST' \
-H $'User-Agent: Instagram 265.0.0.19.301 Android (28/9; 240dpi; 720x1280; OnePlus; ONEPLUS A5000; OnePlus5; qcom; en_US)' \
--data-urlencode "enc_password=#PWD_INSTAGRAM_BROWSER:0:${WAKTU}:$2" \
--data-urlencode "username=$1" \
--data-urlencode "device_id=android-${uuid}" \
--data-urlencode "login_attempt_count=0" \
$'https://i.instagram.com/api/v1/accounts/login/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment