木落长安rr

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年2月25日

摘要: 1.读代码,读懂题目 打开靶机,显示页面信息,为php代码 通读代码可以得知: 当URL处get方式传参,输入v1、v2两个参数,当v1的值全部为字母,v2的值全部为数字,当v1与v2输入值的md5值相同时,输出flag,没有输入值的情况下,输出“where is flag”,现在页面的最上方也有该 阅读全文
posted @ 2021-02-25 17:30 木落长安rr 阅读(282) 评论(0) 推荐(0) 编辑

摘要: 打开靶机,发现只有一句提示 查看网页源代码 猜测是base64编码形式,使用base64解码 得出结果: ctfshow{a4669f20-ec59-44e7-94be-9a06321e9645} 阅读全文
posted @ 2021-02-25 11:03 木落长安rr 阅读(260) 评论(0) 推荐(0) 编辑

2021年1月14日

摘要: 本人使用的是云主机,并非在本地搭建LAMP,但过程步骤也是大同小异,记录一下第一次搭建LAMP所踩的坑 实验环境: [root@han01 ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) [root@han01 ~]# 阅读全文
posted @ 2021-01-14 14:14 木落长安rr 阅读(128) 评论(0) 推荐(0) 编辑

2021年1月11日

摘要: 本次使用CentOS 7.6系统 利用官方提供dvwa的docker版本搭建靶机的过程如下: 1.卸载老版本的docker及其依赖 sudo yum remove docker docker-common container-selinux docker-selinux docker-engine 阅读全文
posted @ 2021-01-11 15:00 木落长安rr 阅读(727) 评论(0) 推荐(0) 编辑

2020年12月15日

摘要: 这是BUUCTF上刷的第一道题,题目看是SQL注入 1.根据经验尝试有无常规注入 1.1 探测有无注入 1’ 报错 1’# 正常且为True 1’ and 1=1# 正常且为True 1’ and 1=2# 正常且为False 可以判断出:存在注入且参数使用单引号闭合 原因:当输入1’时,返回err 阅读全文
posted @ 2020-12-15 15:45 木落长安rr 阅读(69) 评论(0) 推荐(0) 编辑

2020年12月2日

摘要: 使用管理员身份打开这个文件即可 即sudo vim 文件名 阅读全文
posted @ 2020-12-02 14:43 木落长安rr 阅读(1095) 评论(0) 推荐(0) 编辑

2020年7月30日

摘要: 利用C语言实现DES算法,分组密码原理过程很简单,但是在写的过程中检查了好久才发现错误原因,主要有两点: 1.在加密过程16轮迭代过程中,最后一轮迭代运算后的结果并没有进行交换,即C=IP-1(R16,L16),这样做的目的是为了加密解密使用同一个算法 2.在S盒的过程中,移位后应该加括号,否则+的 阅读全文
posted @ 2020-07-30 14:00 木落长安rr 阅读(836) 评论(0) 推荐(0) 编辑

2020年2月7日

摘要: 1. 想打出单斜杠,如文件路径:C:\win.vhd 解决:$ \verb|\|$ 表示单斜杠 C:$ \verb|\|$win.vhd 2. 在生成的pdf中发现某一行超出了范围,行溢出问题 解决:找到对应的提示行,然后将最后几个单词任意截断,然后另起一行即可。 3. latex在参考文献引用的时 阅读全文
posted @ 2020-02-07 18:31 木落长安rr 阅读(135) 评论(0) 推荐(0) 编辑

2020年1月9日

摘要: 出现原因1:使用下划线_,被LaTeX识别为特殊字符 解决方法:使用转义符号\,变为‘\_’即可 出现原因2:直接使用数学上标符号 解决方法:在其前后加上$即可,变成$2^{32}$ 阅读全文
posted @ 2020-01-09 15:36 木落长安rr 阅读(15591) 评论(0) 推荐(0) 编辑

2019年11月21日

摘要: 出现问题: 问题原因:app.json中不能出现注释 阅读全文
posted @ 2019-11-21 10:47 木落长安rr 阅读(456) 评论(0) 推荐(0) 编辑

2019年9月15日

摘要: 给你一个按 YYYY-MM-DD 格式表示日期的字符串 date,请你计算并返回该日期是当年的第几天。 通常情况下,我们认为 1 月 1 日是每年的第 1 天,1 月 2 日是每年的第 2 天,依此类推。每个月的天数与现行公元纪年法(格里高利历)一致。 示例1: 示例2: 示例3: 示例4: 思路: 阅读全文
posted @ 2019-09-15 10:24 木落长安rr 阅读(248) 评论(0) 推荐(0) 编辑

摘要: 1.头文件:#include<sstream> 2.stringstream是C++提供的串流(stream)物件,其中: clear()重置流的标志状态;str()清空流的内存缓冲,重复使用内存消耗不再增加! 在使用stringstream时遇到的问题: 运行结果: 预期b为90,但是出现-858 阅读全文
posted @ 2019-09-15 10:06 木落长安rr 阅读(11531) 评论(0) 推荐(2) 编辑

2019年6月21日

摘要: 1)窗口去除边框 在组件属性中FormBorderStyle设为None 2)窗口随着鼠标移动而动 添加引用using System.Runtime.InteropServices; 在初始化控件{InitializeComponent();}代码后添加 3)窗口居中显示 利用C# Form中的St 阅读全文
posted @ 2019-06-21 16:49 木落长安rr 阅读(6663) 评论(0) 推荐(0) 编辑

2019年5月10日

摘要: this.FormBorderStyle = FormBorderStyle.FixedDialog;//设置边框为不可调节 this.MaximizeBox = false;//取消最大化按键 this.MinimizeBox = false;//取消最小化按键 阅读全文
posted @ 2019-05-10 15:29 木落长安rr 阅读(3497) 评论(0) 推荐(1) 编辑

2019年4月17日

摘要: Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For example, 阅读全文
posted @ 2019-04-17 14:48 木落长安rr 阅读(119) 评论(0) 推荐(0) 编辑

2019年4月15日

摘要: Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For example, 阅读全文
posted @ 2019-04-15 22:03 木落长安rr 阅读(196) 评论(0) 推荐(0) 编辑

2019年4月12日

摘要: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. N 阅读全文
posted @ 2019-04-12 21:21 木落长安rr 阅读(138) 评论(0) 推荐(0) 编辑

2019年4月10日

摘要: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet 阅读全文
posted @ 2019-04-10 22:03 木落长安rr 阅读(308) 评论(0) 推荐(0) 编辑

摘要: Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident 阅读全文
posted @ 2019-04-10 21:15 木落长安rr 阅读(287) 评论(0) 推荐(0) 编辑

2019年4月9日

摘要: 使用系统API函数,需要使用命名空间:System.Runtime.InteropServices; 1.if (textBoxPath.Text == String.Empty ) 2.if (textBoxPath.Text == "" ) 3.if (String.IsNullOrEmpty( 阅读全文
posted @ 2019-04-09 19:35 木落长安rr 阅读(12618) 评论(0) 推荐(0) 编辑

2019年4月6日

摘要: Given a binary tree, return the postorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iterative 阅读全文
posted @ 2019-04-06 18:54 木落长安rr 阅读(203) 评论(0) 推荐(0) 编辑

2019年4月5日

摘要: Given a binary tree, return the preorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iterativel 阅读全文
posted @ 2019-04-05 16:51 木落长安rr 阅读(208) 评论(0) 推荐(0) 编辑

摘要: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3 阅读全文
posted @ 2019-04-05 15:54 木落长安rr 阅读(232) 评论(0) 推荐(0) 编辑

摘要: Given a binary tree, return the inorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iteratively 阅读全文
posted @ 2019-04-05 15:03 木落长安rr 阅读(258) 评论(0) 推荐(0) 编辑

2019年4月2日

摘要: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l 阅读全文
posted @ 2019-04-02 10:57 木落长安rr 阅读(162) 评论(0) 推荐(0) 编辑

2019年4月1日

摘要: Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's nodes, only nodes itself may be ch 阅读全文
posted @ 2019-04-01 21:26 木落长安rr 阅读(226) 评论(0) 推荐(0) 编辑

2019年3月29日

摘要: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Given linked list -- head = [4,5,1,9], wh 阅读全文
posted @ 2019-03-29 15:23 木落长安rr 阅读(145) 评论(0) 推荐(0) 编辑

摘要: Remove all elements from a linked list of integers that have value val. Example: 本题的思路很简单,就是单纯的删除链表元素操作,如果头结点的元素就是给定的val值,需要借助虚结点dummy去判断。 方法一:(C++) C 阅读全文
posted @ 2019-03-29 15:13 木落长安rr 阅读(148) 评论(0) 推荐(0) 编辑

摘要: Sort a linked list using insertion sort. A graphical example of insertion sort. The partial sorted list (black) initially contains only the first elem 阅读全文
posted @ 2019-03-29 10:58 木落长安rr 阅读(222) 评论(0) 推荐(0) 编辑

摘要: Given a linked list, return the node where the cycle begins. If there is no cycle, return null. To represent a cycle in the given linked list, we use 阅读全文
posted @ 2019-03-29 10:05 木落长安rr 阅读(158) 评论(0) 推荐(0) 编辑