avatar
文章
324
标签
30
分类
0

Home
Archives
Tags
Categories
List
  • Music
  • Movie
Link
About
The Blog of Monoceros406
搜索
Home
Archives
Tags
Categories
List
  • Music
  • Movie
Link
About

The Blog of Monoceros406

Violent_Python笔记
发表于2023-10-15|Python
Violent Python笔记本笔记为Python2代码。 入门抓取banner12345import socketsocket.setdefaulttimeout(2)s=socket.socket()s.connet(("192.168.95.148",21))ans=s.recv(1024)#1024B数据 UNIX口令破解机12import cryptcrypt.crypt("egg","HX") zip口令破解机123456import zipfilezFile=zipfile.ZipFile("*.zip")try: zFile.extractall(pwd="...")except Exception,e: print e 多线程12345678910from threading import Threaddef extractFile(zFile,password): #...def main(): passFile=open(' ...
Python爬虫笔记
发表于2023-10-15|Python
Python爬虫笔记urllibGET请求1234567import urllib.requesturl='https://...'response=urllib.request.urlopen(url=url)response.status #返回请求码 200response.getheaders() #返回响应头信息 [('Connection','close'),('Content-Length','48955'),('Server','nginx'),...]response.read().decode('utf-8') #返回HTML代码 POST请求123456import urllib.requestimport urllib.parseurl='...'data=bytes(urllib.parse.urlencode({'hello':'py ...
Python-OpenCV
发表于2023-10-15|Python
Python-OpenCV安装1pip install opencv-contrib-python 基本操作读取+显示图像123456789101112131415161718192021import cv2image=cv2.imread('*.jpg',cv2.IMREAD_UNCHANGED)""" image=cv2.imread(filename,flags) filename 文件名 flags 默认1为彩色 0为灰度图像 cv2.IMREAD_UNCHANGED 保持原格式 可选"""cv2.imshow("flower",image)""" cv2.imshow(winname,mat) winname 窗口名称 mat 图像"""cv2.waitKey()""" retval=cv2.wait ...
Python-z3
发表于2023-10-15|Python
Python-z3快速上手安装1pip install z3_solver 使用1from z3 import * 整形1234567891011n=Int('n')a,s,d=Ints('a s d')x=Solver()x.add(a-d==18)x.add(a+s==12)x.add(s-d==20)#...check=x.check()print(check)#sat有解 unsat无解model=x.model()print(model)#输出解 有理数123456789m=Real(m)x,y=Reals('x y')s=Solver()s.add(x**2+y**2==3)s.add(x**3==2)check=s.check()print(check)model=s.model()print(model) 二进制位运算12345678910m=BitVec('m',8)#8bit=1Bytex,y,z=BitVecs('x y z',8)s=Solver()s.a ...
Python-segno
发表于2023-10-15|Python
Python-segno安装12pip install segnopip install qrcode-artistic 基本使用123456789101112import segnoqr_code_message='...'qr=segno.make(qr_code_message)qr.save('*.png',scale=10)""" 可选参数: border 边框大小 dark 深色部分颜色 light 浅色部分颜色 finder_dark finder部分颜色"""qr.save('*.png',dark='red',light='#562396',scale=10,border=10,finder_dark='yellow') 背景图像上创建12qrcode=segno.make('...',error= ...
Python-pyenv
发表于2023-10-15|Python
Python-pyenv这玩意巨难使,建议不要尝试 安装从Github上下载源码新建系统环境变量:PYENV PYENV_ROOT PYENV_HOME 均为.../pyenv-win添加用户环境变量:.../pyenv-win/shims和 .../pyenv-win/bin打开pyenv-win\.versions-cache.xml 把https://www.python.org/ftp/python替换为https://registry.npmmirror.com/-/binary/python打开pyenv-win\libexec\libs\pyenv-install-lib.vbs 替换操作同上 命令123456789101112131415161718#查看pyenv版本,测试安装成功:pyenv --version#查看所有可安装的版本:pyenv install --list#列出已安装的所有版本:pyenv versions#安装特定版本:pyenv install 3.7.10#卸载特定版本:pyenv uninstall 3.7.10#创建shims,每次更新、 ...
Python-Tkinter
发表于2023-10-15|GUI开发
Python-Tkinter12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788from tkinter import *from tkinter.ttk import *win=Tk()win2=Toplevel() #弹出顶层窗口win.mainloop()win.title("...")#窗口标题win.geometry("300x300+0+0")#窗口大小300x300 左上角(0,0)win.geometry("300x300-0-0")#同理右下角win.configure(bg="yellow"或"#a7ea90")#窗口背景颜色win.maxsize(int,int)#窗口最大尺寸" ...
Ren'Py笔记
发表于2023-10-15|Python
Ren’Py笔记1234script.rpyoptions.rpygui.rpyscreens.rpy 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162label start: ... returnmenu: "...": jump game "...": jump booklabel game: ...label book: ...default book=True$ book=Trueif book: ...else: ...say: "角色" "正在说的话" "旁白的话" #"用\" define s=Character('名字',color="#C8FFC8 ...
Python笔记
发表于2023-10-15|Python
Python笔记123456789#https://www.runoob.com/python3/python3-os-file-methods.html#C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages# 命令行# pyinstaller -f -w *.ico *.py #生成.exe,加上-w表示去掉控制台# pyinstaller --paths 第三方模块路径 -F -w --icon=*.ico *.py# 资源要放在.exe目录下#生成.whl:python *.py bdist_wheel 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021 ...
Python-Pandas
发表于2023-10-15|Python
Python-pandas1import pandas 文件读写通用12folder_name=os.path.dirname(__file__)file_name=os.path.join(folder_name,'*.txt') 读写.csv文件12345678910111213141516171819df=pandas.read_csv(file_name,encoding='GBK')""" read_csv常用参数: index_col:设置索引,如: index_col=0 第1列 index_col='orderDate' index_col=[0,1] index_col=['orderDate','itemNo'] sep或delimiter:二选一 sep='\t' 设置分隔符 delimiter='\t ...
1…30313233
avatar
Monoceros406
Windows系统安全爱好者
文章
324
标签
30
分类
0
Follow Me
公告
哪里排版出锅了请告诉我QwQ QQ:1295625063
最新文章
C++后端开发入门-FTP服务器与Libevent初探2025-06-01
C++后端开发入门-HTTP服务器编程2025-05-31
C++后端开发入门-服务器模型编程2025-05-31
C++后端开发入门-UDP与原始套接字编程2025-05-25
C++后端开发入门-TCP服务器编程2025-05-19
标签
漏洞复现 数学建模 编程语言 PWN 解题报告 Win内核安全 Web3 Web 恶意代码 沙盒逃逸 渗透测试 OpenSSL Win驱动开发 C++ 其他 Win系统调试 密码学 WinAPI AWD Python GUI开发 后端开发 算法 Misc 取证 IoT 前端开发 逆向工程 UEFI 移动安全
归档
  • 六月 20251
  • 五月 20259
  • 十二月 202413
  • 十一月 202412
  • 十月 202420
  • 九月 20243
  • 八月 20248
  • 七月 202413
网站资讯
文章数目 :
324
已运行时间 :
本站访客数 :
本站总访问量 :
最后更新时间 :
©2020 - 2025 By Monoceros406
框架 Hexo|主题 Butterfly