curl

Prometheus安装

一世执手 提交于 2021-01-26 03:39:44
Prometheus安装 下载地址: https://prometheus.io/download/ 现在时间是: 2019.09.07 安装环境: Linux centos7 minimal 虚拟机; 宿主主机 MacOS; 软件: virtualBox 6.0.10 r132072 选用版本: prometheus-2.12.0.linux-amd64.tar.gz 二进制包安装 1.安装虚拟机 下载镜像 在virtualbox安装虚拟机 配置网络 更换国内源 【CentOS7】yum安装时出现错误[Errno 14] curl#6 - "Could not resolve host: mirrors.aliyuncs.com; Unknown e的解决办法 2.配置 以及 安装依赖 配置网络使用网络地址转换模式 主机名 配置主机名可以快速辨识 时钟 prometheus是个时序数据库,对时间要求极高,所以安装时间同步的工具,设置时区为东八区, Asia/shanghai 资料 #安装服务 > yum install ntp -y #开机启动 > systemctl enable ntpd #设置时区 > timedatectl set-timezone Asia/Shanghai #查看时区 > timedatectl 3.安装prometheus

Is is possible to make a cURL request and get the route that is taken (similar to traceroute)

南楼画角 提交于 2021-01-26 03:17:48
问题 I have a GET request with header params and I want to check which db instance my app is using. Is there a way I could build a cURL request that would tell me where my request is going? I know there is a traceroute command which displays all the server hops. But is there something similar to that using a cURL? 回答1: You can use --trace option: --trace FILE Write a debug trace to FILE curl --trace trace.txt yourdomain.com (You cannot use trace and verbose at the same time, trace overrides it)

Is is possible to make a cURL request and get the route that is taken (similar to traceroute)

 ̄綄美尐妖づ 提交于 2021-01-26 03:14:17
问题 I have a GET request with header params and I want to check which db instance my app is using. Is there a way I could build a cURL request that would tell me where my request is going? I know there is a traceroute command which displays all the server hops. But is there something similar to that using a cURL? 回答1: You can use --trace option: --trace FILE Write a debug trace to FILE curl --trace trace.txt yourdomain.com (You cannot use trace and verbose at the same time, trace overrides it)

从零开始搭建Prometheus自动监控报警系统

故事扮演 提交于 2021-01-25 05:01:31
什么是Prometheus? Prometheus是由SoundCloud开发的开源监控报警系统和时序列数据库(TSDB)。Prometheus使用Go语言开发,是Google BorgMon监控系统的开源版本。 2016年由Google发起Linux基金会旗下的原生云基金会(Cloud Native Computing Foundation), 将Prometheus纳入其下第二大开源项目。 Prometheus目前在开源社区相当活跃。 Prometheus和Heapster(Heapster是K8S的一个子项目,用于获取集群的性能数据。)相比功能更完善、更全面。Prometheus性能也足够支撑上万台规模的集群。 Prometheus的特点 多维度数据模型。 灵活的查询语言。 不依赖分布式存储,单个服务器节点是自主的。 通过基于HTTP的pull方式采集时序数据。 可以通过中间网关进行时序列数据推送。 通过服务发现或者静态配置来发现目标服务对象。 支持多种多样的图表和界面展示,比如Grafana等。 官网地址:https://prometheus.io/ 架构图 基本原理 Prometheus的基本原理是通过HTTP协议周期性抓取被监控组件的状态,任意组件只要提供对应的HTTP接口就可以接入监控。不需要任何SDK或者其他的集成过程。这样做非常适合做虚拟化环境监控系统,比如VM

HTB-靶机-Haircut

為{幸葍}努か 提交于 2021-01-24 11:40:06
本篇文章仅用于技术交流学习和研究的目的,严禁使用文章中的技术用于非法目的和破坏,否则造成一切后果与发表本文章的作者无关 靶机是作者购买VIP使用退役靶机操作,显示IP地址为10.10.10.24 nmap -p- --min-rate=1000 10.10.10.24 nmap -sC -sV -p 22,80 -oN haircut.nmap 10.10.10.24 nmap扫描结果 根据扫描出来的结果,访问下80端口 得到上没啥用的页面,只能wfuzz快速爆破下目录和文件 gobuster dir -u 10.10 . 10.24 -w /usr/share/wordlists/dirbuster/directory-list- 2.3 -medium.txt -x php,html,txt -t 500 发现文件exposed.php 访问一下 按照上面的提示点击了下Go 访问了下 根据上面的页面显示有经验的话,就知道这是curl执行的结果显示,那么猜测目标靶机此功能是调用了curl,那么我们可以使用curl命令直接下载一个php反弹shell代码,然后访问此反弹shell代码,指定路径就按照默认路径尝试,况且上面也爆破出来了目录uploads ,使用burpsuite直接操作 然后访问上传的文件,本地kali监听端口,成功反弹shell 下载提权检查脚本

从零搭建Prometheus监控报警系统

大憨熊 提交于 2021-01-24 05:05:43
什么是Prometheus? Prometheus是由SoundCloud开发的开源监控报警系统和时序列数据库(TSDB)。 Prometheus使用Go语言开发,是Google BorgMon监控系统的开源版本。 2016年由Google发起Linux基金会旗下的原生云基金会(Cloud Native Computing Foundation), 将Prometheus纳入其下第二大开源项目。 Prometheus目前在开源社区相当活跃。 Prometheus和Heapster(Heapster是K8S的一个子项目,用于获取集群的性能数据。 )相比功能更完善、更全面。 Prometheus性能也足够支撑上万台规模的集群。 Prometheus的特点 多维度数据模型。 灵活的查询语言。 不依赖分布式存储,单个服务器节点是自主的。 通过基于HTTP的pull方式采集时序数据。 可以通过中间网关进行时序列数据推送。 通过服务发现或者静态配置来发现目标服务对象。 支持多种多样的图表和界面展示,比如Grafana等。 官网地址: https://prometheus.io/ 架构图 基本原理 Prometheus的基本原理是通过HTTP协议周期性抓取被监控组件的状态,任意组件只要提供对应的HTTP接口就可以接入监控。 不需要任何SDK或者其他的集成过程。 这样做非常适合做虚拟化环境监控系统

How to download a big file from google drive via curl in Bash?

隐身守侯 提交于 2021-01-24 01:28:38
问题 I wanna make a very simple bash script for downloading files from google drive via Drive API , so in this case there is a big file on google drive and I installed OAuth 2.0 Playground on my google drive account, then in the Select the Scope box, I choose Drive API v3 , and https://www.googleapis.com/auth/drive.readonly to make a token and link. After clicking Authorize APIs and then Exchange authorization code for tokens . I copied the Access token like below. #! /bin/bash read -p 'Enter your

How to download a big file from google drive via curl in Bash?

烈酒焚心 提交于 2021-01-24 01:27:16
问题 I wanna make a very simple bash script for downloading files from google drive via Drive API , so in this case there is a big file on google drive and I installed OAuth 2.0 Playground on my google drive account, then in the Select the Scope box, I choose Drive API v3 , and https://www.googleapis.com/auth/drive.readonly to make a token and link. After clicking Authorize APIs and then Exchange authorization code for tokens . I copied the Access token like below. #! /bin/bash read -p 'Enter your

How to download a big file from google drive via curl in Bash?

六月ゝ 毕业季﹏ 提交于 2021-01-24 01:25:00
问题 I wanna make a very simple bash script for downloading files from google drive via Drive API , so in this case there is a big file on google drive and I installed OAuth 2.0 Playground on my google drive account, then in the Select the Scope box, I choose Drive API v3 , and https://www.googleapis.com/auth/drive.readonly to make a token and link. After clicking Authorize APIs and then Exchange authorization code for tokens . I copied the Access token like below. #! /bin/bash read -p 'Enter your

How to download a big file from google drive via curl in Bash?

为君一笑 提交于 2021-01-24 01:24:29
问题 I wanna make a very simple bash script for downloading files from google drive via Drive API , so in this case there is a big file on google drive and I installed OAuth 2.0 Playground on my google drive account, then in the Select the Scope box, I choose Drive API v3 , and https://www.googleapis.com/auth/drive.readonly to make a token and link. After clicking Authorize APIs and then Exchange authorization code for tokens . I copied the Access token like below. #! /bin/bash read -p 'Enter your