摘要: 1 t1=[x for x in range(5)] 2 t2=[x for x in range(5,10)] 3 4 #way1:通过方法extend(),直接修改列表,无返回值 5 # t1.extend(t2) 6 # print(t1) 7 # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] 8 9 #way2:通过列表切片,可在列表任意位置插入 10 # t2[:0]=t 阅读全文
posted @ 2019-08-28 20:59 DirWangK 阅读(177) 评论(0) 推荐(0) 编辑
摘要: docker image prune -a -f 删除none镜像 如一个正在运行的ubuntu容器ID为39bc60e016a7,想要进入ubuntu操作,只需输入一下命令: docker exec -it 39 /bin/bash 将容器保存为一个新的镜像docker commit -m '注释 阅读全文
posted @ 2019-08-27 22:39 DirWangK 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1.re1 DUTCTF IDA shift+F12 查看字符串 DUTCTF{We1c0met0DUTCTF} 2.game ZSCTF zsctf{T9is_tOpic_1s_v5ry_int7resting_b6t_others_are_n0t} 3.Hello, CTF Pediy CTF 阅读全文
posted @ 2019-08-27 22:00 DirWangK 阅读(1172) 评论(0) 推荐(0) 编辑
摘要: 运行程序 flag显示乱码 IDA打开查看程序逻辑 1 unsigned int __fastcall sub_401000(int a1, char *a2) 2 { 3 int v2; // esi 4 char *v3; // eax 5 unsigned int v4; // ecx 6 u 阅读全文
posted @ 2019-08-27 20:45 DirWangK 阅读(1053) 评论(0) 推荐(0) 编辑
摘要: 迷宫题 1 bool __fastcall sub_400650(_DWORD *a1) 2 { 3 int v1; // eax 4 5 v1 = (*a1)--; 6 return v1 > 0; 7 } 1 bool __fastcall sub_400670(_DWORD *a1) 2 { 阅读全文
posted @ 2019-08-27 19:58 DirWangK 阅读(873) 评论(0) 推荐(0) 编辑
摘要: 原地址:https://github.com/guanchao/elfParser 作者是用python2写的,现在给出我修改后的python3版本。(测试发现有bug,以后自己写个,0.0) 作者是用python2写的,现在给出我修改后的python3版本。(测试发现有bug,以后自己写个,0.0 阅读全文
posted @ 2019-08-07 18:03 DirWangK 阅读(2368) 评论(0) 推荐(0) 编辑
摘要: 问题代码: python2下是不报错的,因为python2内部的表示是unicode编码,因此,在做编码转换时,通常需要以unicode作为中间编码, 即先将其他编码的字符串解码(decode)成unicode (str-->decode()-->bytes),再从unicode编码(encode) 阅读全文
posted @ 2019-08-07 17:35 DirWangK 阅读(7507) 评论(0) 推荐(0) 编辑
摘要: ExecutorService、Callable、Future实现有返回结果的线程返回结果的线程是在JDK1.5中引入的新特征,有了这种特征就不需要再为了得到返回值而大费周折了。而且自己实现了也可能漏洞百出。可返回值的任务必须实现Callable接口。类似的,无返回值的任务必须实现Runnable接 阅读全文
posted @ 2019-08-02 14:15 DirWangK 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1.sleep() 2.join() 3.等待多线程完成的CountDownLatch 4.同步屏障CyclicBarrier 阅读全文
posted @ 2019-08-02 14:15 DirWangK 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 原文链接https://www.cnblogs.com/yanquebbuyan/p/9966487.html JavaFX—Application 1.Application是JavaFX程序的入口,任何javafx应用程序程序都要继承该类并重写start()方法 2.通过main()执行Appl 阅读全文
posted @ 2019-07-29 18:15 DirWangK 阅读(2050) 评论(0) 推荐(0) 编辑
摘要: idea默认情况下是不会将src\main\java\目录下的配置文件(.xml)和资源文件(.properties或.bpmn)复制到target目录下。 解决方法如下: 方法1、当缺少.xml文件时可以在pom文件中添加如下代码 此处代码是把src/main/java目录下所有xml文件都包含进 阅读全文
posted @ 2019-07-29 18:10 DirWangK 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 快捷键Ctrl+r 填入^\s*\n,勾选Regex,Replace all 阅读全文
posted @ 2019-07-29 14:52 DirWangK 阅读(1653) 评论(0) 推荐(0) 编辑
摘要: 文件名中出现了中文或非法字符 阅读全文
posted @ 2019-07-29 10:56 DirWangK 阅读(4139) 评论(0) 推荐(0) 编辑
摘要: Running at : nc pwnable.kr 9000 IDA查看 查看栈, 0x2c+8 =0x34=52,来到arg_0的存储空间 exp: 阅读全文
posted @ 2019-07-25 09:34 DirWangK 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 下载小飞机 https://github.com/shadowsocksr-backup 寻找ssr https://github.com/Alvin9999/new-pac/wiki/ss%E5%85%8D%E8%B4%B9%E8%B4%A6%E5%8F%B7 https://www.younee 阅读全文
posted @ 2019-07-25 09:21 DirWangK 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 在学习pwn时找到了http://pwnable.kr这个网站,很多题目通过ssh连接, ssh otp@pwnable.kr -p2222 (pw:guest) 连接脚本: pwn_ssh=ssh(host='pwnable.kr',user='otp',password='guest',port 阅读全文
posted @ 2019-07-25 08:59 DirWangK 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 参数构造20位,check_password函数内用int读char,即分成5个数 字符串以‘\x00'结尾,所以用'\x01'来填充, col@prowl:~$ ./col $(python -c "print '\x01' * 16 + '\xE8\x05\xD9\x1D'")daddy! I 阅读全文
posted @ 2019-07-23 17:45 DirWangK 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 使用ssh fd@pwnable.kr -p2222连接输入密码guest 关注read()函数 函数定义:ssize_t read(int fd, void * buf, size_t count); 函数说明:read()会把参数fd所指的文件传送count 个字节到buf 指针所指的内存中。 阅读全文
posted @ 2019-07-23 16:43 DirWangK 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 上次参加2019看雪CTF 晋级赛Q2卡在了这道题上,虽然逆出算法,但是方程不会解,哈哈哈哈,果然数学知识很重要呀,现在记录一下。 首先根据关键信息,根据错误提示字符串定位到这里: 到这里思路已经很明确了,16位输入,分成两部分进行异或操作,验证x^2-7*y^2=8 限定条件为 0x1000000 阅读全文
posted @ 2019-07-22 19:55 DirWangK 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 1、获取当前类所在的“项目名路径” String rootPath = System.getProperty("user.dir"); 2、获取编译文件“jar包路径”(反射) System.out.println(类名.class.getClassLoader().getResource("文件名 阅读全文
posted @ 2019-07-21 17:14 DirWangK 阅读(463) 评论(0) 推荐(0) 编辑