自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 pwn

RIP覆盖一下:先send一堆a覆盖到返回地址再send 返回shell函数的地址覆盖多少:0x8 - (-0xF) = 0x17func地址转载于:https://www.cnblogs.com/zhibin123/p/11605293.html...

2019-09-28 22:40:00 225

转载 bandit game

http://overthewire.org/wargames/l0:cat readmel1:-不能直接读,默认为参数前那个-,这里补充为绝对路径cat /home/bandit1/-l2:输入cat spa 然后tab自动补全。题意要告诉的是空格前应加反斜杠UmHadQclWmgdLOKQ3YNgjWxGoRMb5luKl3:...

2019-09-14 23:59:00 248

转载 No module named 'sklearn.cross_validation'

cross_validation 里面的函数都放在 model_selection 里面from sklearn.model_selection import train_test_split转载于:https://www.cnblogs.com/zhibin123/p/11386978.html

2019-08-21 09:46:00 169

转载 2019/6/28 头条面试 后端

主要问题:  1、右值 虚函数  2、bitmap  参考:https://www.cnblogs.com/zhibin123/p/11102938.html  3、注意:开辟和释放 空间  4、map内部数据结构set map内部数据结构封装 红黑树删除插入时比其他快,因为没有内存移动和内存拷贝每个元素就是个节点,删除插入时只是修改指针,iterator不失效it...

2019-06-28 15:33:00 124

转载 BitMap

c++实现的BitMap参考:https://blog.csdn.net/kl1106/article/details/79478787#include<bits/stdc++.h>using namespace std;/** BitMap 用于判断上百亿数中,哪个数重复出现 用每一位做标志位*/class BitM...

2019-06-28 15:30:00 75

转载 python yield 实现斐波那契数列

def FB(n): a,b=0,1 while n>0: yield b a,b=b,a+b n-=1def FB2(n): return list(FB(n))转载于:https://www.cnblogs.com/zhibin123/p/11099859.html...

2019-06-27 21:51:00 165

转载 mysql

1、打开日志:/etc/my.cnf文件,在[mysqld]下添加重启服务on表示打开。2、查看二进制文件信息:转载于:https://www.cnblogs.com/zhibin123/p/11032319.html...

2019-06-16 17:52:00 88

转载 毛概复习资料spider

为了复习,把毛概题库趴下来。github:https://github.com/xzb123/-spider# encoding = 'utf-8'import requests,re,osfrom bs4 import BeautifulSoup#name 表示文件名字#url 表示题目路径#将这个路径的题目保存为name文件def save_h...

2019-06-13 23:09:00 1628

转载 pwnable - shollshock

step by step漏洞连接:https://www.freebuf.com/articles/system/45390.html检测到漏洞换一下命令。转载于:https://www.cnblogs.com/zhibin123/p/10904284.html...

2019-05-22 10:19:00 63

转载 onvif

https://www.cnblogs.com/big-devil/p/7625752.html转载于:https://www.cnblogs.com/zhibin123/p/10901669.html

2019-05-21 18:48:00 65

转载 pwnable - mistake

step by step提示与运算符优先级有关#include <stdio.h>#include <fcntl.h>#define PW_LEN 10#define XORKEY 1void xor(char* s, int len){ int i; for(i=0; i<len; i++){...

2019-05-20 17:57:00 107

转载 pwnable - leg

step by stepleg.c:#include <stdio.h>#include <fcntl.h>int key1(){ asm("mov r3, pc\n");}int key2(){ asm( "push {r6}\n" "add r6, pc, $1\n"...

2019-05-20 17:31:00 138

转载 pwnable - input

step by stephttps://pwnable.kr/play.php连接上,查看文件input.c内容:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/socket.h>#include &lt...

2019-05-20 14:49:00 186

转载 uva 11971

#include<bits/stdc++.h>using namespace std;typedef long long ull;ull gcd(ull a,ull b){ if(b == 0) return a; return gcd(b,a%b);}int main(){ ull t,n,k,...

2019-05-17 17:50:00 145

转载 uva 11582

#include<bits/stdc++.h>typedef unsigned long long ull;using namespace std;ull kmod(ull x,ull n,ull mod){ ull res = 1; if(x == 1 || n == 0) return 1; whil...

2019-05-15 14:37:00 54

转载 bof

题目给出了一个可执行文件和一个.c文件打开.c可以看到源程序:#include <stdio.h>#include <string.h>#include <stdlib.h>void func(int key){ char overflowme[32]; printf("overflow me : ");...

2019-04-15 11:55:00 143

转载 ctf Wiener tricky

这题题目是wienerTricky,这是维纳滤波??没学过,,懵x给了publickey,于是想先找出n,e然后求出d然后,真是为难我的小电脑了,yafu拆解,一开始几分钟,然后,20分钟,然后2个半小时,这些我都让他跑完了!!然后给我显示20小时。。。断了yafu老老实实看那个代码https://github.com/pablocelay...

2019-03-27 18:19:00 233

转载 分解大素数

找到了yafu,git下来,地址:https://github.com/DarkenCode/yafu这个下下来的,一直用不了。。怎么查也没有对yafu的commandnotfound换windows装了yafu,好用哎。地址:https://sourceforge.net/projects/yafu/使用:将N成功分解:补充:m.txt中是10进制数,非十进制...

2019-03-27 10:42:00 1337

转载 openssl杂记

对于一个给了公钥,给了密文的问题。公钥是pem格式用python解出base64,然后用16进制表示,可以看出来最后是10001,不过不知道为啥长度不是162,和参考的博客不一样。用这个命令 openssl rsa -pubin -text -modulus -in warmup -in pubkey.pem解出然后该解n了,那个网站进不去。参考:h...

2019-03-24 21:53:00 71

转载 python 杂记

s.rjust(3,'0') 将s设置为右对齐左端补0长度为3的str,若s本身长度大于3,返回s进制转换:其他进制转10进制int('0xf',16) = 15int()可以实现转到10进制hex()转到16进制bin()转到二进制oct()转到八进制转载于:https://www.cnblogs.com/zhibin123/p/1059...

2019-03-24 20:31:00 56

转载 scp

scp使用方法1、获取远程服务器上的文件scp -P 2222 root@www.vpser.net:/root/lnmp0.4.tar.gz /home/lnmp0.4.tar.gz上端口大写P 为参数,2222 表示更改SSH端口后的端口,如果没有更改SSH端口可以不用添加该参数。 root@www.vpser.net 表示使用root用户登录远程服务器www.v...

2019-03-24 20:02:00 434

转载 服务器cento os 出小问题了~

就想找回密码,然后服务器都进不去了。。骗人的博客。。。最后是百度经验成功的!??S1:  重启,嘿嘿嘿,然后打开console,找时机按esc,按早了会进不去,按晚了就进不了GRUB界面。然后选第一个,按e,进去后,到linux16那一行最后加上,注意一般是折行,加上init = /bin/shctrl + x进入单用户模式输入mount...

2019-03-24 19:32:00 86

转载 RSA 含两道oj 上ctf题目

  蓝桥杯一个填空题是rsa,python也没跑出来,回来又学了学rsa这个讲的很清楚,证明啥的都很清晰,(证明中,m与n不互质时,ed两次带入,似乎没必要。)链接:https://blog.csdn.net/u014044812/article/details/80866759其中附加的辗转相除法,手算ax+by=1这种式子也会了。举个百度的例子:已知不定方程...

2019-03-24 15:57:00 137

转载 mysql 使用

好久没用,正好实验课写报告,回顾一下。环境:windows路径:mysql/bin在一个cmd中输入mysqld --console,打开mysql服务,然后mysql开启。补充:1.Windows下启动服务mysqld --console  或  net start mysql  关闭服务mysqladmin -uroo...

2019-03-20 20:41:00 164

转载 最小生成树

一、Prim思路:先选一个节点加入树中,然后不断往这个树增加权值最小的边及其节点,直到形成生成树。其中,每次找一个节点在这个树内,另一个节点在这个树外的边,在这种边中找权值最小的加入生成树。最后每个节点都加入树后,形成的是最小生成树。这里面要用到一个lowcost数组,用来记录从树到这个节点i的最短权值。#include<bits/stdc++.h&gt...

2019-03-13 21:59:00 93

转载 hdu 2015

两次错1、被零除;忽略了模会出现02、输出有误,行末没有空格,在第一次之后,每次输出数之前输出空格。#include<bits/stdc++.h>using namespace std;int isSU(int n){ if(n < 2) return 0; if(n == 2) ret...

2019-03-07 16:30:00 120

转载 hdu 2012

主要记住晒素数的模板#include<bits/stdc++.h>using namespace std;int isSU(int n){ if(n < 2) return 0; if(n == 2) return 1; if(n%2 == 0) return 0;...

2019-03-07 16:10:00 58

转载 hdu 2011

打表做的,需要注意的是打表时,没有用下标0,从1开始#include<bits/stdc++.h>using namespace std;int main(){ float a[1002]={0,1},sum[1002]={0,1}; for(int i = 2; i < 1001;i++){ a[i] = ...

2019-03-07 15:59:00 60

转载 hdu 2009

水#include<bits/stdc++.h>using namespace std;int main(){ int n,t; float m,ans = 0; while(scanf("%f %d",&m,&n)!=EOF){ ans = 0; while(n>...

2019-03-07 15:41:00 100

转载 hdu 2006

注意:多次循环初始值的变化#include<bits/stdc++.h>using namespace std;int main(){// int a[1000005]; int n,t; long long ans = 1; while(scanf("%d",&n)!=EOF){ an...

2019-03-07 15:32:00 148

转载 hdu 2007

#include<bits/stdc++.h>using namespace std;int main(){ int m,n,s1 = 0,s2 = 0; while(scanf("%d %d",&m,&n)!=EOF){ s1 = s2 = 0; int mm; ...

2019-03-07 15:27:00 156

转载 hdu 2025

这题一开始想错了,以为是Z z最大,不分大小写,然后wa了后来知道了是直接比较字符的ascii码大小,最大值初值是‘\0’和ss[0]都可以先过一遍找到最大值,第二遍输出,是最大值附加输出#include<bits/stdc++.h>using namespace std;int main(){ char ss[102]; ...

2019-03-07 15:13:00 106

转载 hdu 2099

#include<bits/stdc++.h>using namespace std;int main(){ int a,b; while(cin >> a >> b){ if(a == 0 && b == 0){ break; }...

2019-03-07 14:56:00 145

转载 hdu 4548 美素数

美素数#include<bits/stdc++.h>using namespace std;const int maxn = 1000000;int ans[maxn] = {0,0,1};int sumdigit(int val){ int sum = 0; while(val){ sum+=val%10;...

2019-03-07 09:59:00 119

转载 hdu2041 超级楼梯

初始只有1个2个3个台阶时可以直接得出;到达最后一个台阶有两种方法,一个台阶到达,2个台阶到达,即f[n] = f[n - 1] + f[n - 2]。打表做。#include<bits/stdc++.h>using namespace std;const int maxn = 41;long long int f[maxn];void se...

2019-03-07 09:33:00 71

转载 ccf 小明回家

试题编号:201812-2试题名称:小明放学时间限制:1.0s内存限制:512.0MB问题描述:题目背景  汉东省政法大学附属中学所在的光明区最近实施了名为“智慧光明”的智慧城市项目。具体到交通领域,通过“智慧光明”终端,可以看到光明区所有红绿灯此时此刻的状态。小明的学校也安装了“智慧光明”终端,小明...

2019-03-05 23:12:00 207

转载 hdu 5495

这算是个模板,计算两组1~n的数 循环个数离散数学中的置换群应用,答案就是找出所有循环的个数(循环长度必须大于1),最后用n-sum(sum为循环个数),每个循环必有一个与其他不同,每个循环牺牲一个元素。就是LCS。#include<iostream>#include<cstdio>using namespace std;int main(...

2019-03-05 22:09:00 119

转载 魔术师的猜牌术

魔术师再次表演,他将红桃和黑桃全部迭在一起,牌面朝下放在手中,对观众说:最上面一张是黑桃A,翻开后放在桌上。以后,从上至下每数两张全依次放在最底下,第三张给观众看,便是黑桃2,放在桌上后再数两张依次放在最底下,第三张给观众看,是黑桃3。如此下去,观众看到放在桌子上牌的顺序是:黑桃 A 2 3 4 5 6 7 8 9 10 J QK红桃 A 2 3 4 5 6 7 8 9 10 J QK问...

2019-03-04 18:17:00 123

转载 shell lab

实现几个函数,使得该shell能处理前后台运行程序、能够处理ctrl+z、ctrl+c等信号。实现这几个函数:eval: Main routine that parses and interprets the command line. [70 lines]builtin cmd: Recognizes and interprets the built-in comm...

2019-03-02 00:03:00 1500

转载 cache lab

参考链接先挂上,再补读书中https://zhuanlan.zhihu.com/p/33846811PartA这相当于一个模拟题目,读入文件后分析是否hit,miss,是否需要eviction。开始需要进行分析参数,这里使用了getopt函数。    1#include"cachelab.h" 2#include<getopt.h&gt...

2019-02-27 22:08:00 230

空空如也

空空如也

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

TA关注的人

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