摘要: hyper-v 添加 external, 名字为WIFI notepad %UserProfile%/.wslconfig [wsl2] networkingMode=bridged vmSwitch=WIFI ipv6=true WSL sudo vim /etc/resolv.conf # 编辑 阅读全文
posted @ 2024-04-28 17:05 twfb 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 缘起 最近做到做到这道题, flag[42:48] = aes_256_ecb_decode("c6e1d72b1102f9b96b20c1f00cc7a178d5b3f99193faaa60e53b45b9e644d782", key), 自己用Py没解出来... import binascii 阅读全文
posted @ 2024-02-09 02:11 twfb 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 原理: https://xz.aliyun.com/t/9544 代码, 参考自: https://github.com/tarunkant/Gopherus import urllib.parse import requests def main(): url = input("url: ").s 阅读全文
posted @ 2023-12-25 01:43 twfb 阅读(52) 评论(0) 推荐(0) 编辑
摘要: wsl.exe --shutdown mkfs -t ext4 /mnt/f/share.vhdx mkdir /mnt/share mount /mnt/f/share.vhdx /mnt/share df -h 阅读全文
posted @ 2023-12-15 13:52 twfb 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 正则表达式语法是使用中的数据库后端的语法。对于没有内置正则表达式支持的 SQLite 来说,这个功能是由(Python)用户定义的 REGEXP 函数提供的,因此正则表达式语法是 Python 的 re 模块的语法。 MySQL Regex 元字符| 行为 -|- ^|匹配搜索字符串开头处的位置 $ 阅读全文
posted @ 2023-03-01 15:24 twfb 阅读(70) 评论(0) 推荐(0) 编辑
摘要: items = ( XModel.objects.all() .values(field_name) .annotate(Count(field_name)) .order_by('-{}__count'.format(field_name)) ) 阅读全文
posted @ 2022-08-24 09:24 twfb 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 今天有群友发现calc(100% - 0)和calc(100% - 0px)的显示不一样, 疑惑的是在css中作为属性0=0px=0%, 为什么会显示不一样呢? 便去查了下, 发现中文区并没有记录原因, 所以在这里介绍下 the + or - operators specifically restr 阅读全文
posted @ 2022-07-28 11:02 twfb 阅读(112) 评论(0) 推荐(0) 编辑
摘要: import re skip_word = 'hede' stranger_char = '虩' content = '''hoho hihi haha hede''' print( '\n'.join(re.findall( '([^{}]*?)\n'.format(stranger_char), 阅读全文
posted @ 2021-11-05 14:04 twfb 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 位示图法。该方法是在外存上建立一张位示图(Bitmap),记录文件存储器的使用情况。每一位仅对应文件存储器上的一个物理块,取值0 和1 分别表示空闲和占用。文件存储器上的物理块依次编号为:0、1、2、...。假如系统中字长为32位,有4096个物理块,那么在位示图中的第1个字对应文件存储器上的0、1 阅读全文
posted @ 2021-10-15 11:56 twfb 阅读(52) 评论(0) 推荐(0) 编辑
摘要: import requests cookie_url = 'https://xui.ptlogin2.qq.com/cgi-bin/xlogin?s_url=https%3A%2F%2Fgraph.qq.com%2Foauth2.0%2Flogin_jump' """ appid: 71602760 阅读全文
posted @ 2021-10-15 08:56 twfb 阅读(1074) 评论(0) 推荐(0) 编辑