Advertisement
Nolifeq

free capcha meno

Oct 12th, 2021
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1.  
  2. // ==UserScript==
  3. // @name AntyCaptcha MENOGRAM FREE
  4. // @namespace https://menogram-dwa.pl/
  5. // @version 3.00
  6. // @description Skrypt omijający captche w Margonem działa na starym oraz nowym interfejsie
  7. // @author kot
  8. // @match *://*.margonem.pl/
  9. // @exclude https://www.margonem.pl/
  10. // @grant GM_xmlhttpRequest
  11. // @connect menogram-dwa.pl
  12. // ==/UserScript==
  13.  
  14.  
  15. (async () => {
  16. const b = `si` == getCookie(`interface`);
  17. `ni` == getCookie(`interface`) && (await
  18. function () {
  19. return new Promise(a => {
  20. const b = () => {
  21. Engine && Engine.communication && Engine.communication.parseJSON ? a() : setTimeout(b, 20)
  22. };
  23. b()
  24. })
  25. }());
  26. const c = (a, b) => {
  27. const c = [];
  28. for (let d in b) c.push(`${encodeURIComponent(d)}=${encodeURIComponent(b[d])}`);
  29. return new Promise(b => {
  30. GM_xmlhttpRequest({
  31. method: `POST`,
  32. url: a,
  33. data: c.join(`&`),
  34. headers: {
  35. "Content-Type": `application/x-www-form-urlencoded`
  36. },
  37. onload: function (a) {
  38. b(JSON.parse(a.responseText))
  39. }
  40. })
  41. })
  42. },
  43. d = a => new Promise(b => setTimeout(b, a)),
  44. e = b ? parseInput : Engine.communication.parseJSON,
  45. a = async function (f) {
  46. if (e.apply(this, arguments), f.captcha && f.captcha.content) {
  47. const a = 2e3 + Math.floor(Math.random() * 2e3),
  48. e = Date.now(),
  49. g = f.captcha.content.question.text,
  50. h = f.captcha.content.question.options.join(`,`);
  51. console.log(`Rozwiązuje zagadkę...`);
  52. const i = f.captcha.content.image.data,
  53. j = await c(`https://menogram-dwa.pl/api/resolver-test5.php`, {
  54. captcha: i,
  55. key: "BjV3A2hJNZ7PAk6XS3Li",
  56. query: g,
  57. options: h
  58. });
  59. j.usesLeft && message(`Pozostało ${j.usesLeft} użyć`), await d(a - (Date.now() - e)), 1 == j.status ? (console.log(`Zagadka została rozwiązana w ${Math.floor((Date.now() - e) / 10) / 100}s\nOdpowiedź: ${j.text}`), document.querySelectorAll(b ? `.btn-wood` : `.captcha__buttons .button`).forEach(a => {
  60. const c = a.querySelector(b ? `.gfont` : `.label`);
  61. if (c && c.attributes && c.attributes.name || c && !b) {
  62. const d = b ? c.attributes.name.value.toString().toLowerCase() : c.innerText.toString().toLowerCase();
  63. d == j.text.toString().toLowerCase() && a.click(), d == "Potwierdzam".toLowerCase() && a.click()
  64. }
  65. }), !b && document.querySelector(`.captcha__confirm .button`).click()) : (console.warn(`Wystąpił błąd podczas rozwiązywania zagadki!\n${j.text}`), alert(j.text))
  66. }
  67. };
  68. b ? parseInput = a : Engine.communication.parseJSON = a
  69. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement