自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(62)
  • 收藏
  • 关注

原创 IOT设备入侵检测思路

一、 思路1登录日志查看如果当前设备登录日志存在超出预设频率的失败并最终成功,则初步判断为遭受入侵。网络请求监控监控当前设备对外发起的网络请求,如果频繁对外发送登录验证请求则判定为遭受入侵。监控当前设备对外发起的网络请求,若发现当前设备频繁对外发送telnet协议或者ssh协议的登录验证请求,并且对外的登录验证请求涉及的账号或者密码不同,并返回大量错误信息,则判定当前设备遭受入侵并尝试感染其他设备。端口服务检测检测当前设备网络端口服务,若预设端口原始服务被篡改,则判定为遭受入

2021-04-06 08:38:45 425 1

原创 记录一下清华源的地址

下载pwn工具的时候,发现换个清华源比较舒服https://pypi.tuna.tsinghua.edu.cn/simple

2021-03-21 11:11:57 1060

原创 printf(&x)的利用——CGfsb题解

例行检测file CGfsbchecksec CGfsb反编译int __cdecl main(int argc, const char **argv, const char **envp){ _DWORD buf[2]; // [esp+1Eh] [ebp-7Eh] BYREF __int16 v5; // [esp+26h] [ebp-76h] char s[100]; // [esp+28h] [ebp-74h] BYREF unsigned int v7; // [e

2021-03-11 11:33:06 323

原创 python3的pwn用法——when_did_you_born题解

检测截图file when_did_you_bornchecksec when_did_you_born我承认看到金丝雀+NX有那么一点点不开心,但是不影响。反编译程序根据上一步的file查看到它是64-bits的ELF文件,所以64-bits的IDA打开它,反编译找到主函数F5查看源代码。__int64 __fastcall main(int a1, char **a2, char **a3){ __int64 result; // rax char v4[8]; // [rs

2021-03-11 01:15:33 1651

原创 checksec安装与使用

checksec安装与使用安装 sudo apt install checksec报错无处不在,安装的时候出现一下报错:然后换尝试了疯狂换源+updatge不行,最后换了一种安装方式,如下:参考 https://github.com/slimm609/checksec.shgit clone https://github.com/slimm609/checksec.sh将其拷贝到任意全局bin目录下方便使用 sudo cp checksec /usr/local/bin/

2021-03-07 01:47:20 10160 1

原创 宝塔搭建多个站点

添加第一个站点⇒ 在安装好宝塔的服务器上命令查看宝塔的外网地址,命令如下:bt default⇒ 用给出的账号密码登录外网面板地址,然后左侧边栏“软件”里面配置网站需要的环境(包括nginx或者apache,还有php等等)。服务器安全组设置里,要确保放行了需要的端口。觉得不安全可以把SSH等服务的默认端口号改到其它端口去。⇒ 然后,在宝塔外网面板页面,左侧边栏的“文件”这里上传网站文件夹。⇒ 然后在“网站”里,添加站点,根目录和域名端口号要写对,然后选择对应软件版本。根目录一般就写

2021-02-12 15:34:33 10828 8

原创 栈溢出

缓冲区溢出缓冲区溢出简介​ 计算机程序的运行依赖于函数调用栈。栈溢出是指在栈内写入超出长度限制的数据,从而破坏程序运行甚至获得系统控制权的攻击手段。​ 实现缓冲区溢出,要满足两个条件:第一,程序要有向栈内写入数据的行为,并且写入长度要大于目标存储长度;第二,程序并不限制写入数据的长度。​ 历史上第一例被广泛注意的**“莫里斯蠕虫”病毒**就是利用C语言标准库的 gets() 函数并未限制输入数据长度的漏洞,从而实现了栈溢出。​ 缓冲区溢出两种类型:基于栈的缓冲区溢出——目

2021-02-03 18:35:15 2923

原创 ubuntu18 安装及使用docker

安装update$ sudo apt-get update安装 apt 依赖包,用于通过HTTPS来获取仓库$ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common添加 Docker 的官方 GPG 密钥$ curl -fsSL https://download.docker.com/

2021-02-03 17:11:08 903 1

原创 计算机通信网

本文主要纳计算机通信网相关知识归纳,主要参考《计算机通信网原理与技术》薛质 袁艺 蒋兴浩 编著ps:本文现在处于疯狂在更状态,预计5天内更完。

2020-12-12 00:40:21 2605 3

原创 1007 Maximum Subsequence Sum (25分)

Given a sequence of K integers { N​1​​, N​2​​, ..., N​K​​ }. A continuous subsequence is defined to be { N​i​​, N​i+1​​, ..., N​j​​ } where 1≤i≤j≤K. The Maximum Subsequence is the continuous subsequence which has the largest sum of its elements. For exampl

2020-07-24 22:32:39 121

原创 1149 Dangerous Goods Packaging (25分)

When shipping goods with containers, we have to be careful not to pack some incompatible goods into the same container, or we might get ourselves in serious trouble. For example, oxidizing agent (氧化剂) must not be packed with flammable liquid (易燃液体), or it

2020-07-19 18:33:31 154

原创 1141 PAT Ranking of Institutions (25分)

After each PAT, the PAT Center will announce the ranking of institutions based on their students' performances. Now you are asked to generate the ranklist.Input Specification:Each input file contains one test case. For each case, the first line gives a

2020-07-19 15:19:24 159

原创 1137 Final Grading (25分)

For a student taking the online course "Data Structures" on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/she must first obtain no less than 200 points from the online programming assignments, and then receive a

2020-07-19 09:50:10 181

原创 1004 Counting Leaves (30分)

A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains one test case. Each case starts with a line containing 0<N<100, the number of nod

2020-07-18 18:30:03 133

原创 1003 Emergency (25分)

As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the length of each road between any pair of cities are marked

2020-07-18 18:28:53 105

原创 1002 A+B for Polynomials (25分)

This time, you are supposed to find A+B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomial:K N​1​​ a​N​1​​​​ N​2​​ a​N​2​​​​

2020-07-18 18:26:54 120

原创 1001 A+B Format (20分)

Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Input Specification:Each input file contains one test case. Each case contains a pair o

2020-07-18 18:24:53 169

原创 1117 Eddington Number (25分)

British astronomer Eddington liked to ride a bike. It is said that in order to show off his skill, he has even defined an "Eddington number", E -- that is, the maximum integer E such that it is for E days that one rides more than E miles. Eddington's own E

2020-07-18 18:16:47 137

原创 1140 Look-and-say Sequence (20分)

Look-and-say sequence is a sequence of integers as the following:D, D1, D111, D113, D11231, D112213111, ...where D is in [0, 9] except 1. The (n+1)st number is a kind of description of the nth number. For example, the 2nd number means that there is o

2020-07-18 17:53:51 134

原创 1152 Google Recruitment (20分)

In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is super-simple, a URL consisting of the first 10-digit prime found in consecutive digits of the natural constant

2020-07-18 11:33:43 173

原创 1132 Cut Integer (20分)

Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 167334, we have A = 167 and B = 334. It is interesting to see that Z can be devided by the product of A and B,

2020-07-18 10:50:42 133

原创 1128 N Queens Puzzle (20分)

The "eight queens puzzle" is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other. Thus, a solution requires that no two queens share the same row, column, or diagonal. The eight queens puzzle is an examp

2020-07-18 09:50:36 107

原创 1124 Raffle for Weibo Followers (20分)

John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners from every N followers who forwarded his post, and give away gifts. Now you are supposed to help him generate t

2020-07-18 08:06:43 136

原创 1120 Friend Numbers (20分)

Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are friend numbers since 1+2+3 = 5+1 = 6, and 6 is their friend ID. Given some numbers, you are supposed to count

2020-07-17 23:17:16 113

原创 1116 Come on! Let‘s C (20分)

"Let's C" is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejiang University. Since the idea of the contest is for fun, the award rules are funny as the following:0、 The Champion will receive a "Mystery

2020-07-17 23:04:26 184

原创 1113 Integer Set Partition (25分)

Given a set of N (>1) positive integers, you are supposed to partition them into two disjoint sets A​1​​ and A​2​​ of n​1​​ and n​2​​ numbers, respectively. Let S​1​​ and S​2​​ denote the sums of all the numbers in A​1​​ and A​2​​, respectively. You are

2020-07-17 22:00:00 158

原创 1112 Stucked Keyboard (20分)

On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear repeatedly on screen for k times.Now given a resulting string on screen, you are supposed to list all the p

2020-07-17 20:50:12 172

原创 1110 Complete Binary Tree (25分)

Given a tree, you are supposed to tell if it is a complete binary tree.Input Specification:Each input file contains one test case. For each case, the first line gives a positive integer N (≤20) which is the total number of nodes in the tree -- and henc

2020-07-17 16:44:45 132

原创 1107 Social Clusters (30分)

When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A social cluster is a set of people who have some of their hobbies in common. You are supposed to find all the cl

2020-07-17 10:53:28 159

原创 1104 Sum of Number Segments (20分)

Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the sequence { 0.1, 0.2, 0.3, 0.4 }, we have 10 segments: (0.1) (0.1, 0.2) (0.1, 0.2, 0.3) (0.1, 0.2, 0.3, 0.4) (0.2) (0.2, 0.3) (0.2, 0.3, 0.4)

2020-07-16 23:44:55 236 1

原创 1106 Lowest Price in Supply Chain (25分)

A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone on the chain buys products from one's supplier in a price P a

2020-07-16 22:02:52 117

原创 1105 Spiral Matrix (25分)

This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the first element at the upper-left corner, then move in a clockwise spiral. The matrix has m rows and n columns

2020-07-16 18:51:59 135 1

原创 1102 Invert a Binary Tree (25分)

The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a whiteboard so fuck off.Now it's your turn to prove that YOU CAN invert a binary tree!Input Specifi

2020-07-16 09:18:42 108

原创 1101 Quick Sort (25分)

There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then the elements less than the pivot are moved to its left and those larger than the pivot to its right. Given N

2020-07-16 07:49:26 121

原创 1094 The Largest Generation (25分)

A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find the generation with the largest population.Input Specification:Each input file contains one test case.

2020-07-15 08:42:49 160

原创 1093 Count PAT‘s (25分)

The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed by the 3rd, the 4th, and the 6th characters.Now given any string, you are supposed to tell the number of

2020-07-15 07:38:31 154

原创 PAT1090 Highest Price in Supply Chain (25分)

A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone on the chain buys products from one's supplier in a price P a

2020-07-13 16:45:06 160

原创 人工智能 谓词公式化为子句集

1.消去蕴含等价2.将否定符号移动到紧靠谓词的位置上3.变量标准化即,不同含义的变量用不同字母。4.消去存在量词分两种情况:存在量词出现在一个或者多个全称量词辖域内;存在量词不出现在全称量词辖域内。5.化为前束式{全称量词串}(不含全称量词的式子)6.化为skolem标准型7.略去全称量词即,全称量词串直接省略不写。8.消去合取连接词...

2020-04-27 09:14:28 9714

原创 Cheese Aizu - 0558题解

チーズ ()問題今年も JOI 町のチーズ工場がチーズの生産を始め,ねずみが巣から顔を出した.JOI 町は東西南北に区画整理されていて,各区画は巣,チーズ工場,障害物,空き地のいずれかである.ねずみは巣から出発して全てのチーズ工場を訪れチーズを 1 個ずつ食べる.この町には,N 個のチーズ工場があり,どの工場も1種類のチーズだけを生産している.チーズの硬さは工場によって異なっており,硬...

2019-07-25 09:04:50 9994

原创 最大流和最小割问题

以下是根据个人的理解用大白话解释的定义:设有一个有向带边权图G,并确定图中一个结点作为源点(可以理解成起点),再确定另一个点作为汇点(可以理解成终点),在这个图中找到一个边集A,使得在这个图G中删掉A后有且仅有两个子图,且两个子图分别包含源点和汇点。其中这个点集A成为割集。当这个割集里的所有边的权值之和达到最小的时候,称其为最小割。从源点开始按照后一边的流量不得大于前一边(后一边和前一边之间由...

2019-05-17 23:44:21 1522

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除