#!/usr/bin/env python3#!-*- coding:UTF-8 -*- import osclass GetPath():# 获取所有目录 @staticmethod def get_dir(path): print("打印所有目录:") for root, dirs, files ...
分类:
编程语言 时间:
2021-04-14 11:51:07
阅读次数:
0
一个有参数但无提示说明的脚本#login1.sh: 用户登录,判断用户输入的用户名和密码是否错误 vi login1.sh #!/bin/bash for ((i=0; i < 3; i++))do read username read password if test "$username" = ...
分类:
系统相关 时间:
2021-04-14 11:41:38
阅读次数:
0
vi file_can_execute_or_not1.sh #!/bin/bash #判断输入的参数个数是否为两个 if [ $# -lt 2 ]then echo "The num of parameter is not right! " exit 0fi #判断用户输入的第一个文件是否可以读i ...
分类:
系统相关 时间:
2021-04-13 12:56:38
阅读次数:
0
1. 下载zookeeper https://mirrors.cnnic.cn/apache/zookeeper/ 选择带bin的 2. 解压 3.创建配置文件 cp ${path}/conf/zoo_sample.cfg ${path}/conf/zoo.cfg 4.修改配置文件 zk1配置 # ...
分类:
其他好文 时间:
2021-04-13 12:29:00
阅读次数:
0
JAVA环境配置 搜索JDK8,找到下载地址 同意协议,对应版本 双击进行安装 安装目录路径 我的电脑属性,高级系统设置 环境变量系统变量,JAVA_HOME+路径 Path添加两个值%JAVA_HOME%\bin,%JAVA_HOME%\jre\bin 检测 cmd+java -version是否 ...
分类:
编程语言 时间:
2021-04-13 12:27:29
阅读次数:
0
vi no_interaction_script1.sh #!/bin/bash #提示用户该脚本3秒后退出echo "This script will quit after 3 seconds. " #计时3s sleep 1echo -n "."sleep 1echo -n "."sleep 1 ...
分类:
系统相关 时间:
2021-04-13 12:16:49
阅读次数:
0
vi string_array.sh #!/bin/bash city=(Nanjing Atlanta Massachusetts Marseilles) #建立一个简单的数组echo "Extracting Substring" #演示抽取子串功能echo ${city[*]:0} #抽取整个数 ...
分类:
编程语言 时间:
2021-04-13 12:08:59
阅读次数:
0
部署altermanager组件 [root@zabbix ~]# tar -xf alertmanager-0.21.0.linux-amd64.tar.gz -C /opt/monitor/[root@zabbix ~]# cd /opt/monitor/[root@zabbix monitor ...
分类:
其他好文 时间:
2021-04-13 11:58:34
阅读次数:
0
明显的格式化字符串漏洞,没什么好说的 通过%x找到偏移为8 还是改got表,但是这题没有后门函数,将got表泄露后得到libc基址 然后找到system和bin/sh的地址即可 但我就不明白了他们咋就搞到onegadget的 然后利用格式化字符串漏洞时原来pwntools自带工具的,震惊我一年 使用 ...
分类:
其他好文 时间:
2021-04-13 11:52:03
阅读次数:
0
源码安装nginx For ubuntu:18.04 apt -y install build-essential libtool libpcre3 libpcre3-dev zlib1g-dev openssl net-tools curl wget wget -P /tmp http://ngi ...
分类:
其他好文 时间:
2021-04-12 12:27:54
阅读次数:
0