会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
20
下一页
2024年6月26日
AudioRelay连接不上,同wifi ping不通手机
摘要: 路由器设置mac与ip绑定 管理员权限执行 arp -s 手机IP 手机MAC ping 局域网段下不存在的IP
阅读全文
posted @ 2024-06-26 16:01 twfb
阅读(90)
评论(0)
推荐(0)
2024年4月28日
wsl2 bridged
摘要: 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
阅读(35)
评论(0)
推荐(0)
2024年2月9日
CTFHub 投稿提交 彩蛋 ECB
摘要: 缘起 最近做到做到这道题, flag[42:48] = aes_256_ecb_decode("c6e1d72b1102f9b96b20c1f00cc7a178d5b3f99193faaa60e53b45b9e644d782", key), 自己用Py没解出来... import binascii
阅读全文
posted @ 2024-02-09 02:11 twfb
阅读(63)
评论(0)
推荐(0)
2023年12月25日
CTFhub FastCGI协议
摘要: 原理: 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
阅读(87)
评论(0)
推荐(0)
2023年12月15日
WSL Windows 共享ext4文件
摘要: 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
阅读(72)
评论(0)
推荐(0)
2023年3月1日
Django filter regex
摘要: 正则表达式语法是使用中的数据库后端的语法。对于没有内置正则表达式支持的 SQLite 来说,这个功能是由(Python)用户定义的 REGEXP 函数提供的,因此正则表达式语法是 Python 的 re 模块的语法。 MySQL Regex 元字符| 行为 -|- ^|匹配搜索字符串开头处的位置 $
阅读全文
posted @ 2023-03-01 15:24 twfb
阅读(111)
评论(0)
推荐(0)
2022年8月24日
Django 按照字段数量去重排序
摘要: items = ( XModel.objects.all() .values(field_name) .annotate(Count(field_name)) .order_by('-{}__count'.format(field_name)) )
阅读全文
posted @ 2022-08-24 09:24 twfb
阅读(108)
评论(0)
推荐(0)
2022年7月28日
css calc 无效 单位 整数 0
摘要: 今天有群友发现calc(100% - 0)和calc(100% - 0px)的显示不一样, 疑惑的是在css中作为属性0=0px=0%, 为什么会显示不一样呢? 便去查了下, 发现中文区并没有记录原因, 所以在这里介绍下 the + or - operators specifically restr
阅读全文
posted @ 2022-07-28 11:02 twfb
阅读(142)
评论(0)
推荐(0)
2021年11月5日
正则 不匹配某个单词
摘要: 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
阅读(200)
评论(0)
推荐(0)
2021年10月15日
希赛 系统架构设计师教程 勘误
摘要: 位示图法。该方法是在外存上建立一张位示图(Bitmap),记录文件存储器的使用情况。每一位仅对应文件存储器上的一个物理块,取值0 和1 分别表示空闲和占用。文件存储器上的物理块依次编号为:0、1、2、...。假如系统中字长为32位,有4096个物理块,那么在位示图中的第1个字对应文件存储器上的0、1
阅读全文
posted @ 2021-10-15 11:56 twfb
阅读(57)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
20
下一页
公告