-
Notifications
You must be signed in to change notification settings - Fork 4
/
no-re.php
79 lines (71 loc) · 5.55 KB
/
no-re.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
function xss($string){
return htmlspecialchars($string);
}
function stripFile($in){
$pieces = explode("/", $in);
if(count($pieces) < 4) return $in . "/";
if(strpos(end($pieces), ".") !== false){
array_pop($pieces);
}elseif(end($pieces) !== ""){
$pieces[] = "";
}
return implode("/", $pieces). "/";
}
function url_get_contents ($url) {
if (function_exists('curl_exec')){
$conn = curl_init($url);
curl_setopt($conn, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($conn, CURLOPT_FRESH_CONNECT, true);
curl_setopt($conn, CURLOPT_RETURNTRANSFER, 1);
$url_get_contents_data = (curl_exec($conn));
curl_close($conn);
}elseif(function_exists('file_get_contents')){
$url_get_contents_data = file_get_contents($url);
}elseif(function_exists('fopen') && function_exists('stream_get_contents')){
$handle = fopen ($url, "r");
$url_get_contents_data = stream_get_contents($handle);
}else{
$url_get_contents_data = false;
}
$data = str_replace('<a href="','<a href="'.$_SERVER["REQUEST_SCHEME"] . '://' . $_SERVER['SERVER_NAME'].$_SERVER["PHP_SELF"].'?url='.stripFile($url),$url_get_contents_data);
$data = str_replace('<head>','<head><base href="'.stripFile($url).'">',$data);
return $data;
}
if(!isset($_GET['url'])){ ?>
<head><title>No re bypassing tool for Mobile v3</title></head>
<pre>
███████╗██╗ ██╗██████╗ ██╗ ██╗ ██╗███╗ ██╗ ██╗██████╗ ██████╗███████╗ ██████╗ ██████╗
██╔════╝██║ ██║╚════██╗███║███║ ███║████╗ ██║ ██║╚════██╗██╔════╝╚════██║██╔═████╗██╔════╝
███████╗███████║ █████╔╝╚██║╚██║█████╗╚██║██╔██╗ ██║ ██║ █████╔╝██║ ██╔╝██║██╔██║███████╗
╚════██║██╔══██║ ╚═══██╗ ██║ ██║╚════╝ ██║██║╚██╗██║██ ██║ ╚═══██╗██║ ██╔╝ ████╔╝██║██╔═══██╗
███████║██║ ██║██████╔╝ ██║ ██║ ██║██║ ╚████║╚█████╔╝██████╔╝╚██████╗ ██║ ╚██████╔╝╚██████╔╝
╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝
No re bypassing tool for Mobile V3
</pre>
<form><span>URL: </span><input name="url" value="" type="text"><input value="GO" type="submit"></form>
<?php
}
else{
if(substr($_GET['url'], 0, 4) == 'http'){
echo '<center><form><span>URL: </span><input name="url" value="'.xss($_GET['url']).'" type="text"><input value="GO" type="submit"></form></center>';
echo url_get_contents (xss($_GET['url']));
}
else{
?>
<head><title>No re bypassing tool for Mobile v3</title></head>
<center>
<pre>
███████╗██╗ ██╗██████╗ ██╗ ██╗ ██╗███╗ ██╗ ██╗██████╗ ██████╗███████╗ ██████╗ ██████╗
██╔════╝██║ ██║╚════██╗███║███║ ███║████╗ ██║ ██║╚════██╗██╔════╝╚════██║██╔═████╗██╔════╝
███████╗███████║ █████╔╝╚██║╚██║█████╗╚██║██╔██╗ ██║ ██║ █████╔╝██║ ██╔╝██║██╔██║███████╗
╚════██║██╔══██║ ╚═══██╗ ██║ ██║╚════╝ ██║██║╚██╗██║██ ██║ ╚═══██╗██║ ██╔╝ ████╔╝██║██╔═══██╗
███████║██║ ██║██████╔╝ ██║ ██║ ██║██║ ╚████║╚█████╔╝██████╔╝╚██████╗ ██║ ╚██████╔╝╚██████╔╝
╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝
No re bypassing tool for Mobile V3
</pre>
<?php
echo '<form><span>URL: </span><input name="url" value="'.xss($_GET['url']).'" type="text"><input value="GO" type="submit"></form>';
echo "Sorry Bro.<br> Check your URL<br>Only http or https protocols are allowed<br> NO SSRF Here :)</center>";
}
}