Cool-Y.github.io/index.html

2600 lines
58 KiB
HTML
Raw Normal View History

2019-04-15 07:42:42 +00:00
<!DOCTYPE html>
2021-04-10 12:03:10 +00:00
<html class="theme-next muse use-motion" lang="zh-Hans">
2019-04-15 07:42:42 +00:00
<head><meta name="generator" content="Hexo 3.8.0">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">
<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
<link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">
<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">
<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">
<link rel="apple-touch-icon" sizes="180x180" href="/images/hackerrank.png?v=5.1.4">
<link rel="icon" type="image/png" sizes="32x32" href="/images/hackerrank.png?v=5.1.4">
<link rel="icon" type="image/png" sizes="16x16" href="/images/hackerrank.png?v=5.1.4">
<link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">
<meta name="keywords" content="Hexo, NexT">
2019-07-24 03:51:42 +00:00
<meta name="description" content="没人比我更懂中医#MAGA">
2019-04-15 07:42:42 +00:00
<meta property="og:type" content="website">
<meta property="og:title" content="混元霹雳手">
<meta property="og:url" content="https://cool-y.github.io/index.html">
<meta property="og:site_name" content="混元霹雳手">
2019-07-24 03:51:42 +00:00
<meta property="og:description" content="没人比我更懂中医#MAGA">
2019-04-15 07:42:42 +00:00
<meta property="og:locale" content="zh-Hans">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="混元霹雳手">
2019-07-24 03:51:42 +00:00
<meta name="twitter:description" content="没人比我更懂中医#MAGA">
2019-04-15 07:42:42 +00:00
<script type="text/javascript" id="hexo.configurations">
var NexT = window.NexT || {};
var CONFIG = {
root: '/',
2021-04-10 12:03:10 +00:00
scheme: 'Muse',
2019-04-15 07:42:42 +00:00
version: '5.1.4',
2021-04-10 12:03:10 +00:00
sidebar: {"position":"left","display":"always","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
2019-04-15 07:42:42 +00:00
fancybox: true,
tabs: true,
motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
duoshuo: {
userId: '0',
author: '博主'
},
algolia: {
applicationID: '',
apiKey: '',
indexName: '',
hits: {"per_page":10},
labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
}
};
</script>
<link rel="canonical" href="https://cool-y.github.io/">
<title>混元霹雳手</title>
</head>
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
<div class="container sidebar-position-left
page-home">
<div class="headband"></div>
<header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-wrapper">
<div class="site-meta ">
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">混元霹雳手</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
2019-07-24 03:51:42 +00:00
<p class="site-subtitle"></p>
2019-04-15 07:42:42 +00:00
</div>
<div class="site-nav-toggle">
<button>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section">
<i class="menu-item-icon fa fa-fw fa-home"></i> <br>
首页
</a>
</li>
<li class="menu-item menu-item-about">
<a href="/about/" rel="section">
<i class="menu-item-icon fa fa-fw fa-user"></i> <br>
关于
</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/tags/" rel="section">
<i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
标签
</a>
</li>
<li class="menu-item menu-item-categories">
<a href="/categories/" rel="section">
<i class="menu-item-icon fa fa-fw fa-th"></i> <br>
分类
</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section">
<i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
归档
</a>
</li>
<li class="menu-item menu-item-bookmarks">
<a href="/bookmarks/" rel="section">
<i class="menu-item-icon fa fa-fw fa-map"></i> <br>
书签
</a>
</li>
2019-08-08 12:42:56 +00:00
2019-08-08 12:47:43 +00:00
<li class="menu-item menu-item-hack之外">
2019-08-08 12:42:56 +00:00
<a href="/hack之外/" rel="section">
2019-08-08 12:52:19 +00:00
<i class="menu-item-icon fa fa-fw fa-heartbeat"></i> <br>
2019-08-08 12:42:56 +00:00
2019-08-08 12:52:19 +00:00
HACK之外
2019-08-08 12:42:56 +00:00
</a>
</li>
2019-04-15 07:42:42 +00:00
</ul>
</nav>
</div>
</header>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
<section id="posts" class="posts-expand">
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
2021-04-10 10:53:27 +00:00
<link itemprop="mainEntityOfPage" href="https://cool-y.github.io/2021/04/10/vm-escape1/">
2019-04-15 07:42:42 +00:00
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Cool-Y">
<meta itemprop="description" content>
<meta itemprop="image" content="/images/avatar.png">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="混元霹雳手">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
2021-04-10 10:53:27 +00:00
<a class="post-title-link" href="/2021/04/10/vm-escape1/" itemprop="url">VM escape-QEMU Case Study</a></h1>
2019-04-15 07:42:42 +00:00
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
2021-04-10 10:53:27 +00:00
<time title="创建于" itemprop="dateCreated datePublished" datetime="2021-04-10T18:25:46+08:00">
2021-04-10
2019-04-15 07:42:42 +00:00
</time>
</span>
2021-01-08 05:55:39 +00:00
<span class="post-category">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
2021-04-10 10:53:27 +00:00
<a href="/categories/Pwn/" itemprop="url" rel="index">
<span itemprop="name">Pwn</span>
2021-01-08 05:55:39 +00:00
</a>
</span>
</span>
2019-04-15 07:42:42 +00:00
2021-04-10 10:53:27 +00:00
<span id="/2021/04/10/vm-escape1/" class="leancloud_visitors" data-flag-title="VM escape-QEMU Case Study">
2019-04-15 07:42:42 +00:00
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数&#58;</span>
<span class="leancloud-visitors-count"></span>
</span>
<div class="post-wordcount">
<span class="post-meta-item-icon">
<i class="fa fa-file-word-o"></i>
</span>
<span title="字数统计">
2021-04-10 10:53:27 +00:00
4.8k 字
2019-04-15 07:42:42 +00:00
</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-clock-o"></i>
</span>
<span title="阅读时长">
2021-04-10 10:53:27 +00:00
20 分钟
2019-04-15 07:42:42 +00:00
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
2021-04-10 10:53:27 +00:00
1 Intro如今虚拟机已大量部署以供个人使用或在企业细分市场中使用。 网络安全供应商使用不同的VM在受控和受限的环境中分析恶意软件。 一个自然的问题出现了:恶意软件能否从虚拟机中逃脱并在主机上执行代码?
2015年来自CrowdStrike的Jason Geffner报告了QEMU中的一个严重
2019-04-15 07:42:42 +00:00
...
<!--noindex-->
<div class="post-button text-center">
2021-04-10 10:53:27 +00:00
<a class="btn" href="/2021/04/10/vm-escape1/#more" rel="contents">
2019-04-15 07:42:42 +00:00
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
2021-04-10 10:53:27 +00:00
<link itemprop="mainEntityOfPage" href="https://cool-y.github.io/2021/03/02/DIR-802-OS-Command-Injection/">
2019-04-15 07:42:42 +00:00
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Cool-Y">
<meta itemprop="description" content>
<meta itemprop="image" content="/images/avatar.png">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="混元霹雳手">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
2021-04-10 10:53:27 +00:00
<a class="post-title-link" href="/2021/03/02/DIR-802-OS-Command-Injection/" itemprop="url">DIR-802 OS Command Injection</a></h1>
2019-04-15 07:42:42 +00:00
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
2021-04-10 10:53:27 +00:00
<time title="创建于" itemprop="dateCreated datePublished" datetime="2021-03-02T13:36:32+08:00">
2021-03-02
2019-04-15 07:42:42 +00:00
</time>
</span>
2021-01-08 05:39:16 +00:00
<span class="post-category">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
2021-01-08 08:35:03 +00:00
<a href="/categories/IOT/" itemprop="url" rel="index">
<span itemprop="name">IOT</span>
2021-01-08 05:39:16 +00:00
</a>
</span>
</span>
2019-04-15 07:42:42 +00:00
2021-04-10 10:53:27 +00:00
<span id="/2021/03/02/DIR-802-OS-Command-Injection/" class="leancloud_visitors" data-flag-title="DIR-802 OS Command Injection">
2019-04-15 07:42:42 +00:00
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数&#58;</span>
<span class="leancloud-visitors-count"></span>
</span>
<div class="post-wordcount">
<span class="post-meta-item-icon">
<i class="fa fa-file-word-o"></i>
</span>
<span title="字数统计">
2021-04-10 10:53:27 +00:00
373 字
2019-04-15 07:42:42 +00:00
</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-clock-o"></i>
</span>
<span title="阅读时长">
2021-04-10 10:53:27 +00:00
1 分钟
2019-04-15 07:42:42 +00:00
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
2021-04-10 10:53:27 +00:00
D-LINK DIR-802 命令注入漏洞
by Cool
漏洞已提交厂商https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10206
漏洞类型CWE-78: Improper Neutra
2019-04-15 07:42:42 +00:00
...
<!--noindex-->
<div class="post-button text-center">
2021-04-10 10:53:27 +00:00
<a class="btn" href="/2021/03/02/DIR-802-OS-Command-Injection/#more" rel="contents">
2019-04-15 07:42:42 +00:00
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
2021-04-10 10:53:27 +00:00
<link itemprop="mainEntityOfPage" href="https://cool-y.github.io/2021/01/08/nvram-config/">
2019-04-15 07:42:42 +00:00
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Cool-Y">
<meta itemprop="description" content>
<meta itemprop="image" content="/images/avatar.png">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="混元霹雳手">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
2021-04-10 10:53:27 +00:00
<a class="post-title-link" href="/2021/01/08/nvram-config/" itemprop="url">自动化获取nvram配置</a></h1>
2019-04-15 07:42:42 +00:00
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
2021-04-10 10:53:27 +00:00
<time title="创建于" itemprop="dateCreated datePublished" datetime="2021-01-08T16:27:26+08:00">
2021-01-08 05:39:16 +00:00
2021-01-08
2019-04-15 07:42:42 +00:00
</time>
</span>
2021-01-08 08:35:03 +00:00
<span class="post-category">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
2021-03-02 06:31:33 +00:00
<a href="/categories/IOT/" itemprop="url" rel="index">
<span itemprop="name">IOT</span>
2021-01-08 08:35:03 +00:00
</a>
</span>
</span>
2019-04-15 07:42:42 +00:00
2021-04-10 10:53:27 +00:00
<span id="/2021/01/08/nvram-config/" class="leancloud_visitors" data-flag-title="自动化获取nvram配置">
2019-04-15 07:42:42 +00:00
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数&#58;</span>
<span class="leancloud-visitors-count"></span>
</span>
<div class="post-wordcount">
<span class="post-meta-item-icon">
<i class="fa fa-file-word-o"></i>
</span>
<span title="字数统计">
2021-04-10 10:53:27 +00:00
1.1k 字
2019-04-15 07:42:42 +00:00
</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-clock-o"></i>
</span>
<span title="阅读时长">
2021-04-10 10:53:27 +00:00
5 分钟
2019-04-15 07:42:42 +00:00
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
2021-04-10 10:53:27 +00:00
ARMX作者说nvram的内容必须从正在运行的设备中提取。一种方法是转储包含nvram数据的mtdblock /proc/mtd可能有助于识别哪个mtdblock包含nvram。另一种方法是如果您可以通过UART进行命令行访问当然可以访问实际的硬件某些固件会提供nvram命令运行“ n
2019-04-15 07:42:42 +00:00
...
<!--noindex-->
<div class="post-button text-center">
2021-04-10 10:53:27 +00:00
<a class="btn" href="/2021/01/08/nvram-config/#more" rel="contents">
2019-04-15 07:42:42 +00:00
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
2021-04-10 10:53:27 +00:00
<link itemprop="mainEntityOfPage" href="https://cool-y.github.io/2021/01/08/Netgear-psv-2020-0211/">
2019-04-15 07:42:42 +00:00
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Cool-Y">
<meta itemprop="description" content>
<meta itemprop="image" content="/images/avatar.png">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="混元霹雳手">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
2021-04-10 10:53:27 +00:00
<a class="post-title-link" href="/2021/01/08/Netgear-psv-2020-0211/" itemprop="url">Netgear_栈溢出漏洞_PSV-2020-0211</a></h1>
2019-04-15 07:42:42 +00:00
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
2021-04-10 10:53:27 +00:00
<time title="创建于" itemprop="dateCreated datePublished" datetime="2021-01-08T13:26:26+08:00">
2021-01-08 08:35:03 +00:00
2021-01-08
2019-04-15 07:42:42 +00:00
</time>
</span>
2021-03-02 06:31:33 +00:00
<span class="post-category">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
2021-04-10 10:53:27 +00:00
<a href="/categories/IOT/" itemprop="url" rel="index">
<span itemprop="name">IOT</span>
2021-03-02 06:31:33 +00:00
</a>
</span>
</span>
2019-04-15 07:42:42 +00:00
2021-04-10 10:53:27 +00:00
<span id="/2021/01/08/Netgear-psv-2020-0211/" class="leancloud_visitors" data-flag-title="Netgear_栈溢出漏洞_PSV-2020-0211">
2019-04-15 07:42:42 +00:00
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数&#58;</span>
<span class="leancloud-visitors-count"></span>
</span>
<div class="post-wordcount">
<span class="post-meta-item-icon">
<i class="fa fa-file-word-o"></i>
</span>
<span title="字数统计">
2021-04-10 10:53:27 +00:00
7.3k 字
2019-04-15 07:42:42 +00:00
</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-clock-o"></i>
</span>
<span title="阅读时长">
2021-04-10 10:53:27 +00:00
40 分钟
2019-04-15 07:42:42 +00:00
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
2021-04-10 10:53:27 +00:00
固件模拟与UPnP栈溢出利用https://kb.netgear.com/000062158/Security-Advisory-for-Pre-Authentication-Command-Injection-on-R8300-PSV-2020-0211 https://ssd-disclosur
2019-04-15 07:42:42 +00:00
...
<!--noindex-->
<div class="post-button text-center">
2021-04-10 10:53:27 +00:00
<a class="btn" href="/2021/01/08/Netgear-psv-2020-0211/#more" rel="contents">
2019-04-15 07:42:42 +00:00
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
2021-04-10 10:53:27 +00:00
<link itemprop="mainEntityOfPage" href="https://cool-y.github.io/2021/01/08/dolphin-attack-practice/">
2019-04-15 07:42:42 +00:00
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Cool-Y">
<meta itemprop="description" content>
<meta itemprop="image" content="/images/avatar.png">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="混元霹雳手">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
2021-04-10 10:53:27 +00:00
<a class="post-title-link" href="/2021/01/08/dolphin-attack-practice/" itemprop="url">Dolphin Attack 论文复现</a></h1>
2019-04-15 07:42:42 +00:00
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
2021-04-10 10:53:27 +00:00
<time title="创建于" itemprop="dateCreated datePublished" datetime="2021-01-08T12:54:41+08:00">
2021-03-02 06:31:33 +00:00
2021-01-08
2019-04-15 07:42:42 +00:00
</time>
</span>
2021-04-10 10:53:27 +00:00
<span class="post-category">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/顶会论文/" itemprop="url" rel="index">
<span itemprop="name">顶会论文</span>
</a>
</span>
</span>
2019-04-15 07:42:42 +00:00
2021-04-10 10:53:27 +00:00
<span id="/2021/01/08/dolphin-attack-practice/" class="leancloud_visitors" data-flag-title="Dolphin Attack 论文复现">
2019-04-15 07:42:42 +00:00
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数&#58;</span>
<span class="leancloud-visitors-count"></span>
</span>
<div class="post-wordcount">
<span class="post-meta-item-icon">
<i class="fa fa-file-word-o"></i>
</span>
<span title="字数统计">
2021-04-10 10:53:27 +00:00
1.4k 字
2019-04-15 07:42:42 +00:00
</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-clock-o"></i>
</span>
<span title="阅读时长">
2021-04-10 10:53:27 +00:00
5 分钟
2019-04-15 07:42:42 +00:00
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
2021-04-10 10:53:27 +00:00
海豚音攻击-复现文章中提到两种方案,一是具有信号发生器的强大变送器,二是带有智能手机的便携式变送器;前一种方案成本过于高,本文不做分析,后一种方案的实现成本在我们可接收的范围。但原文中对后一方案的实现没有太多介绍,于是我通过邮件咨询了作者-闫琛博士,闫博士非常友好,我是在晚上十点发送的第一封邮件,差
2019-04-15 07:42:42 +00:00
...
<!--noindex-->
<div class="post-button text-center">
2021-04-10 10:53:27 +00:00
<a class="btn" href="/2021/01/08/dolphin-attack-practice/#more" rel="contents">
2019-04-15 07:42:42 +00:00
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
2021-04-10 10:53:27 +00:00
<link itemprop="mainEntityOfPage" href="https://cool-y.github.io/2021/01/08/Dolphin-Attack/">
2019-04-15 07:42:42 +00:00
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Cool-Y">
<meta itemprop="description" content>
<meta itemprop="image" content="/images/avatar.png">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="混元霹雳手">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
2021-04-10 10:53:27 +00:00
<a class="post-title-link" href="/2021/01/08/Dolphin-Attack/" itemprop="url">Dolphin Attack 论文翻译</a></h1>
2019-04-15 07:42:42 +00:00
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
2021-04-10 10:53:27 +00:00
<time title="创建于" itemprop="dateCreated datePublished" datetime="2021-01-08T11:58:55+08:00">
2021-01-08
2019-04-15 07:42:42 +00:00
</time>
</span>
2021-04-10 10:53:27 +00:00
<span id="/2021/01/08/Dolphin-Attack/" class="leancloud_visitors" data-flag-title="Dolphin Attack 论文翻译">
2019-04-15 07:42:42 +00:00
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数&#58;</span>
<span class="leancloud-visitors-count"></span>
</span>
<div class="post-wordcount">
<span class="post-meta-item-icon">
<i class="fa fa-file-word-o"></i>
</span>
<span title="字数统计">
2021-04-10 10:53:27 +00:00
15.9k 字
2019-04-15 07:42:42 +00:00
</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-clock-o"></i>
</span>
<span title="阅读时长">
2021-04-10 10:53:27 +00:00
56 分钟
2019-04-15 07:42:42 +00:00
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
2021-04-10 10:53:27 +00:00
海豚音攻击https://acmccs.github.io/papers/p103-zhangAemb.pdfhttps://github.com/USSLab/DolphinAttackhttps://zhuanlan.zhihu.com/p/29306026
Abstract诸如Siri或Goo
2019-04-15 07:42:42 +00:00
...
<!--noindex-->
<div class="post-button text-center">
2021-04-10 10:53:27 +00:00
<a class="btn" href="/2021/01/08/Dolphin-Attack/#more" rel="contents">
2019-04-15 07:42:42 +00:00
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
2021-04-10 10:53:27 +00:00
<link itemprop="mainEntityOfPage" href="https://cool-y.github.io/2020/10/16/coremail/">
2019-04-15 07:42:42 +00:00
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Cool-Y">
<meta itemprop="description" content>
<meta itemprop="image" content="/images/avatar.png">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="混元霹雳手">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
2021-04-10 10:53:27 +00:00
<a class="post-title-link" href="/2020/10/16/coremail/" itemprop="url">DataCon Coremail邮件安全第三题 Writeup</a></h1>
2019-04-15 07:42:42 +00:00
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
2021-04-10 10:53:27 +00:00
<time title="创建于" itemprop="dateCreated datePublished" datetime="2020-10-16T11:07:33+08:00">
2020-10-16
2019-04-15 07:42:42 +00:00
</time>
</span>
2019-07-25 14:22:59 +00:00
<span class="post-category">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
2021-04-10 10:53:27 +00:00
<a href="/categories/杂七杂八/" itemprop="url" rel="index">
<span itemprop="name">杂七杂八</span>
2019-07-25 14:22:59 +00:00
</a>
</span>
</span>
2019-04-15 07:42:42 +00:00
2021-04-10 10:53:27 +00:00
<span id="/2020/10/16/coremail/" class="leancloud_visitors" data-flag-title="DataCon Coremail邮件安全第三题 Writeup">
2019-04-15 07:42:42 +00:00
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数&#58;</span>
<span class="leancloud-visitors-count"></span>
</span>
<div class="post-wordcount">
<span class="post-meta-item-icon">
<i class="fa fa-file-word-o"></i>
</span>
<span title="字数统计">
2021-04-10 10:53:27 +00:00
2.4k 字
2019-04-15 07:42:42 +00:00
</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-clock-o"></i>
</span>
<span title="阅读时长">
2021-04-10 10:53:27 +00:00
8 分钟
2019-04-15 07:42:42 +00:00
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
2021-04-10 10:53:27 +00:00
研一的时候参加了第一届datacon可惜因为课程任务太重了最后连答案都没提交。今年和研一两位师弟师妹组队参加本以为又要躺过去了最后被两位的热情感染完成了比赛还取得不错的成绩也算是完成了研究生阶段的一个小遗憾。我之前没做过数据分析也没接触过邮件安全借这次赛题好好的补了一课第一题是识别发
2019-04-15 07:42:42 +00:00
...
<!--noindex-->
<div class="post-button text-center">
2021-04-10 10:53:27 +00:00
<a class="btn" href="/2020/10/16/coremail/#more" rel="contents">
2019-04-15 07:42:42 +00:00
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
2021-04-10 10:53:27 +00:00
<link itemprop="mainEntityOfPage" href="https://cool-y.github.io/2019/11/12/web-information-collect/">
2019-04-15 07:42:42 +00:00
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Cool-Y">
<meta itemprop="description" content>
<meta itemprop="image" content="/images/avatar.png">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="混元霹雳手">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
2021-04-10 10:53:27 +00:00
<a class="post-title-link" href="/2019/11/12/web-information-collect/" itemprop="url">【web】信息收集</a></h1>
2019-04-15 07:42:42 +00:00
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
2021-04-10 10:53:27 +00:00
<time title="创建于" itemprop="dateCreated datePublished" datetime="2019-11-12T21:04:37+08:00">
2019-11-12
2019-04-15 07:42:42 +00:00
</time>
</span>
2019-10-25 13:13:53 +00:00
<span class="post-category">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
2021-04-10 10:53:27 +00:00
<a href="/categories/web/" itemprop="url" rel="index">
<span itemprop="name">web</span>
2019-10-25 13:13:53 +00:00
</a>
</span>
</span>
2019-04-15 07:42:42 +00:00
2021-04-10 10:53:27 +00:00
<span id="/2019/11/12/web-information-collect/" class="leancloud_visitors" data-flag-title="【web】信息收集">
2019-04-15 07:42:42 +00:00
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数&#58;</span>
<span class="leancloud-visitors-count"></span>
</span>
<div class="post-wordcount">
<span class="post-meta-item-icon">
<i class="fa fa-file-word-o"></i>
</span>
<span title="字数统计">
2021-04-10 10:53:27 +00:00
4.6k 字
2019-04-15 07:42:42 +00:00
</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-clock-o"></i>
</span>
<span title="阅读时长">
2021-04-10 10:53:27 +00:00
19 分钟
2019-04-15 07:42:42 +00:00
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
2021-04-10 10:53:27 +00:00
信息收集+常规owasp top 10+逻辑漏洞https://www.freebuf.com/sectool/94777.html
测试范围:.i.mi.com .cloud.mi.com
0x01 信息收集https://wh0ale.github.io/2019/02/22/SRC
2019-04-15 07:42:42 +00:00
...
<!--noindex-->
<div class="post-button text-center">
2021-04-10 10:53:27 +00:00
<a class="btn" href="/2019/11/12/web-information-collect/#more" rel="contents">
2019-04-15 07:42:42 +00:00
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
2021-04-10 10:53:27 +00:00
<link itemprop="mainEntityOfPage" href="https://cool-y.github.io/2019/10/25/PWNtw-start/">
2019-04-15 07:42:42 +00:00
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Cool-Y">
<meta itemprop="description" content>
<meta itemprop="image" content="/images/avatar.png">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="混元霹雳手">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
2021-04-10 10:53:27 +00:00
<a class="post-title-link" href="/2019/10/25/PWNtw-start/" itemprop="url">【Pwnable.tw】start</a></h1>
2019-04-15 07:42:42 +00:00
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
2021-04-10 10:53:27 +00:00
<time title="创建于" itemprop="dateCreated datePublished" datetime="2019-10-25T21:04:14+08:00">
2019-10-25
2019-04-15 07:42:42 +00:00
</time>
</span>
2019-11-12 13:07:08 +00:00
<span class="post-category">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
2021-04-10 10:53:27 +00:00
<a href="/categories/Pwn/" itemprop="url" rel="index">
<span itemprop="name">Pwn</span>
2019-11-12 13:07:08 +00:00
</a>
</span>
</span>
2019-04-15 07:42:42 +00:00
2021-04-10 10:53:27 +00:00
<span id="/2019/10/25/PWNtw-start/" class="leancloud_visitors" data-flag-title="【Pwnable.tw】start">
2019-04-15 07:42:42 +00:00
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数&#58;</span>
<span class="leancloud-visitors-count"></span>
</span>
<div class="post-wordcount">
<span class="post-meta-item-icon">
<i class="fa fa-file-word-o"></i>
</span>
<span title="字数统计">
2021-04-10 10:53:27 +00:00
1.5k 字
2019-04-15 07:42:42 +00:00
</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-clock-o"></i>
</span>
<span title="阅读时长">
2021-04-10 10:53:27 +00:00
7 分钟
2019-04-15 07:42:42 +00:00
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
2021-04-10 10:53:27 +00:00
Pwnable.tw start程序链接https://pwnable.tw/static/chall/start
0x01 检查保护情况不得不说checksec这个工作看似简单用用现成工具就行但这决定了我们之后漏洞利用的方式是否栈代码执行还是ROP。最好多用几个工具进行检查兼听则明。
2019-04-15 07:42:42 +00:00
...
<!--noindex-->
<div class="post-button text-center">
2021-04-10 10:53:27 +00:00
<a class="btn" href="/2019/10/25/PWNtw-start/#more" rel="contents">
2019-04-15 07:42:42 +00:00
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
2021-04-10 10:53:27 +00:00
<link itemprop="mainEntityOfPage" href="https://cool-y.github.io/2019/07/25/Debug-a-router-firmware/">
2019-04-15 07:42:42 +00:00
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Cool-Y">
<meta itemprop="description" content>
<meta itemprop="image" content="/images/avatar.png">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="混元霹雳手">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
2021-04-10 10:53:27 +00:00
<a class="post-title-link" href="/2019/07/25/Debug-a-router-firmware/" itemprop="url">远程调试小米路由器固件</a></h1>
2019-04-15 07:42:42 +00:00
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
2021-04-10 10:53:27 +00:00
<time title="创建于" itemprop="dateCreated datePublished" datetime="2019-07-25T22:17:08+08:00">
2019-07-25
2019-04-15 07:42:42 +00:00
</time>
</span>
2020-10-21 10:25:01 +00:00
<span class="post-category">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
2021-03-02 06:31:33 +00:00
<a href="/categories/IOT/" itemprop="url" rel="index">
<span itemprop="name">IOT</span>
2020-10-21 10:25:01 +00:00
</a>
</span>
</span>
2019-04-15 07:42:42 +00:00
2021-04-10 10:53:27 +00:00
<span id="/2019/07/25/Debug-a-router-firmware/" class="leancloud_visitors" data-flag-title="远程调试小米路由器固件">
2019-04-15 07:42:42 +00:00
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数&#58;</span>
<span class="leancloud-visitors-count"></span>
</span>
<div class="post-wordcount">
<span class="post-meta-item-icon">
<i class="fa fa-file-word-o"></i>
</span>
<span title="字数统计">
2021-04-10 10:53:27 +00:00
3k 字
2019-04-15 07:42:42 +00:00
</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-clock-o"></i>
</span>
<span title="阅读时长">
2021-04-10 10:53:27 +00:00
13 分钟
2019-04-15 07:42:42 +00:00
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
2021-04-10 10:53:27 +00:00
0x00 背景与简介在分析嵌入式设备的固件时只采用静态分析方式通常是不够的你需要实际执行你的分析目标来观察它的行为。在嵌入式Linux设备的世界里很容易把一个调试器放在目标硬件上进行调试。如果你能在自己的系统上运行二进制文件而不是拖着硬件做分析, 将会方便很多这就需要用QEMU进行仿真。虽
2019-04-15 07:58:23 +00:00
...
2019-04-15 07:42:42 +00:00
<!--noindex-->
<div class="post-button text-center">
2021-04-10 10:53:27 +00:00
<a class="btn" href="/2019/07/25/Debug-a-router-firmware/#more" rel="contents">
2019-04-15 07:42:42 +00:00
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
</section>
2019-04-15 07:58:23 +00:00
<nav class="pagination">
2019-07-24 03:51:42 +00:00
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><a class="extend next" rel="next" href="/page/2/"><i class="fa fa-angle-right"></i></a>
2019-04-15 07:58:23 +00:00
</nav>
2019-04-15 07:42:42 +00:00
</div>
</div>
<div class="sidebar-toggle">
<div class="sidebar-toggle-line-wrap">
<span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
</div>
</div>
<aside id="sidebar" class="sidebar">
<div class="sidebar-inner">
<section class="site-overview-wrap sidebar-panel sidebar-panel-active">
<div class="site-overview">
<div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image" src="/images/avatar.png" alt="Cool-Y">
<p class="site-author-name" itemprop="name">Cool-Y</p>
2019-07-24 03:51:42 +00:00
<p class="site-description motion-element" itemprop="description">没人比我更懂中医#MAGA</p>
2019-04-15 07:42:42 +00:00
</div>
<nav class="site-state motion-element">
<div class="site-state-item site-state-posts">
<a href="/archives/">
2021-04-10 10:53:27 +00:00
<span class="site-state-item-count">30</span>
2019-04-15 07:42:42 +00:00
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="/categories/index.html">
2019-10-15 11:24:26 +00:00
<span class="site-state-item-count">7</span>
2019-04-15 07:42:42 +00:00
<span class="site-state-item-name">分类</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/index.html">
2021-04-10 10:53:27 +00:00
<span class="site-state-item-count">55</span>
2019-04-15 07:42:42 +00:00
<span class="site-state-item-name">标签</span>
</a>
</div>
</nav>
<div class="links-of-author motion-element">
<span class="links-of-author-item">
<a href="https://github.com/Cool-Y" target="_blank" title="GitHub">
<i class="fa fa-fw fa-github"></i>GitHub</a>
</span>
<span class="links-of-author-item">
<a href="mailto:cool.yim@whu.edu.cn" target="_blank" title="E-Mail">
<i class="fa fa-fw fa-envelope"></i>E-Mail</a>
</span>
<span class="links-of-author-item">
<a href="https://www.instagram.com/yan__han/" target="_blank" title="Instagram">
<i class="fa fa-fw fa-instagram"></i>Instagram</a>
</span>
</div>
2019-10-01 12:45:37 +00:00
<div id="music163player">
2021-04-10 12:03:10 +00:00
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="330" height="110" src="//music.163.com/outchain/player?type=4&id=334277093&auto=1&height=90"></iframe>
2019-10-01 12:45:37 +00:00
</div>
2019-04-15 07:42:42 +00:00
</div>
</section>
</div>
</aside>
</div>
</main>
<footer id="footer" class="footer">
<div class="footer-inner">
2021-01-08 04:26:24 +00:00
<div class="copyright">&copy; 2019 &mdash; <span itemprop="copyrightYear">2021</span>
2019-04-15 07:42:42 +00:00
<span class="with-love">
<i class="fa fa-user"></i>
</span>
<span class="author" itemprop="copyrightHolder">Cool-Y</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-area-chart"></i>
</span>
2021-04-10 10:53:27 +00:00
<span title="Site words total count">105.4k</span>
2019-04-15 07:42:42 +00:00
</div>
<div class="powered-by"><a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>
<div class="busuanzi-count">
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span class="site-uv">
<i class="fa fa-user"></i>
<span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
</span>
<span class="site-pv">
<i class="fa fa-eye"></i>
<span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
</span>
</div>
</div>
</footer>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
</div>
</div>
<script type="text/javascript">
if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
window.Promise = null;
}
</script>
<script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
<script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
<script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
<script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
<script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>
<!-- LOCAL: You can save these files to your site and update links -->
2021-04-10 12:03:10 +00:00
<link rel="stylesheet" href="https://aimingoo.github.io/gitmint/style/default.css">
<script src="https://aimingoo.github.io/gitmint/dist/gitmint.browser.js"></script>
2019-04-15 07:42:42 +00:00
<!-- END LOCAL -->
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.4.js"></script>
<script>AV.initialize("EWwoJgHNdlj6iBjiFlMcabUO-gzGzoHsz", "x8FxDrYG79C8YFrTww9ljo8K");</script>
<script>
function showTime(Counter) {
var query = new AV.Query(Counter);
var entries = [];
var $visitors = $(".leancloud_visitors");
$visitors.each(function () {
entries.push( $(this).attr("id").trim() );
});
query.containedIn('url', entries);
query.find()
.done(function (results) {
var COUNT_CONTAINER_REF = '.leancloud-visitors-count';
if (results.length === 0) {
$visitors.find(COUNT_CONTAINER_REF).text(0);
return;
}
for (var i = 0; i < results.length; i++) {
var item = results[i];
var url = item.get('url');
var time = item.get('time');
var element = document.getElementById(url);
$(element).find(COUNT_CONTAINER_REF).text(time);
}
for(var i = 0; i < entries.length; i++) {
var url = entries[i];
var element = document.getElementById(url);
var countSpan = $(element).find(COUNT_CONTAINER_REF);
if( countSpan.text() == '') {
countSpan.text(0);
}
}
})
.fail(function (object, error) {
console.log("Error: " + error.code + " " + error.message);
});
}
function addCount(Counter) {
var $visitors = $(".leancloud_visitors");
var url = $visitors.attr('id').trim();
var title = $visitors.attr('data-flag-title').trim();
var query = new AV.Query(Counter);
query.equalTo("url", url);
query.find({
success: function(results) {
if (results.length > 0) {
var counter = results[0];
counter.fetchWhenSave(true);
counter.increment("time");
counter.save(null, {
success: function(counter) {
var $element = $(document.getElementById(url));
$element.find('.leancloud-visitors-count').text(counter.get('time'));
},
error: function(counter, error) {
console.log('Failed to save Visitor num, with error message: ' + error.message);
}
});
} else {
var newcounter = new Counter();
/* Set ACL */
var acl = new AV.ACL();
acl.setPublicReadAccess(true);
acl.setPublicWriteAccess(true);
newcounter.setACL(acl);
/* End Set ACL */
newcounter.set("title", title);
newcounter.set("url", url);
newcounter.set("time", 1);
newcounter.save(null, {
success: function(newcounter) {
var $element = $(document.getElementById(url));
$element.find('.leancloud-visitors-count').text(newcounter.get('time'));
},
error: function(newcounter, error) {
console.log('Failed to create');
}
});
}
},
error: function(error) {
console.log('Error:' + error.code + " " + error.message);
}
});
}
$(function() {
var Counter = AV.Object.extend("Counter");
if ($('.leancloud_visitors').length == 1) {
addCount(Counter);
} else if ($('.post-title-link').length > 1) {
showTime(Counter);
}
});
</script>
<script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
</body>
</html>