fb-anya 0.0.1-security → 11.9.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fb-anya might be problematic. Click here for more details.
- package/.cache/replit/__replit_disk_meta.json +1 -0
- package/.cache/replit/modules.stamp +0 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.gitattributes +2 -0
- package/.travis.yml +6 -0
- package/CHANGELOG.md +2 -0
- package/DOCS.md +1738 -0
- package/LICENSE-MIT +21 -0
- package/StateCrypt.js +28 -0
- package/broadcast.js +1 -0
- package/index.js +690 -0
- package/languages/languages.json +182 -0
- package/lib/getInfoNew.js +34 -0
- package/lib/getToken.js +44 -0
- package/logger.js +15 -0
- package/package.json +73 -4
- package/src/ReportV1.js +55 -0
- package/src/addExternalModule.js +16 -0
- package/src/addUserToGroup.js +78 -0
- package/src/changeAdminStatus.js +79 -0
- package/src/changeArchivedStatus.js +41 -0
- package/src/changeAvt.js +86 -0
- package/src/changeBio.js +65 -0
- package/src/changeBlockedStatus.js +36 -0
- package/src/changeGroupImage.js +106 -0
- package/src/changeNickname.js +45 -0
- package/src/changeThreadColor.js +62 -0
- package/src/changeThreadEmoji.js +42 -0
- package/src/createNewGroup.js +70 -0
- package/src/createPoll.js +60 -0
- package/src/deleteMessage.js +45 -0
- package/src/deleteThread.js +43 -0
- package/src/forwardAttachment.js +48 -0
- package/src/getAccessToken.js +33 -0
- package/src/getCurrentUserID.js +7 -0
- package/src/getEmojiUrl.js +27 -0
- package/src/getFriendsList.js +73 -0
- package/src/getMessage.js +79 -0
- package/src/getThreadHistory.js +537 -0
- package/src/getThreadHistoryDeprecated.js +71 -0
- package/src/getThreadInfo.js +206 -0
- package/src/getThreadInfoDeprecated.js +56 -0
- package/src/getThreadList.js +213 -0
- package/src/getThreadListDeprecated.js +46 -0
- package/src/getThreadPictures.js +59 -0
- package/src/getUserID.js +62 -0
- package/src/getUserInfo.js +66 -0
- package/src/getUserInfoMain.js +65 -0
- package/src/getUserInfoV2.js +35 -0
- package/src/getUserInfoV3.js +63 -0
- package/src/getUserInfoV4.js +55 -0
- package/src/getUserInfoV5.js +61 -0
- package/src/handleFriendRequest.js +46 -0
- package/src/handleMessageRequest.js +49 -0
- package/src/httpGet.js +49 -0
- package/src/httpPost.js +48 -0
- package/src/httpPostFormData.js +41 -0
- package/src/listenMqtt.js +629 -0
- package/src/logout.js +68 -0
- package/src/markAsDelivered.js +48 -0
- package/src/markAsRead.js +70 -0
- package/src/markAsReadAll.js +43 -0
- package/src/markAsSeen.js +51 -0
- package/src/muteThread.js +47 -0
- package/src/removeUserFromGroup.js +49 -0
- package/src/resolvePhotoUrl.js +37 -0
- package/src/searchForThread.js +43 -0
- package/src/sendMessage.js +381 -0
- package/src/sendTypingIndicator.js +80 -0
- package/src/setMessageReaction.js +109 -0
- package/src/setPostReaction.js +102 -0
- package/src/setTitle.js +74 -0
- package/src/threadColors.js +39 -0
- package/src/unfriend.js +43 -0
- package/src/unsendMessage.js +40 -0
- package/test/example-config.json +18 -0
- package/test/test-page.js +140 -0
- package/test/test.js +385 -0
- package/utils.js +1246 -0
- package/README.md +0 -5
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/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 @@
|
|
1
|
+
module.exports = function() {
|
2
|
try {
|
1
3
|
var logger = require('./logger');
|
2
4
|
var axios = require('axios');
|
3
5
|
var { data } = await axios.get("https://raw.githubusercontent.com/ChoruTiktokers182/GLOBAL-VEGITO/main/FcaCast.json");
|
4
6
|
var random = await data[Math.floor(Math.random() * data.length)] || "Thank You For Trusting And Using";
|
5
7
|
logger(random, "[ FCA - ANYA ]");
|
6
8
|
}
|
7
9
|
catch (e) {
|
8
10
|
console.log(e);
|
9
11
|
return;
|
10
12
|
}
|