因为ubuntu22.04的RDP不支持声音转发,所以下载了ubuntu23.04.但官方的rocm二进制包最高只支持ubuntu22.04,不支持ubuntu 23.04,只能自己从源码编译虽然有网友告诉我可以用docker运行rocm。但是我已经研究了好几天,沉没成本太多,无奈只能继续硬着头皮研究,终于搞定了。记录下结果,可能有遗漏,顺序也可能不对,仅供参考。如果CMAKE有错误可以试试添加或者删除-DCMAKE_PREFIX_PATH="/opt/rocm/",毕竟为了避免冲突,rocm的库独立于系统主库了。
警告:本教程比较危险,请确认自己要做什么,再操作。出现问题,概不负责!!!! 遇到问题:error: reference to unresolved using declaration typedef uintptr_t __type_name_t; 遇到问题:error: no member named ‘int8_t’ in the global namespace
题目 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <?php error_reporting(0); if(isset($_GET['code']) && isset($_POST['pattern'])) { $pattern=$_POST['pattern']; …
1 2 3 sudo apt-get install libleptonica-dev libtesseract-dev sudo apt-get install tesseract-ocr-chi-sim python -m pip install video-ocr windows安装方法: 下载安装 https://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-w64-setup-5.3.3.20231005.exe 下载 1 2 3 4 5 wget …
1 python -m pip install ddddocr 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 from PIL import Image if not hasattr(Image, 'ANTIALIAS'): setattr(Image, 'ANTIALIAS', Image.LANCZOS) import ddddocr from …
1 2 3 4 5 6 7 8 9 10 11 12 configure terminal no access-list 100 access-list 100 permit ip any host 139.155.65.168 access-list 100 permit ip any host 1.14.109.79 access-list 100 permit ip any host 1.14.108.193 access-list 100 permit ip 10.30.17.0 0.0.0.255 10.30.17.0 0.0.0.255 access-list 100 deny …
今天尝试用AES-256-OFB加密一个flag结果输出的密文是43字节,不是128位(16字节)的倍数,代码如下: 1 2 3 4 5 import os from Crypto.Cipher import AES data=b'flag{a7ba7128-3917-4551-8260-b3499e9dd7b12}' aes = AES.new(os.urandom(32), AES.MODE_OFB, os.urandom(16)) aes.encrypt(data) 结果输出是一串 …
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/mman.h> char shellcode[800]; void vulnerable() { mprotect(0x404000,0x1000,PROT_READ | PROT_WRITE|PROT_EXEC); //第一个参数需要是内存段的起始地址,第二个参数需要对其,64位是0x1000 …