alicezetion 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/.cache/replit/__replit_disk_meta.json +1 -0
  2. package/.cache/replit/modules.stamp +0 -0
  3. package/.cache/replit/nix/env.json +1 -0
  4. package/.travis.yml +6 -0
  5. package/README.md +40 -0
  6. package/alice/add.js +99 -0
  7. package/alice/admin.js +65 -0
  8. package/alice/archive.js +41 -0
  9. package/alice/block.js +72 -0
  10. package/alice/chat.js +415 -0
  11. package/alice/color.js +53 -0
  12. package/alice/deletegc.js +43 -0
  13. package/alice/deletemsg.js +43 -0
  14. package/alice/delivered.js +41 -0
  15. package/alice/emoji.js +41 -0
  16. package/alice/emojiurl.js +29 -0
  17. package/alice/forward.js +47 -0
  18. package/alice/friend.js +70 -0
  19. package/alice/gchistorydeprecated.js +76 -0
  20. package/alice/gcimage.js +115 -0
  21. package/alice/gcimg.js +66 -0
  22. package/alice/gcinfo.js +170 -0
  23. package/alice/gcinfodeprecated.js +65 -0
  24. package/alice/gclist.js +220 -0
  25. package/alice/gclistdeprecated.js +75 -0
  26. package/alice/gcolor.js +22 -0
  27. package/alice/gcsearch.js +39 -0
  28. package/alice/history.js +632 -0
  29. package/alice/id.js +7 -0
  30. package/alice/kick.js +65 -0
  31. package/alice/listen.js +553 -0
  32. package/alice/listenMqtt.js +560 -0
  33. package/alice/logout.js +59 -0
  34. package/alice/msgrequest.js +51 -0
  35. package/alice/mute.js +38 -0
  36. package/alice/nickname.js +44 -0
  37. package/alice/poll.js +55 -0
  38. package/alice/react.js +82 -0
  39. package/alice/read.js +52 -0
  40. package/alice/resolveimgurl.js +31 -0
  41. package/alice/seen.js +36 -0
  42. package/alice/title.js +73 -0
  43. package/alice/typeindicator.js +77 -0
  44. package/alice/unsend.js +35 -0
  45. package/alice/userid.js +52 -0
  46. package/alice/userinfo.js +57 -0
  47. package/index.js +423 -0
  48. package/package.json +70 -0
  49. package/utils.js +1283 -0
@@ -0,0 +1 @@
1
+ {"nonce":7770620907313939412,"last_updated":{"seconds":1677839037,"nanos":636961000}}
File without changes
@@ -0,0 +1 @@
1
+ {"entries":{"replit.nix":{"env":{"AR":"ar","AS":"as","CC":"gcc","CONFIG_SHELL":"/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin/bash","CXX":"g++","HOST_PATH":"/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/bin:/nix/store/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0/bin:/nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19/bin:/nix/store/hqc964yg79161afx85fvcmg1a6879k5i-jest-cli-23.6.0/bin:/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin:/nix/store/mydc6f4k2z73xlcz7ilif3v2lcaiqvza-findutils-4.9.0/bin:/nix/store/j9p3g8472iijd50vhdprx0nmk2fqn5gv-diffutils-3.8/bin:/nix/store/89zs7rms6x00xfq4dq6m7mjnhkr8a6r4-gnused-4.8/bin:/nix/store/86bp03jkmsl6f92w0yzg4s59g5mhxwmy-gnugrep-3.7/bin:/nix/store/hwcdqw4jrjnd37wxqgsd47hd0j8bnj09-gawk-5.1.1/bin:/nix/store/cfbhw8r8ags41vwqaz47r583d0p4h4a1-gnutar-1.34/bin:/nix/store/p3m1ndl1lapwrlh698bnb5lvvxh67378-gzip-1.12/bin:/nix/store/a8mhcagrsly7c7mpjrpsnaahk4aax056-bzip2-1.0.8-bin/bin:/nix/store/mblgz65m3zv9x548a3d5m96fj2pbwr09-gnumake-4.3/bin:/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin:/nix/store/v7ljksji50mg3w61dykaa3n3y79n6nil-patch-2.7.6/bin:/nix/store/zlcnmqq14jz5x9439jf937mvayyl63da-xz-5.2.7-bin/bin:/nix/store/y6aj732zm9m87c82fpvf103a1xb22blp-file-5.43/bin","LD":"ld","LOCALE_ARCHIVE":"/usr/lib/locale/locale-archive","NIX_BINTOOLS":"/nix/store/1d6ian3r8kdzspw8hacjhl3xkp40g1lj-binutils-wrapper-2.39","NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu":"1","NIX_BUILD_CORES":"16","NIX_BUILD_TOP":"/tmp","NIX_CC":"/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0","NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu":"1","NIX_CFLAGS_COMPILE":" -frandom-seed=7ya8xlq922 -isystem /nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/include -isystem /nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/include","NIX_ENFORCE_NO_NATIVE":"1","NIX_HARDENING_ENABLE":"fortify stackprotector pic strictoverflow format relro bindnow","NIX_INDENT_MAKE":"1","NIX_LDFLAGS":"-rpath /nix/store/7ya8xlq922h1fx115xra9kl0d0pfk2ab-nix-shell/lib64 -rpath /nix/store/7ya8xlq922h1fx115xra9kl0d0pfk2ab-nix-shell/lib ","NIX_STORE":"/nix/store","NM":"nm","NODE_PATH":"/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/lib/node_modules:/nix/store/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0/lib/node_modules:/nix/store/hqc964yg79161afx85fvcmg1a6879k5i-jest-cli-23.6.0/lib/node_modules","OBJCOPY":"objcopy","OBJDUMP":"objdump","PATH":"/nix/store/bap4d0lpcrhpwmpb8ayjcgkmvfj62lnq-bash-interactive-5.1-p16/bin:/nix/store/pr5n59mb4jzmfx6kanwxly0l07p861fg-patchelf-0.15.0/bin:/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin:/nix/store/1gf2flfqnpqbr1b4p4qz2f72y42bs56r-gcc-11.3.0/bin:/nix/store/57xv61c5zi8pphjbcwxxjlgc34p61ic9-glibc-2.35-163-bin/bin:/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin:/nix/store/1d6ian3r8kdzspw8hacjhl3xkp40g1lj-binutils-wrapper-2.39/bin:/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin:/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/bin:/nix/store/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0/bin:/nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19/bin:/nix/store/hqc964yg79161afx85fvcmg1a6879k5i-jest-cli-23.6.0/bin:/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin:/nix/store/mydc6f4k2z73xlcz7ilif3v2lcaiqvza-findutils-4.9.0/bin:/nix/store/j9p3g8472iijd50vhdprx0nmk2fqn5gv-diffutils-3.8/bin:/nix/store/89zs7rms6x00xfq4dq6m7mjnhkr8a6r4-gnused-4.8/bin:/nix/store/86bp03jkmsl6f92w0yzg4s59g5mhxwmy-gnugrep-3.7/bin:/nix/store/hwcdqw4jrjnd37wxqgsd47hd0j8bnj09-gawk-5.1.1/bin:/nix/store/cfbhw8r8ags41vwqaz47r583d0p4h4a1-gnutar-1.34/bin:/nix/store/p3m1ndl1lapwrlh698bnb5lvvxh67378-gzip-1.12/bin:/nix/store/a8mhcagrsly7c7mpjrpsnaahk4aax056-bzip2-1.0.8-bin/bin:/nix/store/mblgz65m3zv9x548a3d5m96fj2pbwr09-gnumake-4.3/bin:/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin:/nix/store/v7ljksji50mg3w61dykaa3n3y79n6nil-patch-2.7.6/bin:/nix/store/zlcnmqq14jz5x9439jf937mvayyl63da-xz-5.2.7-bin/bin:/nix/store/y6aj732zm9m87c82fpvf103a1xb22blp-file-5.43/bin","RANLIB":"ranlib","READELF":"readelf","SIZE":"size","SOURCE_DATE_EPOCH":"315532800","STRINGS":"strings","STRIP":"strip","XDG_DATA_DIRS":"/nix/store/pr5n59mb4jzmfx6kanwxly0l07p861fg-patchelf-0.15.0/share","_":"/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin/env","__ETC_PROFILE_SOURCED":"1","buildInputs":"/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1 /nix/store/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0 /nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19 /nix/store/hqc964yg79161afx85fvcmg1a6879k5i-jest-cli-23.6.0","buildPhase":"echo \"------------------------------------------------------------\" \u003e\u003e$out\necho \" WARNING: the existence of this path is not guaranteed.\" \u003e\u003e$out\necho \" It is an internal implementation detail for pkgs.mkShell.\" \u003e\u003e$out\necho \"------------------------------------------------------------\" \u003e\u003e$out\necho \u003e\u003e $out\n# Record all build inputs as runtime dependencies\nexport \u003e\u003e $out\n","builder":"/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin/bash","cmakeFlags":"","configureFlags":"","depsBuildBuild":"","depsBuildBuildPropagated":"","depsBuildTarget":"","depsBuildTargetPropagated":"","depsHostHost":"","depsHostHostPropagated":"","depsTargetTarget":"","depsTargetTargetPropagated":"","doCheck":"","doInstallCheck":"","mesonFlags":"","name":"nix-shell","nativeBuildInputs":"","out":"/nix/store/7ya8xlq922h1fx115xra9kl0d0pfk2ab-nix-shell","outputs":"out","patches":"","phases":"buildPhase","propagatedBuildInputs":"","propagatedNativeBuildInputs":"","shell":"/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin/bash","shellHook":"","stdenv":"/nix/store/kmfaajdpyyyg319vfqni5jm9wkxjmf73-stdenv-linux","strictDeps":"","system":"x86_64-linux"},"dependencies":[{"path":"replit.nix","mod_time":"2023-01-20T17:24:06.730825035Z"}],"channel":"stable-22_11","channel_nix_path":"/nix/store/nw56f75dmj9iyb0gmkcqyl62i7800d82-nixpkgs-stable-22_11-22.11.tar.gz/nixpkgs-stable-22_11"}}}
package/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: node_js
2
+ node_js:
3
+ - "6"
4
+
5
+ script:
6
+ - npm run lint
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ <p align="center">
2
+
3
+ <img src="https://i.imgur.com/GYRjw6F.jpg" alt="LeiamNashProject">
4
+ AliceZetion <br> a fake http tool that can trigger facebook, it uses get and post method to make your account functionable on messenger</p>
5
+
6
+ <br>
7
+ take note:<br>this project is not supported to mirai, c3c, goat and other systems who used fca before<br><br>i am not responsible if your account gets banned for spammy activities
8
+
9
+ <br> <br> features:<br>• philippines server<br>• safari agent<br>• fast and secure<br>• flexible user agent
10
+
11
+ <br> <br>
12
+
13
+ installation
14
+ ```js
15
+ npm i alicezetion
16
+ ```
17
+
18
+ <br>
19
+
20
+ calling a variable
21
+ ```js
22
+ const login = require("alicezetion");
23
+ ```
24
+
25
+ <br>
26
+
27
+ too lazy to write some documents cause this project is only for alice if you want to use this the normal bot response will be:
28
+
29
+ ```js
30
+ bot.chat("TEXT", threadID, messageID);
31
+ ```
32
+
33
+
34
+ <br>
35
+ <p align="center">
36
+ AliceZetion is a package backend for your system, it scarpe on facebook to support fake http login
37
+ </p>
38
+
39
+
40
+ <br> • [LeiamNash](https://www.facebook.com/LeiamNashRebrth)
package/alice/add.js ADDED
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+
3
+ var utils = require("../utils");
4
+ var log = require("npmlog");
5
+
6
+ module.exports = function(defaultFuncs, bot, ctx) {
7
+ return function addUserToGroup(userID, threadID, callback) {
8
+ if (
9
+ !callback &&
10
+ (utils.getType(threadID) === "Function" ||
11
+ utils.getType(threadID) === "AsyncFunction")
12
+ ) {
13
+ throw { error: "please pass a threadID as a second argument." };
14
+ }
15
+
16
+ if (!callback) {
17
+ callback = function() {};
18
+ }
19
+
20
+ if (
21
+ utils.getType(threadID) !== "Number" &&
22
+ utils.getType(threadID) !== "String"
23
+ ) {
24
+ throw {
25
+ error:
26
+ "ThreadID should be of type Number or String and not " +
27
+ utils.getType(threadID) +
28
+ "."
29
+ };
30
+ }
31
+
32
+ if (utils.getType(userID) !== "Array") {
33
+ userID = [userID];
34
+ }
35
+
36
+ var messageAndOTID = utils.generateOfflineThreadingID();
37
+ var form = {
38
+ client: "mercury",
39
+ action_type: "ma-type:log-message",
40
+ author: "fbid:" + ctx.userID,
41
+ thread_id: "",
42
+ timestamp: Date.now(),
43
+ timestamp_absolute: "Today",
44
+ timestamp_relative: utils.generateTimestampRelative(),
45
+ timestamp_time_passed: "0",
46
+ is_unread: false,
47
+ is_cleared: false,
48
+ is_forward: false,
49
+ is_filtered_content: false,
50
+ is_filtered_content_bh: false,
51
+ is_filtered_content_account: false,
52
+ is_spoof_warning: false,
53
+ source: "source:chat:web",
54
+ "source_tags[0]": "source:chat",
55
+ log_message_type: "log:subscribe",
56
+ status: "0",
57
+ offline_threading_id: messageAndOTID,
58
+ message_id: messageAndOTID,
59
+ threading_id: utils.generateThreadingID(ctx.clientID),
60
+ manual_retry_cnt: "0",
61
+ thread_fbid: threadID
62
+ };
63
+
64
+ for (var i = 0; i < userID.length; i++) {
65
+ if (
66
+ utils.getType(userID[i]) !== "Number" &&
67
+ utils.getType(userID[i]) !== "String"
68
+ ) {
69
+ throw {
70
+ error:
71
+ "Elements of userID should be of type Number or String and not " +
72
+ utils.getType(userID[i]) +
73
+ "."
74
+ };
75
+ }
76
+
77
+ form["log_message_data[added_participants][" + i + "]"] =
78
+ "fbid:" + userID[i];
79
+ }
80
+
81
+ defaultFuncs
82
+ .post("https://www.facebook.com/messaging/send/", ctx.jar, form)
83
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
84
+ .then(function(resData) {
85
+ if (!resData) {
86
+ throw { error: "Add to group failed." };
87
+ }
88
+ if (resData.error) {
89
+ throw resData;
90
+ }
91
+
92
+ return callback();
93
+ })
94
+ .catch(function(err) {
95
+ log.error("addUserToGroup", err);
96
+ return callback(err);
97
+ });
98
+ };
99
+ };
package/alice/admin.js ADDED
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ const utils = require("../utils");
4
+ const log = require("npmlog");
5
+
6
+ module.exports = function(defaultFuncs, bot, ctx) {
7
+ return function changeAdminStatus(threadID, adminIDs, adminStatus, callback) {
8
+ if (utils.getType(threadID) !== "String") {
9
+ throw {error: "changeAdminStatus: threadID must be a string"};
10
+ }
11
+
12
+ if (utils.getType(adminIDs) === "String") {
13
+ adminIDs = [adminIDs];
14
+ }
15
+
16
+ if (utils.getType(adminIDs) !== "Array") {
17
+ throw {error: "changeAdminStatus: adminIDs must be an array or string"};
18
+ }
19
+
20
+ if (utils.getType(adminStatus) !== "Boolean") {
21
+ throw {error: "changeAdminStatus: adminStatus must be a string"};
22
+ }
23
+
24
+ if (!callback) {
25
+ callback = () => {};
26
+ }
27
+
28
+ if (utils.getType(callback) !== "Function" && utils.getType(callback) !== "AsyncFunction") {
29
+ throw {error: "changeAdminStatus: callback is not a function"};
30
+ }
31
+
32
+ let form = {
33
+ "thread_fbid": threadID,
34
+ };
35
+
36
+ let i = 0;
37
+ for (let u of adminIDs) {
38
+ form[`admin_ids[${i++}]`] = u
39
+ }
40
+ form["add"] = adminStatus;
41
+
42
+ defaultFuncs
43
+ .post("https://www.facebook.com/messaging/save_admins/?dpr=1", ctx.jar, form)
44
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
45
+ .then(function(resData) {
46
+ if (resData.error) {
47
+ switch (resData.error) {
48
+ case 1976004:
49
+ throw { error: "Cannot alter admin status: you are not an admin.", rawResponse: resData };
50
+ case 1357031:
51
+ throw { error: "Cannot alter admin status: this thread is not a group chat.", rawResponse: resData };
52
+ default:
53
+ throw { error: "Cannot alter admin status: unknown error.", rawResponse: resData };
54
+ }
55
+ }
56
+
57
+ callback();
58
+ })
59
+ .catch(function(err) {
60
+ log.error("changeAdminStatus", err);
61
+ return callback(err);
62
+ });
63
+ };
64
+ };
65
+
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ var utils = require("../utils");
4
+ var log = require("npmlog");
5
+
6
+ module.exports = function(defaultFuncs, bot, ctx) {
7
+ return function changeArchivedStatus(threadOrThreads, archive, callback) {
8
+ if (!callback) {
9
+ callback = function() {};
10
+ }
11
+
12
+ var form = {};
13
+
14
+ if (utils.getType(threadOrThreads) === "Array") {
15
+ for (var i = 0; i < threadOrThreads.length; i++) {
16
+ form["ids[" + threadOrThreads[i] + "]"] = archive;
17
+ }
18
+ } else {
19
+ form["ids[" + threadOrThreads + "]"] = archive;
20
+ }
21
+
22
+ defaultFuncs
23
+ .post(
24
+ "https://www.facebook.com/ajax/mercury/change_archived_status.php",
25
+ ctx.jar,
26
+ form
27
+ )
28
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
29
+ .then(function(resData) {
30
+ if (resData.error) {
31
+ throw resData;
32
+ }
33
+
34
+ return callback();
35
+ })
36
+ .catch(function(err) {
37
+ log.error("changeArchivedStatus", err);
38
+ return callback(err);
39
+ });
40
+ };
41
+ };
package/alice/block.js ADDED
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+
3
+ var utils = require("../utils");
4
+ var log = require("npmlog");
5
+
6
+ module.exports = function(defaultFuncs, bot, ctx) {
7
+ return function changeBlockedStatus(userID, block, callback) {
8
+ if (!callback) {
9
+ callback = function() {};
10
+ }
11
+ if (block) {
12
+ defaultFuncs
13
+ .post(
14
+ "https://www.facebook.com/nfx/block_messages/?thread_fbid=" +
15
+ userID +
16
+ "&location=www_chat_head",
17
+ ctx.jar,
18
+ {}
19
+ )
20
+ .then(utils.saveCookies(ctx.jar))
21
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
22
+ .then(function(resData) {
23
+ if (resData.error) {
24
+ throw resData;
25
+ }
26
+ defaultFuncs
27
+ .post(
28
+ "https://www.facebook.com" +
29
+ /action="(.+?)"+?/
30
+ .exec(resData.jsmods.markup[0][1].__html)[1]
31
+ .replace(/&amp;/g, "&"),
32
+ ctx.jar,
33
+ {}
34
+ )
35
+ .then(utils.saveCookies(ctx.jar))
36
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
37
+ .then(function(_resData) {
38
+ if (_resData.error) {
39
+ throw _resData;
40
+ }
41
+ return callback();
42
+ });
43
+ })
44
+ .catch(function(err) {
45
+ log.error("changeBlockedStatus", err);
46
+ return callback(err);
47
+ });
48
+ } else {
49
+ defaultFuncs
50
+ .post(
51
+ "https://www.facebook.com/ajax/nfx/messenger_undo_block.php?story_location=messenger&context=%7B%22reportable_ent_token%22%3A%22" +
52
+ userID +
53
+ "%22%2C%22initial_action_name%22%3A%22BLOCK_MESSAGES%22%7D&",
54
+ ctx.jar,
55
+ {}
56
+ )
57
+ .then(utils.saveCookies(ctx.jar))
58
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
59
+ .then(function(resData) {
60
+ if (resData.error) {
61
+ throw resData;
62
+ }
63
+
64
+ return callback();
65
+ })
66
+ .catch(function(err) {
67
+ log.error("changeBlockedStatus", err);
68
+ return callback(err);
69
+ });
70
+ }
71
+ };
72
+ };