ICode9

精准搜索请尝试: 精确搜索
  • NII文件和nrrd文件的随意转换2022-02-20 15:31:20

    import os from glob import glob import numpy as np import vtk def readnrrd(filename): """Read image in nrrd format.""" reader = vtk.vtkNrrdReader() reader.SetFileName(filename) reader.Update() info = rea

  • 【短时能量】基于matlab语音信号短时能量【含Matlab源码 1719期】2022-02-20 10:01:23

    一、获取代码方式 获取代码方式1: 完整代码已上传我的资源:【短时能量】基于matlab语音信号短时能量【含Matlab源码 1719期】 获取代码方式2: 通过订阅紫极神光博客付费专栏,凭支付凭证,私信博主,可获得此代码。 备注: 订阅紫极神光博客付费专栏,可免费获得1份代码(有效期为订阅日起,三

  • 2021/12/3文件上传-WAF绕过和修复2022-02-19 16:34:52

    配置虚拟机 less-2 我这还没操作呢就被拦截了o(*≧▽≦)ツ┏━┓,而且我还没启动safedog 疑惑了不知道关哪里 换个关卡把 less3 上传参数名解析:明确哪些东西能修改? Content-Disposition:响应头指示回复的内容该以何种形式展示(表单-一般可更改) 表单名称(这里一般不能改,和前端代

  • CI框架3.x 之隐藏index.php2022-02-17 09:04:36

    1、配置.htaccess <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] </IfModule> 2、将.htaccess文件上传到项目根目

  • PowerShell复制目录以及目录下文件2022-02-17 09:00:15

    列出目录中所有文件并导入文件 ls | Format-Table name > C:\1234.txt 循环创建目录并拷贝目录下指定文件 `foreach ($FileName in get-content c:\1234.txt) { New-Item -Path C:\Test\ -Name $FileName -Type Directory -force copy-item "c:\Jobs_test$FileName\welcome.png" -

  • vue下载文件重命名文件名称2022-02-16 16:32:00

    const fileSetNameDown = (res,name) =>{ let link = document.createElement("a"); let fileName = decodeURIComponent( res.headers["content-disposition"].split("=")[1] ); let ext = fileName.substring(fileN

  • 【可视化】地震数据体Segy文件inline、xline道数据计算获取2022-02-15 14:04:16

    ''' { "CDPMax": 792, "CDPMin": 58, "LineMax": 796, "LineMin": 510, "bps": 4, "dsf": 1, "dsfDesc": "IBM Fl

  • log4j2.xml2022-02-10 17:32:22

    <?xml version="1.0" encoding="UTF-8"?><configuration status="off"> <Properties> <!-- 日志存储路径 --> <Property name="baseDir">./logs</Property> </Properties> <

  • IE兼容 下载2022-02-10 13:59:08

    IE不支持a标签的download 可以使用IE自带的msSaveBlob方法 const fileNameEncode = res.headers["content-disposition"].split("filename=")[1]; // 文件名 解码 const fileName = decodeURI(fileNameEncode); console.log("fileName", fileName); let blob = ne

  • vue实现文件预览2022-02-10 11:59:05

    1、可以预览图片、文档、视频等 2、(注意)视频需要安装视频预览插件:cnpm install --save video.js 3、组件代码 <template> <div> <!--图片--> <div v-if="imgShow"> <img :src="downloadUrl" /> </div> <!--doc,excel-->

  • ctf-第五周 | Easy upload2022-02-10 10:32:47

    知识点: 要成功上传才能得到提示。filename是文件格式Content-type 是文件类型要求文件内容里有什么内容,可以使用burp里的repeater直接进行增删改查。

  • python PDF转图片,World转PDF2022-02-09 18:36:02

          1 import tkinter 2 from tkinter import filedialog 3 from tkinter import messagebox 4 import fitz,os 5 from win32com.client import constants, gencache 6 class dark: 7 def __init__(self): 8 self.init_window = tkinter.Tk() 9

  • MVC上传文件功能2022-02-09 09:02:26

    MVC上传文件功能 在提交数据的Controller控制器里: public ActionResult SavePCNRequest(提交的Model类型 model, HttpPostedFileBase Attachment1) { //创建上传的路径 string PathValue = Server.MapPath("~/UploadFiles/PCN/" + model.Requ

  • 通过图文识别文字,使用openpyxl将识别的文字存放到excel2022-02-08 11:59:23

    通过摄像头拍照后识别文字,并将有用的信息存放到excel # -*- coding = utf-8 -*- # @Software : PyCharm import cv2 import requests import base64 import json import re import openpyxl,random import os import win32api,win32con import glob if os.path.lexists('

  • linux shell文件截取前几行,后几行,中间几行命令2022-02-08 09:02:22

        如果你只想看文件的前100行,可以使用head命令,如     head -100 filename     如果你想查看文件的后100行,可以使用tail命令,如:     tail -100 filename 或 tail -n 100 filename     查看文件中间一段,你可以使用sed命令,如:     sed -n ‘100,200p’ f

  • pandas读取加密excel,并保存加密格式2022-02-07 16:03:04

    最近在处理些加密文件,并且需要加密保存,确保数据安全。对于读取习惯csv的我来说很头疼,外加发现网上信息比较散我整理了一下xlsx的加密读取和保存 需安装pywin32 !pip install pywin32 import win32com.client as win32 读取: def df_from_pswxlsx(filename, password, gl_exce

  • CVE-2017-5223-PHPMailer任意文件读取漏洞复现2022-02-06 17:33:30

    CVE-2017-5223-PHPMailer任意文件读取漏洞复现 影响版本: PHPMailer <= 5.2.21 漏洞原理 文件读取的函数主要是 encodeFile函数。(贴关键代码) protected function encodeFile($path, $encoding = 'base64') { ...... $file_buffer = file_get_content

  • 使用 Spring Boot 应用程序上传和下载文件2022-02-04 09:58:39

    Upload and download the files using Spring Boot Application - PixelTricehttps://www.pixeltrice.com/upload-and-download-the-files-using-spring-boot-application/ 如果您在互联网上,那么您肯定会上传或下载一些文件,如电影、歌曲或任何文件,如 pdf、图像等。这些是任何应

  • vba获取文件夹下所有文件名2022-02-02 23:31:36

    原文链接 学习自杨洋老师《全民一起VBA》 1. 在VBA中,dir函数可以返回一个文件夹下一个文件的名字(包含后缀)。 示例代码: filename = Dir("F:userdataDesktop新建文件夹") dir后面的参数应该以反斜杠“”结尾,这样才能返回该文件夹下的文件名称。否则“新建文件夹”会被当成一个文件名

  • MySQL错误日志(Error Log)2022-02-02 13:30:19

    启动和设置错误日志 在 MySQL 数据库中,默认开启错误日志功能。一般情况下,错误日志存储在 MySQL 数据库的数据文件夹下,通常名称为 hostname.err。其中,hostname 表示 MySQL 服务器的主机名。 在 MySQL 配置文件中,错误日志所记录的信息可以通过 log-error 和 log-warnings 来定

  • Nginx-FastCGI-"Primary script unknown" while reading response header from upstream,2022-02-02 10:32:53

    在对nginx添加fastCGI的支持后,然后进行php页面验证,居然报错File not found,查看日志显示 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, 一开始以为是权限问题,先上配置 location ~ \.php$ { root /data/nginx/ht

  • TP5隐藏index.php2022-01-31 00:00:07

    tp5对URL简化,不做简化情况下我们访问的是localhost/index.php/index/index/index ,做简化后省去index.php。 我们需要找到public下面的.htaccess文件 apache: <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_

  • 解决Python中ZipFile解压文件名中文乱码的问题2022-01-30 15:30:29

    解决Python中ZipFile解压文件名中文乱码的问题 问题复现原因分析解决办法 问题复现 压缩包目录结构 里面有中文.zip ├── 中文文件.txt └── 中文文件夹 └── 中文文件.txt 解压代码 from zipfile import ZipFile with ZipFile(r'./里面有中文.zip') as zfp

  • 用CV2把png图片改成jpg2022-01-29 15:32:42

    path = "D:/Research/Python/Machine_Learning/practice_4_jpg" print(path) for filename in os.listdir(path): #文件夹里不止一张图片,所以要用for循环遍历所有的图片 if os.path.splitext(filename)[1] == '.png': #把path这个路径下所有的文件都读一遍,如果后缀名是png,

  • buuctf-[网鼎杯 2020 青龙组]AreUSerialz(小宇特详解)2022-01-28 23:03:21

    buuctf-[网鼎杯 2020 青龙组]AreUSerialz(小宇特详解) <?php include("flag.php"); highlight_file(__FILE__); class FileHandler { protected $op;//protected受保护的修饰符,被定义为受保护的类成员则可以被其自身以及其子类和父类访问 protected $filena

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有