Created
April 21, 2017 20:01
-
-
Save gaplo917/28e09e879ff98484eef079ffb7baaba8 to your computer and use it in GitHub Desktop.
GoBee.bike Credit Card check 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
// http://54.169.33.162:8088/GobeeBike/app/ | |
function checkMyCreditCard(phone, password) { | |
fetch('login?industryType=3&requestType=10001&phone=' + phone + '&password=' + password, { | |
method: 'get' | |
}) | |
.then(resp => resp.json()) | |
.then(response => { | |
let token = response.data.token | |
if(!token) throw 'You have entered a wrong phone/password!' | |
return fetch('user?requestType=20008&token=' + token, { | |
method: 'get' | |
}) | |
.then(resp => resp.json()) | |
.then(response => { | |
let cardList = response.data && response.data.cardList | |
console.warn(`發現信用卡${cardList.length}張,若果顯示信用卡資料如 card_number, cvv, exp_date, name_on_card 為你的信用卡資料,這代表你己成為受害者之一`) | |
console.table(cardList) | |
}) | |
}) | |
.catch(console.warn) | |
} | |
var phone = "THIS_IS_YOUR_PHONE" | |
var password = "THIS_IS_YOUR_LOGIN_PASSWORD" | |
checkMyCreditCard(phone, password) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment