摘要: #include #include int main() { int score; while(scanf("%d",&score)!=EOF) { if(score100) printf("Score is error!\n"); if(score>=90&&score=80&&score=70&&score... 阅读全文
posted @ 2019-03-31 15:50 pipiforever 阅读(314) 评论(0) 推荐(0) 编辑
摘要: #include #include #define PI 3.1415927 int main() { double r,v; while(scanf("%lf",&r)!=EOF) { v = PI*r*r*r*4/3; printf("%.3lf\n",v); } return 0; } 阅读全文
posted @ 2019-03-31 15:47 pipiforever 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #include #include int main() { double a,b; while(scanf("%lf",&a)!=EOF) { if(a>=0.00) printf("%.2lf\n",a); else printf("%.2lf\n",-a); } r... 阅读全文
posted @ 2019-03-31 15:47 pipiforever 阅读(218) 评论(0) 推荐(0) 编辑
摘要: #include #include #include int main() { double x1,x2,y1,y2,dis; while(scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2)!=EOF) { dis = sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)); prin... 阅读全文
posted @ 2019-03-31 15:45 pipiforever 阅读(300) 评论(0) 推荐(0) 编辑
摘要: #include #include int main() { char a,b,c,t; while(scanf("%c%c%c",&a,&b,&c)!=EOF) { getchar();//一定要有这一行,因为scanf在接收字符串时,会把换行键一起接收,这里需要用getchar来吸收换行键。 if(a>b) ... 阅读全文
posted @ 2019-03-31 15:43 pipiforever 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 链接:http://ctf5.shiyanbar.com/web/baocuo/index.php 这题有坑点POST提交username=&password=右键源码:$sql="select * from users where username='$username' and password 阅读全文
posted @ 2017-12-26 14:29 pipiforever 阅读(3359) 评论(2) 推荐(0) 编辑
摘要: 链接:http://ctf5.shiyanbar.com/web/wonderkun/index.php 1.首先先设定burpsuite的timeout为4秒 2.构造语句判断flag的长度 之后还要注意把线程设置为1,以及去掉URL-encode勾选 接下来就是开始爆破 这里面status 为空 阅读全文
posted @ 2017-11-20 21:27 pipiforever 阅读(878) 评论(0) 推荐(0) 编辑
摘要: 链接:http://web.jarvisoj.com:32780/index.php?id=1 抓包,发现提示index.phps 访问: 接下来的思路就是构造payload,id可以用弱类型来解决 id=0b eregi函数可以用%00截断 b=%0011111 比较麻烦的是a的构造,看了大神的博 阅读全文
posted @ 2017-11-10 15:55 pipiforever 阅读(1356) 评论(0) 推荐(0) 编辑
摘要: 简单的sql注入3 链接:http://ctf5.shiyanbar.com/web/index_3.php 输入1,页面显示hello,输入1',页面报错 尝试一下用sqlmap跑,没想到就跑出来了 O(∩_∩)O哈哈~ sqlmap.py -u http://ctf5.shiyanbar.com 阅读全文
posted @ 2017-10-31 17:33 pipiforever 阅读(12459) 评论(3) 推荐(0) 编辑
摘要: 解压文件,发现只有一个Word文档,打开文档发现只有一张图片 首先联想到图片隐写,试了binwalk,Stegsolve,之后没有发现什么线索,后来查资料才发现Word也是压缩包格式,修改为Word.zip 打开之后 在media文件夹里面有一张图片 这个题目真的有点坑 阅读全文
posted @ 2017-10-29 20:59 pipiforever 阅读(317) 评论(0) 推荐(0) 编辑