前言 在刷 leetcode 时,遇到了 stack-buffer-overflow, 这个问题比较常见,干脆总结一下原因。本文是在 linux 下操作的,需要使用一些相关的命令。 stack 是什么 一般 stack 这个词有两个意思,即 stack 这种数据结构,和虚拟内存中 stack 这个段 ...
分类:
其他好文 时间:
2020-07-12 00:52:17
阅读次数:
76
System.AccessViolationException处理 程序出现 System.AccessViolationException异常会终止进程,try catch是无法捕捉的。 有个处理方法在引发异常的发放上面加上 [System.Runtime.ExceptionServices.Ha ...
分类:
数据库 时间:
2020-07-11 21:18:03
阅读次数:
67
- name: disable selinux shell: setenforce 0 ignore_errors: yes - name: disable selinux conf lineinfile: path: /etc/selinux/config regexp: '^SELINUX=.* ...
分类:
其他好文 时间:
2020-07-11 19:40:00
阅读次数:
79
一、使用route命令添加 使用route 命令添加的路由,机器重启或者网卡重启后路由就失效了,方法: A、添加到主机的路由 # route add –host 192.168.1.10 dev eth0 # route add –host 192.168.1.10 gw 192.168.1.1 # ...
分类:
系统相关 时间:
2020-07-11 19:09:13
阅读次数:
116
原文出处:http://www.51testing.com/?uid-225738-action-viewspace-itemid-210333测试机器的硬件信息:查看CPU信息(型号)# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 8 ...
分类:
系统相关 时间:
2020-07-11 19:06:43
阅读次数:
77
在不知道包名的情况下,在手机里先打开要测试的APP,执行如下命令:adb shell dumpsys window w |findstr \/ |findstr name=;获取包名 C:\Users\del>adb shell dumpsys window w |findstr \/ |finds ...
分类:
移动开发 时间:
2020-07-11 18:55:10
阅读次数:
207
Description Name: dpwwn: 2 Date release: 8 Aug 2019 DHCP service: Disabled Static IP address: 10.10.10.10/24 Goal: Get the root shell i.e.(root@dpwwn- ...
分类:
其他好文 时间:
2020-07-11 17:44:46
阅读次数:
69
cut -d: -f1,3,7 /etc/passwd |sort -t: -k2 -n | tail -1 ...
分类:
系统相关 时间:
2020-07-11 17:16:02
阅读次数:
69
查看手机电量信息:adb shell dumpsys battery 设置电池为充电状态——adb shell dumpsys battery set status 2 设置电池为非充电状态——adb shell dumpsys battery set status 1 设置电量百分比——adb s ...
分类:
移动开发 时间:
2020-07-11 16:59:32
阅读次数:
93
C:\Users\del>adb shell dumpsys batterystats | more > C:\Users\del\Desktop\a.txt ——整个电池信息 C:\Users\del>adb shell dumpsys batterystats com.wawj.app.t | ...
分类:
移动开发 时间:
2020-07-11 16:51:57
阅读次数:
208