Last active
January 24, 2025 17:53
-
-
Save Kukunin/476d93757a2e80636363 to your computer and use it in GitHub Desktop.
Userscript for automatic appointment checking for Poland Consulate in Ukraine. Contact me, if you want a ready-to-use solution
This file contains hidden or 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
// ==UserScript== | |
// @name Poland Visa Applicator | |
// @namespace http://e-konsulat.gov.pl/ | |
// @version 0.1 | |
// @description Brute Force the visa application page | |
// @author Serhii Kukunin <[email protected]> | |
// @match https://secure.e-konsulat.gov.pl/Uslugi/RejestracjaTerminu.aspx* | |
// @grant none | |
// @ | |
// ==/UserScript== | |
//CONFIGURATION VARIABLES | |
var captchaKey = "YOUR_2captcha.com_API_KEY"; | |
//Configure your dates here | |
var dates = { | |
"89": "2015-01-27", //Kyiv | |
"90": "2015-01-26", //Odessa | |
"92": "2015-01-23" //Lviv | |
}; | |
var notificationSound = "http://soundbible.com/mp3/Modem-KP-551027942.mp3"; | |
var noDateMessage = 'Відсутність вільні дати до '; | |
var noScriptsMessage = 'Реєстрація візових анкет за допомогою скриптів забороняється'; | |
//INTERNAL LOGIC | |
var attempts = 0; | |
function reload(time) { | |
setTimeout(function() { | |
window.location = window.location; | |
}, (time || 100)); | |
} | |
function error(msg) { | |
document.body.style['background-color'] = '#f00' | |
console.log(msg); | |
reload(2000); | |
} | |
function onCaptchaLoaded(img) { | |
convertImgToBase64(img, function(dataURL) { | |
var base64 = dataURL.split(",")[1], | |
xhr = new XMLHttpRequest(); | |
xhr.open("POST","https://2captcha.com/in.php",true); | |
xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded"); | |
xhr.send("method=base64&key=" + captchaKey + "®sense=1&phrase=0&numeric=3&calc=0&language=2&min_len=4&max_len=4&header_acao=1&body=" + encodeURIComponent(base64)); | |
xhr.onreadystatechange=function() { | |
if (xhr.readyState==4 && xhr.status==200) { | |
if (xhr.responseText.indexOf('OK') === 0) { | |
setTimeout(function() { | |
pollCaptcha(xhr.responseText.split('|')[1]); | |
}, 8000); | |
} else { | |
error(xhr.responseText); | |
} | |
} | |
} | |
}); | |
} | |
function pollCaptcha(id) { | |
var xhr = new XMLHttpRequest(); | |
xhr.open("GET","https://2captcha.com/res.php?key=" + captchaKey + "&action=get&id=" + id, true); | |
xhr.send(); | |
xhr.onreadystatechange=function() { | |
if (xhr.readyState==4 && xhr.status==200) { | |
console.log(xhr.responseText); | |
if (xhr.responseText.indexOf('OK') === 0) { | |
var input = document.querySelector('input[type=text]') | |
input.value = xhr.responseText.split('|')[1]; | |
setTimeout(function() { | |
document.getElementById('cp_btnDalej').click(); | |
}, 1000); | |
} else if ( xhr.responseText.indexOf('CAPCHA_NOT_READY') === 0 ) { | |
attempts++; | |
if (attempts > 20) { | |
error("Captcha not ready too long"); | |
} | |
setTimeout(function() { | |
pollCaptcha(id); | |
}, 4000); | |
} else { | |
error(xhr.responseText); | |
} | |
} | |
} | |
} | |
function convertImgToBase64(img, callback, outputFormat){ | |
var canvas = document.createElement('CANVAS'), | |
ctx = canvas.getContext('2d'), | |
dataURL; | |
canvas.height = img.height; | |
canvas.width = img.width; | |
ctx.drawImage(img, 0, 0); | |
dataURL = canvas.toDataURL(outputFormat); | |
callback.call(this, dataURL); | |
canvas = null; | |
} | |
window.playSound = function(){ | |
document.body.innerHTML +='<audio autoplay="autoplay"><source src="' + notificationSound + '" type="audio/mpeg" /></audio>'; | |
} | |
document.addEventListener("DOMContentLoaded", function(event) { | |
var cityMatch = location.search.match(/IDPlacowki=(\d+)/); | |
var date = dates[cityMatch[1]]; | |
if (!date) { | |
console.log('No recognized city'); | |
return; | |
} | |
window.scrollTo(0, 9999); | |
var captcha_img = document.getElementById("cp_KomponentObrazkowy_CaptchaImageID"); | |
var result = document.getElementById('cp_tabListy'); | |
var lbl = document.getElementById('cp_lblInfo'); | |
if (captcha_img) { | |
if (location.hash.indexOf('nocaptcha') == -1) { | |
if (captcha_img.complete) { | |
onCaptchaLoaded(captcha_img); | |
} else { | |
captcha_img.onload = function() { | |
onCaptchaLoaded(captcha_img); | |
} | |
} | |
} | |
setTimeout(function() { | |
//For manual enter | |
var input = document.querySelector('input[type=text]') | |
input.focus(); | |
}, 500); | |
} else if (result && result.textContent.indexOf(noDateMessage + date)!=-1) { | |
reload(2000); | |
} else if (lbl && lbl.textContent.indexOf(noScriptsMessage)!=-1) { | |
reload(60000); | |
} else { | |
playSound(); | |
} | |
}); |
hello I will help you out
…On Sat, Jul 24, 2021 at 12:45 PM QAISERKHANJADOON ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
Hi, I’m @Qaiser <https://github.com/Qaiser> I need this scripts to bypass
image text captcha for Poland visa appointment date please contact me at
***@***.*** or whatsapp +92-313-2406159
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/476d93757a2e80636363#gistcomment-3826775>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKKSZCYMBHYOYKUP4GWJHWLTZJSBZANCNFSM4HJQ2FXA>
.
yes please send me your whatsapp number or whatsapp at +92-313-2406159
On Sat, Jul 24, 2021 at 9:24 PM NISHIT100795 ***@***.***>
wrote:
… ***@***.**** commented on this gist.
------------------------------
hello I will help you out
On Sat, Jul 24, 2021 at 12:45 PM QAISERKHANJADOON ***@***.***>
wrote:
> ***@***.**** commented on this gist.
> ------------------------------
>
> Hi, I’m @Qaiser <https://github.com/Qaiser> I need this scripts to
bypass
> image text captcha for Poland visa appointment date please contact me at
> ***@***.*** or whatsapp +92-313-2406159
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://gist.github.com/476d93757a2e80636363#gistcomment-3826775>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AKKSZCYMBHYOYKUP4GWJHWLTZJSBZANCNFSM4HJQ2FXA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/476d93757a2e80636363#gistcomment-3827030>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASVZDTKW36HJ64IVE2U67H3TZLSMRANCNFSM4HJQ2FXA>
.
yes please contact me via whatsapp +92-3132406159
You drop me a msg in whats app 7778033066
…On Sun, 25 Jul, 2021, 5:43 pm QAISERKHANJADOON, ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
yes please contact me via whatsapp +92-3132406159
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/476d93757a2e80636363#gistcomment-3827500>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKKSZC2YRDXLSQ5ORDQJHOLTZP5V5ANCNFSM4HJQ2FXA>
.
Sure, will do that. What is your country Dial code
On Mon, Jul 26, 2021, 11:58 AM NISHIT100795 ***@***.***>
wrote:
… ***@***.**** commented on this gist.
------------------------------
You drop me a msg in whats app 7778033066
On Sun, 25 Jul, 2021, 5:43 pm QAISERKHANJADOON, ***@***.***>
wrote:
> ***@***.**** commented on this gist.
> ------------------------------
>
> yes please contact me via whatsapp +92-3132406159
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://gist.github.com/476d93757a2e80636363#gistcomment-3827500>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AKKSZC2YRDXLSQ5ORDQJHOLTZP5V5ANCNFSM4HJQ2FXA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/476d93757a2e80636363#gistcomment-3828165>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASVZDTNQBPZWZX5HM4OUYJLTZUBQNANCNFSM4HJQ2FXA>
.
Send me your WhatsApp number with country Dial code
On Mon, Jul 26, 2021, 11:58 AM NISHIT100795 ***@***.***>
wrote:
… ***@***.**** commented on this gist.
------------------------------
You drop me a msg in whats app 7778033066
On Sun, 25 Jul, 2021, 5:43 pm QAISERKHANJADOON, ***@***.***>
wrote:
> ***@***.**** commented on this gist.
> ------------------------------
>
> yes please contact me via whatsapp +92-3132406159
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://gist.github.com/476d93757a2e80636363#gistcomment-3827500>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AKKSZC2YRDXLSQ5ORDQJHOLTZP5V5ANCNFSM4HJQ2FXA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/476d93757a2e80636363#gistcomment-3828165>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASVZDTNQBPZWZX5HM4OUYJLTZUBQNANCNFSM4HJQ2FXA>
.
Hello send me your WhatsApp number
…On Sat, Jul 24, 2021, 9:24 PM NISHIT100795 ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
hello I will help you out
On Sat, Jul 24, 2021 at 12:45 PM QAISERKHANJADOON ***@***.***>
wrote:
> ***@***.**** commented on this gist.
> ------------------------------
>
> Hi, I’m @Qaiser <https://github.com/Qaiser> I need this scripts to
bypass
> image text captcha for Poland visa appointment date please contact me at
> ***@***.*** or whatsapp +92-313-2406159
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://gist.github.com/476d93757a2e80636363#gistcomment-3826775>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AKKSZCYMBHYOYKUP4GWJHWLTZJSBZANCNFSM4HJQ2FXA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/476d93757a2e80636363#gistcomment-3827030>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASVZDTKW36HJ64IVE2U67H3TZLSMRANCNFSM4HJQ2FXA>
.
This is my number. 7778033066
On Wed, 28 Jul, 2021, 3:56 pm QAISERKHANJADOON, ***@***.***>
wrote:
… ***@***.**** commented on this gist.
------------------------------
Hello send me your WhatsApp number
On Sat, Jul 24, 2021, 9:24 PM NISHIT100795 ***@***.***> wrote:
> ***@***.**** commented on this gist.
> ------------------------------
> hello I will help you out
>
> On Sat, Jul 24, 2021 at 12:45 PM QAISERKHANJADOON ***@***.***>
> wrote:
>
> > ***@***.**** commented on this gist.
> > ------------------------------
> >
> > Hi, I’m @Qaiser <https://github.com/Qaiser> I need this scripts to
> bypass
> > image text captcha for Poland visa appointment date please contact me
at
> > ***@***.*** or whatsapp +92-313-2406159
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <https://gist.github.com/476d93757a2e80636363#gistcomment-3826775>, or
> > unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AKKSZCYMBHYOYKUP4GWJHWLTZJSBZANCNFSM4HJQ2FXA
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://gist.github.com/476d93757a2e80636363#gistcomment-3827030>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ASVZDTKW36HJ64IVE2U67H3TZLSMRANCNFSM4HJQ2FXA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/476d93757a2e80636363#gistcomment-3832599>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKKSZC7VMS4YL66BT3A3AFLTZ7LNXANCNFSM4HJQ2FXA>
.
+919998133066
…On Wed, 28 Jul, 2021, 9:10 pm NISHIT GUPTA, ***@***.***> wrote:
This is my number. 7778033066
On Wed, 28 Jul, 2021, 3:56 pm QAISERKHANJADOON, ***@***.***>
wrote:
> ***@***.**** commented on this gist.
> ------------------------------
> Hello send me your WhatsApp number
>
> On Sat, Jul 24, 2021, 9:24 PM NISHIT100795 ***@***.***> wrote:
>
> > ***@***.**** commented on this gist.
> > ------------------------------
> > hello I will help you out
> >
> > On Sat, Jul 24, 2021 at 12:45 PM QAISERKHANJADOON ***@***.***>
> > wrote:
> >
> > > ***@***.**** commented on this gist.
> > > ------------------------------
> > >
> > > Hi, I’m @Qaiser <https://github.com/Qaiser> I need this scripts to
> > bypass
> > > image text captcha for Poland visa appointment date please contact me
> at
> > > ***@***.*** or whatsapp +92-313-2406159
> > >
> > > —
> > > You are receiving this because you were mentioned.
> > > Reply to this email directly, view it on GitHub
> > > <https://gist.github.com/476d93757a2e80636363#gistcomment-3826775>,
> or
> > > unsubscribe
> > > <
> >
> https://github.com/notifications/unsubscribe-auth/AKKSZCYMBHYOYKUP4GWJHWLTZJSBZANCNFSM4HJQ2FXA
> > >
> > > .
> > >
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <https://gist.github.com/476d93757a2e80636363#gistcomment-3827030>, or
> > unsubscribe
> > <
> https://github.com/notifications/unsubscribe-auth/ASVZDTKW36HJ64IVE2U67H3TZLSMRANCNFSM4HJQ2FXA
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://gist.github.com/476d93757a2e80636363#gistcomment-3832599>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AKKSZC7VMS4YL66BT3A3AFLTZ7LNXANCNFSM4HJQ2FXA>
> .
>
I know this is your number but from which country you are? What is the your
country Dial code like my country code is +92
…On Wed, Jul 28, 2021, 8:40 PM NISHIT100795 ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
This is my number. 7778033066
On Wed, 28 Jul, 2021, 3:56 pm QAISERKHANJADOON, ***@***.***>
wrote:
> ***@***.**** commented on this gist.
> ------------------------------
> Hello send me your WhatsApp number
>
> On Sat, Jul 24, 2021, 9:24 PM NISHIT100795 ***@***.***> wrote:
>
> > ***@***.**** commented on this gist.
> > ------------------------------
> > hello I will help you out
> >
> > On Sat, Jul 24, 2021 at 12:45 PM QAISERKHANJADOON ***@***.***>
> > wrote:
> >
> > > ***@***.**** commented on this gist.
> > > ------------------------------
> > >
> > > Hi, I’m @Qaiser <https://github.com/Qaiser> I need this scripts to
> > bypass
> > > image text captcha for Poland visa appointment date please contact me
> at
> > > ***@***.*** or whatsapp +92-313-2406159
> > >
> > > —
> > > You are receiving this because you were mentioned.
> > > Reply to this email directly, view it on GitHub
> > > <https://gist.github.com/476d93757a2e80636363#gistcomment-3826775>,
or
> > > unsubscribe
> > > <
> >
>
https://github.com/notifications/unsubscribe-auth/AKKSZCYMBHYOYKUP4GWJHWLTZJSBZANCNFSM4HJQ2FXA
> > >
> > > .
> > >
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <https://gist.github.com/476d93757a2e80636363#gistcomment-3827030>, or
> > unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/ASVZDTKW36HJ64IVE2U67H3TZLSMRANCNFSM4HJQ2FXA
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://gist.github.com/476d93757a2e80636363#gistcomment-3832599>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AKKSZC7VMS4YL66BT3A3AFLTZ7LNXANCNFSM4HJQ2FXA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/476d93757a2e80636363#gistcomment-3833204>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASVZDTPT6LKEZQKL7NACNK3T2AQHPANCNFSM4HJQ2FXA>
.
Need this for Morocco please
plesse tlscontact script "Your account is temporarily locked. you have reached the maximum number of connections allowed per day."
Hey, it seems like I was late for the party :) but I need one for Yerevan, Armenia. Who can help me with that?
hello everybody need auto book appiontiment for Bls spain morocco
i have vfs global tapemonkey userscript
now i need for bls spain morocco
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I’m @Qaiser I need this scripts to bypass image text captcha for Poland visa appointment date please contact me at
[email protected] or whatsapp +92-313-2406159