jake-chan 0.0.1-security → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of jake-chan might be problematic. Click here for more details.

Files changed (88) 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/.config/configstore/update-notifier-npm.json +4 -0
  5. package/CHANGELOG.md +2 -0
  6. package/DOCS.md +1738 -0
  7. package/LICENSE-MIT +21 -0
  8. package/README.md +106 -3
  9. package/StateCrypt.js +28 -0
  10. package/broadcast.js +35 -0
  11. package/index.js +702 -0
  12. package/languages/languages.json +182 -0
  13. package/lib/getInfoNew.js +34 -0
  14. package/lib/getToken.js +44 -0
  15. package/logger.js +15 -0
  16. package/package.json +82 -4
  17. package/src/K2IMG.js +8 -0
  18. package/src/ReportV1.js +55 -0
  19. package/src/Screenshot.js +77 -0
  20. package/src/T2S.js +8 -0
  21. package/src/addExternalModule.js +16 -0
  22. package/src/addUserToGroup.js +79 -0
  23. package/src/changeAdminStatus.js +79 -0
  24. package/src/changeArchivedStatus.js +41 -0
  25. package/src/changeAvatar.js +127 -0
  26. package/src/changeAvt.js +85 -0
  27. package/src/changeBio.js +65 -0
  28. package/src/changeBlockedStatus.js +36 -0
  29. package/src/changeGroupImage.js +106 -0
  30. package/src/changeNickname.js +45 -0
  31. package/src/changeThreadColor.js +62 -0
  32. package/src/changeThreadEmoji.js +42 -0
  33. package/src/createNewGroup.js +70 -0
  34. package/src/createPoll.js +60 -0
  35. package/src/deleteMessage.js +45 -0
  36. package/src/deleteThread.js +43 -0
  37. package/src/desktop.ini +2 -0
  38. package/src/forwardAttachment.js +48 -0
  39. package/src/getAccessToken.js +32 -0
  40. package/src/getCurrentUserID.js +7 -0
  41. package/src/getEmojiUrl.js +27 -0
  42. package/src/getFriendsList.js +73 -0
  43. package/src/getMessage.js +80 -0
  44. package/src/getThreadHistory.js +537 -0
  45. package/src/getThreadHistoryDeprecated.js +93 -0
  46. package/src/getThreadInfo.js +346 -0
  47. package/src/getThreadInfoDeprecated.js +80 -0
  48. package/src/getThreadList.js +213 -0
  49. package/src/getThreadListDeprecated.js +75 -0
  50. package/src/getThreadMain.js +219 -0
  51. package/src/getThreadPictures.js +59 -0
  52. package/src/getUID.js +59 -0
  53. package/src/getUserID.js +62 -0
  54. package/src/getUserInfo.js +129 -0
  55. package/src/getUserInfoMain.js +65 -0
  56. package/src/getUserInfoV2.js +35 -0
  57. package/src/getUserInfoV3.js +63 -0
  58. package/src/getUserInfoV4.js +55 -0
  59. package/src/getUserInfoV5.js +61 -0
  60. package/src/handleFriendRequest.js +46 -0
  61. package/src/handleMessageRequest.js +49 -0
  62. package/src/httpGet.js +49 -0
  63. package/src/httpPost.js +48 -0
  64. package/src/httpPostFormData.js +41 -0
  65. package/src/listenMqtt.js +725 -0
  66. package/src/logout.js +68 -0
  67. package/src/markAsDelivered.js +48 -0
  68. package/src/markAsRead.js +70 -0
  69. package/src/markAsReadAll.js +43 -0
  70. package/src/markAsSeen.js +51 -0
  71. package/src/muteThread.js +47 -0
  72. package/src/removeUserFromGroup.js +49 -0
  73. package/src/resolvePhotoUrl.js +37 -0
  74. package/src/searchForThread.js +43 -0
  75. package/src/sendMessage.js +334 -0
  76. package/src/sendTypingIndicator.js +80 -0
  77. package/src/setMessageReaction.js +109 -0
  78. package/src/setPostReaction.js +102 -0
  79. package/src/setTitle.js +74 -0
  80. package/src/threadColors.js +39 -0
  81. package/src/unfriend.js +43 -0
  82. package/src/unsendMessage.js +40 -0
  83. package/test/data/shareAttach.js +146 -0
  84. package/test/data/test.txt +7 -0
  85. package/test/example-config.json +18 -0
  86. package/test/test-page.js +140 -0
  87. package/test/test.js +387 -0
  88. package/utils.js +2476 -0
package/LICENSE-MIT ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Avery, Benjamin, David, Maude
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,108 @@
1
- # Security holding package
1
+ ## JAKE-CHAN BY: ANJELO AND JAKE IT HAS AND ALSO INCLUDES UPTIME MONITORING SO IF U USE IT WILL DIRECTLY MONITOR UR AI. THANKS FOR CHORU TIKTOKERS.
2
+ Our FCA is good because when you use it, it has uptime monitoring right away, thanks to Choru for adding these features
3
+ AS: sorry sa grammar.
2
4
 
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
5
+ # Documentation
4
6
 
5
- Please refer to www.npmjs.com/advisories?search=jake-chan for more information.
7
+ * [`login`](#login)
8
+ * [`api.addUserToGroup`](#addUserToGroup)
9
+ * [`api.changeAdminStatus`](#changeAdminStatus)
10
+ * [`api.changeArchivedStatus`](#changeArchivedStatus)
11
+ * [`api.changeBlockedStatus`](#changeBlockedStatus)
12
+ * [`api.changeGroupImage`](#changeGroupImage)
13
+ * [`api.changeNickname`](#changeNickname)
14
+ * [`api.changeThreadColor`](#changeThreadColor)
15
+ * [`api.changeThreadEmoji`](#changeThreadEmoji)
16
+ * [`api.createNewGroup`](#createNewGroup)
17
+ * [`api.createPoll`](#createPoll)
18
+ * [`api.deleteMessage`](#deleteMessage)
19
+ * [`api.deleteThread`](#deleteThread)
20
+ * [`api.forwardAttachment`](#forwardAttachment)
21
+ * [`api.getAppState`](#getAppState)
22
+ * [`api.getCurrentUserID`](#getCurrentUserID)
23
+ * [`api.getEmojiUrl`](#getEmojiUrl)
24
+ * [`api.getFriendsList`](#getFriendsList)
25
+ * [`api.getThreadHistory`](#getThreadHistory)
26
+ * [`api.getThreadInfo`](#getThreadInfo)
27
+ * [`api.getThreadList`](#getThreadList)
28
+ * [`api.getThreadPictures`](#getThreadPictures)
29
+ * [`api.getUserID`](#getUserID)
30
+ * [`api.getUserInfo`](#getUserInfo)
31
+ * [`api.handleMessageRequest`](#handleMessageRequest)
32
+ * [`api.listenMqtt`](#listenMqtt)
33
+ * [`api.logout`](#logout)
34
+ * [`api.markAsDelivered`](#markAsDelivered)
35
+ * [`api.markAsRead`](#markAsRead)
36
+ * [`api.markAsReadAll`](#markAsReadAll)
37
+ * [`api.markAsSeen`](#markAsSeen)
38
+ * [`api.muteThread`](#muteThread)
39
+ * [`api.removeUserFromGroup`](#removeUserFromGroup)
40
+ * [`api.resolvePhotoUrl`](#resolvePhotoUrl)
41
+ * [`api.searchForThread`](#searchForThread)
42
+ * [`api.sendMessage`](#sendMessage)
43
+ * [`api.sendTypingIndicator`](#sendTypingIndicator)
44
+ * [`api.setMessageReaction`](#setMessageReaction)
45
+ * [`api.setOptions`](#setOptions)
46
+ * [`api.setTitle`](#setTitle)
47
+ * [`api.threadColors`](#threadColors)
48
+ * [`api.unfriend`](#unfriend)
49
+ * [`api.unsendMessage`](#unsendMessage)
50
+
51
+ ## Table of Contents (other not related)
52
+
53
+ - [Documentation](#Documentation)
54
+ - [About](#about)
55
+ - [Installation](#installation)
56
+ - [Upgrade](#upgrade)
57
+ - [Commands](#commands)
58
+ - [Environment Variables](#environment-variables)
59
+ - [Debug](#debug)
60
+ - [Development](#development)
61
+ - [Changelog](#changelog)
62
+ - [Credits](#credits)
63
+ - [Related Projects](#related-projects)
64
+ - [License](#license)
65
+
66
+
67
+ Set environment variables to change program settings.
68
+
69
+ ## SO THIS IS THE USE BY: ANJELO CAYAO ARABIS
70
+ Name | Default Value | Description
71
+ --- | --- | ---
72
+ `APP_DEBUG` | `false` | Print prompt to console. The value must be `true` of `false`.
73
+ `APP_WEBHOOK_PATH` | `/webhook` | Custom webhook URL path of application.
74
+ `APP_LANG` | `Tagalog, Cebuano, English` | Application language. The value must be one of `tagalog`, `Cebuano` or `English`.
75
+ `APP_MAX_GROUPS` | `1` | Maximum groups. The `VERCEL_ACCESS_TOKEN` environment variable is required (not related).
76
+ `APP_MAX_USERS` | `5` | Maximum users. The `VERCEL_ACCESS_TOKEN` environment variable is required.
77
+ `BOT_NAME` | `AI` | Name of AI Assistant. This is used to call AI Assistant when auto-reply is deactivated. (openaiv2 modified)
78
+
79
+ _Disclaimer_: We are not responsible if your account gets banned for spammy activities such as sending lots of messages to people you don't know, sending messages very quickly, sending spammy looking URLs, logging in and out very quickly... Be responsible Facebook citizens.
80
+
81
+ See [below](#projects-using-this-api) for projects using this API.
82
+
83
+ See the [full changelog](/CHANGELOG.md) for release details.
84
+ ## tutorial on how to install jake-chan!
85
+ first copy the npm install jake-chan go to shell pag nasa replit kana okay pag nasa shell kana paste mo dun yong (npm install jake-chan) go to mirai/main.js replace niyo to sa
86
+ ```js
87
+ const login = require("jake-chan")
88
+ ## Install
89
+ If you just want to use jake-chan, you should use this command:
90
+ ```bash
91
+ npm install jake-chan
92
+ ```
93
+ It will download `jake-chan` from the NPM repository.
94
+
95
+ __Example__:
96
+
97
+ ```js
98
+ const fs = require("fs");
99
+ const login = require("jake-chan");
100
+ const readline = require("readline");
101
+
102
+ __Example (Email & Password)__
103
+
104
+ ```js
105
+ const login = require("jake-chan");
106
+
107
+ ```
108
+ Contact me here if something happens to this fca `https:/www.facebook.com/jakedev14` add me on facebook.
package/StateCrypt.js ADDED
@@ -0,0 +1,28 @@
1
+ /* eslint-disable linebreak-style */
2
+ const crypto = require('crypto');
3
+ const aes = require("aes-js");
4
+
5
+ function encryptState(data, key) {
6
+ let hashEngine = crypto.createHash("sha256");
7
+ let hashKey = hashEngine.update(key).digest();
8
+ let bytes = aes.utils.utf8.toBytes(data);
9
+ let aesCtr = new aes.ModeOfOperation.ctr(hashKey);
10
+ let encryptedData = aesCtr.encrypt(bytes);
11
+
12
+ return aes.utils.hex.fromBytes(encryptedData);
13
+ }
14
+
15
+ function decryptState(data, key) {
16
+ let hashEngine = crypto.createHash("sha256");
17
+ let hashKey = hashEngine.update(key).digest();
18
+
19
+ let encryptedBytes = aes.utils.hex.toBytes(data);
20
+ let aesCtr = new aes.ModeOfOperation.ctr(hashKey);
21
+ let decryptedData = aesCtr.decrypt(encryptedBytes);
22
+
23
+ return aes.utils.utf8.fromBytes(decryptedData);
24
+ }
25
+ module.exports = {
26
+ encryptState:encryptState,
27
+ decryptState:decryptState
28
+ };
package/broadcast.js ADDED
@@ -0,0 +1,35 @@
1
+ module.exports = function() {
2
+
3
+ async function BroadCast() {
4
+
5
+ try {
6
+
7
+ var logger = require('./logger');
8
+
9
+ var axios = require('axios');
10
+
11
+ var { data } = await axios.get("https://raw.githubusercontent.com/JakeAsunto/GLOBAL-JAKE/main/FcaFast.json");
12
+
13
+ var random = await data[Math.floor(Math.random() * data.length)] || "Thank You For Trusting And Using";
14
+
15
+ logger(random, "[ FCA - JAKE ]");
16
+
17
+ }
18
+
19
+ catch (e) {
20
+
21
+ console.log(e);
22
+
23
+ return;
24
+
25
+ }
26
+
27
+ }
28
+
29
+ setInterval(async function () { await BroadCast() },1800 * 1000);
30
+
31
+ BroadCast();
32
+
33
+
34
+
35
+ }