摘要: 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 阅读(688) 评论(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 阅读(18018) 评论(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 阅读(3268) 评论(0) 推荐(0)
摘要: 输出: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 阅读全文
posted @ 2019-08-29 17:17 DirWangK 阅读(306) 评论(0) 推荐(0)
摘要: b'aGVsbG8gd29ybGQ='b'hello world'hello world base64更改编码表: 标准base64编码:aGVsbG8gd29ybGQ=修改base64编码:iUdCjUS1yM9IjUY=hello world 阅读全文
posted @ 2019-08-29 17:07 DirWangK 阅读(1320) 评论(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 阅读(196) 评论(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 阅读(190) 评论(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 阅读(1216) 评论(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 阅读(1127) 评论(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 阅读(916) 评论(0) 推荐(0)
摘要: 原地址:https://github.com/guanchao/elfParser 作者是用python2写的,现在给出我修改后的python3版本。(测试发现有bug,以后自己写个,0.0) 作者是用python2写的,现在给出我修改后的python3版本。(测试发现有bug,以后自己写个,0.0 阅读全文
posted @ 2019-08-07 18:03 DirWangK 阅读(2479) 评论(0) 推荐(0)
摘要: 问题代码: python2下是不报错的,因为python2内部的表示是unicode编码,因此,在做编码转换时,通常需要以unicode作为中间编码, 即先将其他编码的字符串解码(decode)成unicode (str-->decode()-->bytes),再从unicode编码(encode) 阅读全文
posted @ 2019-08-07 17:35 DirWangK 阅读(7635) 评论(0) 推荐(0)
摘要: ExecutorService、Callable、Future实现有返回结果的线程返回结果的线程是在JDK1.5中引入的新特征,有了这种特征就不需要再为了得到返回值而大费周折了。而且自己实现了也可能漏洞百出。可返回值的任务必须实现Callable接口。类似的,无返回值的任务必须实现Runnable接 阅读全文
posted @ 2019-08-02 14:15 DirWangK 阅读(152) 评论(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 阅读(2480) 评论(0) 推荐(0)
摘要: idea默认情况下是不会将src\main\java\目录下的配置文件(.xml)和资源文件(.properties或.bpmn)复制到target目录下。 解决方法如下: 方法1、当缺少.xml文件时可以在pom文件中添加如下代码 此处代码是把src/main/java目录下所有xml文件都包含进 阅读全文
posted @ 2019-07-29 18:10 DirWangK 阅读(1082) 评论(0) 推荐(0)
摘要: 快捷键Ctrl+r 填入^\s*\n,勾选Regex,Replace all 阅读全文
posted @ 2019-07-29 14:52 DirWangK 阅读(1813) 评论(0) 推荐(0)
摘要: 文件名中出现了中文或非法字符 阅读全文
posted @ 2019-07-29 10:56 DirWangK 阅读(4238) 评论(0) 推荐(0)
摘要: Running at : nc pwnable.kr 9000 IDA查看 查看栈, 0x2c+8 =0x34=52,来到arg_0的存储空间 exp: 阅读全文
posted @ 2019-07-25 09:34 DirWangK 阅读(361) 评论(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 阅读(348) 评论(0) 推荐(0)