摘要: Google机翻 def open(file,mode ='r',buffering = None,encoding = None,errors = None,newline = None,closefd = True):#known open case of open “”” 打开文件并返回一个流 阅读全文
posted @ 2019-08-30 18:52 DirWangK 阅读(379) 评论(0) 推荐(0)
摘要: 动态基址开启后,在动态调试是想要和ida静态分析中的地址对应还要进行一步计算,取消动态基址便可以剩下很多时间。 只要修改pe文件头中的Characteristics低位置1 Characteristics可以是下面一个或者多个值的和 pe修改的工具很多,我用的peid 阅读全文
posted @ 2019-08-30 17:02 DirWangK 阅读(684) 评论(0) 推荐(0)
摘要: 5.re-for-50-plz-50 tu-ctf-2016 流程很简单,异或比较 1 x=list('cbtcqLUBChERV[[Nh@_X^D]X_YPV[CJ') 2 y=0x37 3 z='' 4 for t in x: 5 z+=chr(ord(t)^y) 6 print(z) TUCT 阅读全文
posted @ 2019-08-29 21:48 DirWangK 阅读(365) 评论(0) 推荐(0)
摘要: 1.dmd-50 suctf-2016 md5后比较,在线解md5得到: md5(md5($pass)),所以将grape再进行MD5 b781cbb29054db12f88f08c6e161c199 2.Shuffle SECCON-CTF-2014 硬编码: SECCON{Welcome to 阅读全文
posted @ 2019-08-29 20:40 DirWangK 阅读(689) 评论(0) 推荐(0)
摘要: import binascii # bytes 与 int b=b'\x01\x02' num=int.from_bytes(b,'little') print('bytes转int:',num) b1=num.to_bytes(2,'little') print('int转bytes:',b1) 阅读全文
posted @ 2019-08-29 19:34 DirWangK 阅读(18026) 评论(1) 推荐(0)
摘要: print(int('0b1010',0))#二进制数print(int('0xa',0))#十六进制数print(int('0xa',16))print(int('a',16))print(int(0xa))print(int(10.0)) """ int(x=0) -> integer int( 阅读全文
posted @ 2019-08-29 17:39 DirWangK 阅读(3269) 评论(0) 推荐(0)
摘要: 输出: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 阅读全文
posted @ 2019-08-29 17:17 DirWangK 阅读(308) 评论(0) 推荐(0)
摘要: b'aGVsbG8gd29ybGQ='b'hello world'hello world base64更改编码表: 标准base64编码:aGVsbG8gd29ybGQ=修改base64编码:iUdCjUS1yM9IjUY=hello world 阅读全文
posted @ 2019-08-29 17:07 DirWangK 阅读(1323) 评论(0) 推荐(0)
摘要: 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 阅读(197) 评论(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 阅读(191) 评论(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 阅读(1218) 评论(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 阅读(1129) 评论(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 阅读(917) 评论(0) 推荐(0)
摘要: 原地址:https://github.com/guanchao/elfParser 作者是用python2写的,现在给出我修改后的python3版本。(测试发现有bug,以后自己写个,0.0) 作者是用python2写的,现在给出我修改后的python3版本。(测试发现有bug,以后自己写个,0.0 阅读全文
posted @ 2019-08-07 18:03 DirWangK 阅读(2486) 评论(0) 推荐(0)
摘要: 问题代码: python2下是不报错的,因为python2内部的表示是unicode编码,因此,在做编码转换时,通常需要以unicode作为中间编码, 即先将其他编码的字符串解码(decode)成unicode (str-->decode()-->bytes),再从unicode编码(encode) 阅读全文
posted @ 2019-08-07 17:35 DirWangK 阅读(7637) 评论(0) 推荐(0)
摘要: ExecutorService、Callable、Future实现有返回结果的线程返回结果的线程是在JDK1.5中引入的新特征,有了这种特征就不需要再为了得到返回值而大费周折了。而且自己实现了也可能漏洞百出。可返回值的任务必须实现Callable接口。类似的,无返回值的任务必须实现Runnable接 阅读全文
posted @ 2019-08-02 14:15 DirWangK 阅读(153) 评论(0) 推荐(0)
摘要: 1.sleep() 2.join() 3.等待多线程完成的CountDownLatch 4.同步屏障CyclicBarrier 阅读全文
posted @ 2019-08-02 14:15 DirWangK 阅读(132) 评论(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 阅读(2482) 评论(0) 推荐(0)
摘要: idea默认情况下是不会将src\main\java\目录下的配置文件(.xml)和资源文件(.properties或.bpmn)复制到target目录下。 解决方法如下: 方法1、当缺少.xml文件时可以在pom文件中添加如下代码 此处代码是把src/main/java目录下所有xml文件都包含进 阅读全文
posted @ 2019-07-29 18:10 DirWangK 阅读(1083) 评论(0) 推荐(0)
摘要: 快捷键Ctrl+r 填入^\s*\n,勾选Regex,Replace all 阅读全文
posted @ 2019-07-29 14:52 DirWangK 阅读(1814) 评论(0) 推荐(0)