secret 2019 file

Visual Studio 2019设置类和接口注释

一、找到Visual Studio 2019安装目录 D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\ItemTemplates\CSharp\Code\2052 二、修改类模板文件 #region ......
注释 接口 Visual Studio 2019

./a.out: error while loading shared libraries: libgsl.so.25: cannot open shared object file: No such file or directory

001、问题: ./a.out: error while loading shared libraries: libgsl.so.25: cannot open shared object file: No such file or directory 002、解决方法 [root@pc1 test ......
shared file directory libraries loading

src/param.cpp:30:26: fatal error: gsl/gsl_blas.h: No such file or directory

001、问题:安装gemma软件报错 src/param.cpp:30:26: fatal error: gsl/gsl_blas.h: No such file or directory 002、解决方法, 安装gls a、官网下载 http://mirrors.ustc.edu.cn/gnu/g ......
directory gsl gsl_blas param fatal

ImportError: cannot import name 'write_connection_file' from 'jupyter_client'

ImportError: cannot import name 'write_connection_file' from 'jupyter_client' (/home/software/anaconda3/envs/mydlenv/lib/python3.8/site-packages/jupyt ......

洛谷P5444 [APIO2019] 奇怪装置 题解

奇怪装置 找到循环就很简单了。 很显然 \(y\) 是每 \(B\) 次一循环的,对于每个相邻的 \(y\) 循环 \(x\) 的值均相差 \(B+1(\bmod A)\)。 因此总的循环就是 \(B+1\) 对于 \(A\) 的循环乘上 \(B\)。 即 \(\frac{A}{\gcd(A,B+1 ......
题解 装置 P5444 5444 2019

[GWCTF 2019]我有一个数据库

原理 phpmyadmin4.8.1漏洞 php对目录不存在不敏感 解题过程 进入靶场,看到乱码的页面- -,原代码也没啥提示,只能扫目录看看了 最终扫到了phpmyadmin,进入可以看到版本信息 上网搜漏洞进行复现即可.... 这个漏洞之前做过,就是切割问号然后目录穿越 参考文章:https:/ ......
数据库 数据 GWCTF 2019

[NCTF2019]Fake XML cookbook

原理 XXE漏洞 解题过程 进入靶场看到了登录界面 万能注入没用,也没有sql提示,那应该不是sql注入 查看页面原代码,发现了登录框的发送源码 function doLogin(){ var username = $("#username").val(); var password = $("#p ......
cookbook NCTF 2019 Fake XML

smbclient: relocation error: /usr/lib64/samba/libsamdb-common-samba4.so: symbol ldb_msg_element_add_value version LDB_2.0.12 not defined in file libldb.so.2 with link time reference

smbclient: relocation error: /usr/lib64/samba/libsamdb-common-samba4.so: symbol ldb_msg_element_add_value version LDB_2.0.12 not defined in file libld ......

Go - Saving an Image to a File

Problem: You have an image and want to save it to a file. Solution: Use the Encode method of the correct file format package (e.g., png.Encode for PNG ......
Saving Image File Go an

Go - Loading an Image from a File

Problem: You want to load an image from an image file. Solution: Use image.Decode to decode data from an image file into an implementation of image.Im ......
Loading Image File from Go

[902] Get the current file's directory of CMD batch scripts

In a batch file, you can use the %~dp0 special variable to get the directory of the currently executing batch file. Here's how you can do it: @echo of ......
directory current scripts batch file

[899] Save a dictionary as a file (JSON)

In Python, you can save a dictionary as a file using various methods, such as JSON, Pickle, or CSV. Here, I'll show you how to save a dictionary as a ......
dictionary Save JSON file 899

Java - File 类和输入输出流的关系

File 类 File 是文件和目录的抽象表示。创建、删除、重命名、检查文件或目录的存在都需要依靠 File 类来完成。 File 不涉及文件的处理和文件内容的读写操作。 输入输出流 输入输出流用于将数据从一个源读取到程序中,或者将数据从程序写入到一个目标(如文件、网络、内存)等。 Java 有多种 ......
Java File

【C#】【System.IO】关于拷贝文件夹以及(Directory和DirectoryInfo、File和FileInfo)的区别

本次问题是想要拷贝文件夹,但是找了一圈发现只有File有Copy或者FileInfo的CopyTo,并没有Directory的拷贝操作方法。 针对C#中拷贝文件夹的方法就是先生成一个目标文件夹(destinationFolder)再将(soursefolder)中的文件依次拷贝到目标文件夹中,C#并 ......

[GXYCTF2019]禁止套娃

原理 .git泄露,githack获取源码 无参RCE执行 解题过程 进入靶场,每看到有用的信息,那就只能目录扫描了,扫到了.git目录,就用githack获取源码 <?php include "flag.php"; echo "flag在哪里呢?<br>"; if(isset($_GET['exp ......
GXYCTF 2019

ssh WARNING: UNPROTECTED PRIVATE KEY FILE!

前言 在 ssh -i 指定密钥文件 登录时,出现以下报错: Permissions 0644 for 'xxxx' are too open. It is required that your private key files are NOT accessible by others. This ......
UNPROTECTED WARNING PRIVATE FILE ssh

【Azure Key Vault】在Azure Databricks上获取Azure Key Vault中所存储的机密(secret)的两种方式

问题描述 在Azure Databricks上获取Azure Key Vault中所存储的机密(secret)的两种方式? 问题解答 方式一: 在Databricks的Notebook 中,直接编写Python代码读取Key Vault的Secret 实例代码如下: import os from a ......
Azure Vault 机密 Databricks Key

npm: No such file or directory

在项目中运行npm run build报错 bash: /c/Program Files/nodejs/node_global/npm: No such file or directory 因为升级了npm和node,环境变量地址也需要重新配置下 npm不是在/node_global文件里,是在no ......
directory file such npm No

[CISCN2019 华北赛区 Day2 Web1]Hack World

原理 sql关键字的fuzz测试 括号代替空格 用substr脚本跑 参考文章:https://blog.csdn.net/qq_45691294/article/details/108709683 ......
赛区 CISCN World 2019 Day2

[GXYCTF2019]BabySQli

原理 关键字的绕过比如or,大写绕过 base16base32base64的编码格式 union select的效果 伪造sql查询结果来绕过密码 参考文章:https://blog.51cto.com/u_15127558/4074236?u_atoken=e6f6427a-697d-4296-9 ......
BabySQli GXYCTF 2019

[SUCTF 2019]CheckIn

原理 文件上传 nginx中间件 上传.user.ini文件,效果和.htaccess一样 参考文章:https://blog.csdn.net/qq_45925514/article/details/125085474 ......
CheckIn SUCTF 2019

[GXYCTF2019]BabyUpload

原理 MIME值的修改--再次强调,三个都要试一遍再说 .htaccess的利用 不知道为什么要先上传木马文件,再上传.htaccess才有用,不然报500 参考文章:https://blog.csdn.net/m0_60571842/article/details/132895474 ......
BabyUpload GXYCTF 2019

[极客大挑战 2019]HardSQL

原理 用fuzz字典来爆破哪些关键字被过滤了 sql语句可以不用空格,仅用括号来隔开username=1'or(updatexml(1,concat(0x7e,database()),1))%23 url编码一些值:%20空格 %23#。。。and关键字可以用^来代替,=可以用like来代替。有时候 ......
HardSQL 2019

[ZJCTF 2019]NiZhuanSiWei

原理 解题过程 进入靶场看到源码 <?php $text = $_GET["text"]; $file = $_GET["file"]; $password = $_GET["password"]; if(isset($text)&&(file_get_contents($text,'r') "we ......
NiZhuanSiWei ZJCTF 2019

[893] Add comments at a batch file (CMD)

ref: How do I do comments at a Windows command prompt? REM is the standard way: REM this is a comment You could also use the double-colon convention c ......
comments batch file 893 Add

[极客大挑战 2019]BuyFlag

原理 弱比较问题 科学计数法绕过 cookie字段的修改 解题过程 进入靶场,页面没什么提示,就先看下原代码吧 看到有两个超链接,现在这个页面是index.php,看一下flag.php 有这几个提示,要满足两个条件咯,再看下原代码 发现有后端源码,也就是说要传入password和money,这里的 ......
BuyFlag 2019

fatal: sha1 file '<stdout>' write error: Broken pipe

解决 使用Git LFS 在官网 https://git-lfs.github.com/ 下载git-lfs-windows-v2.8.0.exe并安装。 新开一个bash命令行输入git lfs install安装 跟踪你要push的大文件git lfs track "*.h5",这时会生成一个. ......
Broken stdout fatal error write

Linux file system All In One

Linux file system All In One 图解 Linux 文件系统 ......
system Linux file All One

[RoarCTF 2019]Easy Calc

原理 PHP的字符串解析特性 利用scandir()列出目录和文件 使用chr()来替代字符 file_get_contents读取并输出文件内容 解题过程 进入靶场,看到一个表达式,要计算,那就简单1+1吧 没啥特别的,url地址也没变化,就看看页面源代码。看到说是用了waf,传递参数给calc. ......
RoarCTF 2019 Easy Calc

[极客大挑战 2019]PHP

原理 解题过程 查看原代码没啥提示,看到有备份网站 常见的备份文件后缀名: .git .svn .swp .~ .bak .bash_history 尝试是否存在index.php的备份。如index.php.bak,又或者www.zip等等,如果没找到就只能用目录扫描工具了 下载www.zip压缩 ......
2019 PHP