Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * JLINKZ - REDIRECT TOOLS
- * API BY BUKANCODER
- * CODED BY SHUTDOWN57
- * @author API : BukanCoder.
- * @author Jlinkz : shutdown57 ( https://facebook.com/alinko.jp )
- * @copyright (c) 2018 https://facebook.com/groups/jc.javcode
- **/
- error_reporting(0);
- ob_start();
- /*Started Code here.
- -
- Creating JavCode Class.*/
- Class JavCode{
- /*your key to open panel and jlinkz settings
- -
- example : http://example.com/Jlinkz.php?key=YourKeyHere
- -
- Default use http://example.com/Jlinkz.php?key=Jlinkz
- */
- public $yourkey = "Jlinkz";
- /*To check IP Client when visiting that script/file
- -
- default use 'dinamic' for checking dinamically Client IP.
- -
- If you want to trying Another IP u can change that.
- */
- public $from_ip = 'dinamic';
- // public $from_ip = '127.0.0.1';
- /*Construct is a first function called in class*/
- public function __construct()
- {
- if($this->from_ip = 'dinamic')
- {
- $this->from_ip = $_SERVER['REMOTE_ADDR'];
- }else{
- $this->from_ip = $this->from_ip;
- }
- /*Checking if not empty parameter get "key" and if parameter get "key" same with $yourkey*/
- if(!empty($_GET['key']) && $_GET['key'] == $this->yourkey){
- /*Html code started here for frontend*/
- ?><!DOCTYPE html>
- <html>
- <head>
- <title>[::] Jlinkz - Redirect Tools [::]</title>
- <meta name="author" content="shutdown57">
- <meta name="description" content="Jlinkz - Redirect toolz//">
- </head>
- <!-- Style css code started here .-->
- <style type="text/css">html,body{background: #333;color: #eee;font-family:monospace;}textarea{color: #eee;background: #333;border: 1px dashed #eee;width:400px;height:200px;}textarea:hover{border: 1px dashed #df5}textarea:focus{border: 1px solid lime}.container{max-width: 600px;margin: 0 auto;text-align: center;border: 1px dashed #ddd;box-shadow: 0px 0px 10px #f00;}.container:hover{box-shadow: 0px 0px 10px #df5;}.container:focus,.container:active{box-shadow: 0px 0px 10px lime;}label{font-weight: bold;text-align: center;}.inputbut{color: #eee;background: transparent;padding: 6px;border: 1px dashed #eee;cursor: pointer;}.inputbut:hover{color:#fff;border: 1px solid #fff}a{color: gold;text-decoration: none;}fieldset{border-left:0;border-right:0;border-top:1px solid #df5;border-bottom:1px solid #df5}select{border: 0;background: #333;color: #eee;}</style>
- <body>
- <br><br>
- <div class="container">
- <h2 style="text-align: center;text-shadow: 1px 1px 2px #888;border-bottom: 1px dashed #efe">Jlinkz - Redirect Tools</h2>
- <p>DIRECTORY : <?php
- /*Checking if writable directory CWD ( where that script are there ) .
- -
- Because the rules and links must create new file in that directory.
- */
- echo(is_writable(getcwd())) ? "<font color=lime>WRITABLE</font>" : "<font color=red>NOT WRITABLE</font>"; ?></p><br/>
- <form method="post">
- <label>List Link ::</label><br/>
- <textarea name="link" required></textarea><br/><br/>
- <fieldset><legend>Rulez of Jlinkz</legend>
- <label>Link options ::</label><br/>
- <input type="radio" name="opt" value="1">Random link | <input type="radio" name="opt" value="2">Open all link <br/><br/>
- <label>Jika terdeteksi IP Proxy ::</label><br/>
- <input type="radio" name="pro" value="1">Block 404 | <input type="radio" name="pro" value="2">Redirect to google.com <br/><br/>
- <!-- <label>Jika tedeteksi Country [<select><option >ID</option><option >US</option></select>]</label><br/>
- <input type="radio" name="con" value="1">Block 404 | <input type="radio" name="con" value="2">Redirect to google.com | <input type="radio" name="con" value="2">Allow <br/><br/> -->
- </fieldset><br/>
- <input type="submit" name="submit" value="Apply rules." class="inputbut"><br/>
- <p>Request new rules ? <a href="https://facebook.com/alinko.jp" target="_blank">Click here.</a><br/></p>
- </form>
- </div>
- <?php
- if(isset($_POST['submit']))
- {
- $opt = $this->Jfilter($_POST['opt']);
- $pro = $this->Jfilter($_POST['pro']);
- $link = $this->Jfilter($_POST['link']);
- $create_rulez =
- "
- // Powered by : JavCode | API Proxy by : Bukan Coder.
- @opt_link = \"".$opt."\"; // Options list of link, 1 = random link | 2 = open all link
- @detect_proxy = \"".$pro."\"; // if detected proxy IP , 1 = block 404 | 2 = redirect to google.com
- ";
- flush();
- ob_flush();
- if($this->Jsave('Jrulez.txt',$create_rulez))
- {
- echo "<font color=lime>[+]</font> RULEZ CREATED SUCCESSFULLY ... <br>";
- }else{
- echo "<font color=red>[-]</font> COULDN'T CREATING RULEZ ... <br> ";
- }
- if($this->Jsave('Jlinkz.txt',$link))
- {
- echo "<font color=lime>[+]</font> LIST LINKS SAVED SUCCESSFULLY ... <br>";
- }else{
- echo "<font color=red>[-]</font> LIST LINKS COULDN'T SAVE :( ... <br>";
- }
- echo "<a href='?key=".$this->yourkey."'>Go back.</a> ";
- }
- ?><script type="text/javascript">function openmwmwk(link)
- {return window.open(link,'_blank','fullscreen=no,width=700,height=500,left=0,top=600,');}</script><footer style="bottom: 0;position:fixed;border: 1px solid #df5;width: 100%;text-align: center;padding: 3px">[<a href="">HOME</a>][<a href="#" onclick="openmwmwk('Jlinkz.txt');">Jlinkz</a>][<a href="#" onclick="openmwmwk('<?=$_SERVER[PHP_SELF];?>');">TEST</a>]------[ copyright © 2018 <a href="#" onclick="openmwmwk('https://facebook.com/groups/jc.javcode');">JavCode</a> | API By : <a href="#" onclick="openmwmwk('http://xpro.io');">BukanCoder.</a>]------[<a href="">RESET</a>][<a href="#" onclick="openmwmwk('Jrulez.txt');">Jrulez</a>][<a href="<?=$_SERVER['PHP_SELF'];?>">Self</a>]</footer>
- </body>
- </html><?php
- }else{
- $f = @file_get_contents('Jrulez.txt');
- $f = @str_replace("@","\$",$f);
- @eval($f);
- $link = @file_get_contents('Jlinkz.txt');
- $getData = $this->Jcurl($this->from_ip);
- print_r($getData);
- $getData = json_decode($getData);
- if($getData->proxy === true || $getData->proxy != null && $detect_proxy == "1")
- {
- header('HTTP/1.0 404 Not Found');
- exit;
- }elseif($getData->proxy === true || $getData->proxy != null && $detect_proxy == "2")
- {
- /*header('location:https://google.com');*/
- $this->Jredirect('php','https://google.com');
- }elseif($getData->proxy === null || $getData->proxy === false)
- {
- if($opt_link == "1")
- {
- $exlink = explode("\r\n",$link);
- $rlinkz = $exlink[rand(0,count($exlink)-1)];
- $this->Jredirect('php',$rlinkz);
- }elseif($opt_link == "2")
- {
- $exlink = explode("\r\n",$link);
- foreach($exlink as $pli)
- {
- $this->Jredirect('js',$pli);
- }
- }else{
- die('<b>Error</b> : options link not correct !');
- }
- }else{
- die('<b>Error</b> : Can\'t get data from the API.');
- }
- }
- }
- public function Jredirect($pepek,$linkna)
- {
- if($pepek == 'js')
- {
- echo "<script type='text/javascript'>window.open('".$linkna."');</script>";
- }elseif($pepek == 'php')
- {
- header('location:'.$linkna);
- }
- }
- public function Jsave($fname,$content)
- {
- $fp = fopen($fname,'w');
- return fwrite($fp,$content);
- fclose($fp);
- }
- public function Jcurl($ip)
- {
- $c = curl_init();
- $opt = [CURLOPT_URL => "https://api.xpro.io/?ip=".$ip, // getting IP Info from the API. by : BukanCoder.
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_REFERER=>"https://xpro.io",
- CURLOPT_USERAGENT=>$_SERVER['HTTP_USER_AGENT']];
- curl_setopt_array($c,$opt);
- return curl_exec($c);
- curl_close($c);
- }
- public function Jfilter($str)
- {
- return strip_tags($str);
- }
- }
- new JavCode;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement