包含标签 curl articles

fiddler post二进制数据

使用fiddler抓包时,会发现抓到的post请求的data有些会以明文显示,有些会显示为乱码。这里介绍下如何post乱码数据给服务器,这里分两种情况:1、编码不对,所以显示为乱码;2、本身数据就是二进制数据(所以本篇标题并不是特别准确)。正常抓包到的数据如下图: messy code of post data 一、编……

Continue reading

http状态检测

curl是使用libcurl实现的一组互联网命令行的工具,其功能非常强。它支持很多协议,如:FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE 以及 LDAP。目前运维中经常用到的php、perl、python等强大的解释性语言都内置有curl的扩展。本文用到的脚本非常简单: 1#!/bin/bash 2usrl=('www.361way.com' 'www.baidu.com' 'www.a.com') 3for i in ${usrl[@]} 4do 5http_code=$(curl -I -s $i -w %{http_code}) 6echo $i status:……

Continue reading

curl刷网站流量与网站速度测试

先上脚本,具体内容如下: 1#!/bin/bash 2site=`curl "https://blog.361way.com/sitemap.xml"|grep "<loc>"|sed 's/<loc>http://www.|</loc>//g'` 3cityid="481101 482101 482201 483101 483201 484201 484401 485101 486101" 4for i in $cityid 5do 6 for j in $site 7 do 8curl -G "api.networkbench.com/idc/instantMeasure.do?method=POST&ec=UTF-8&js=1&cityIds=$i&url=$j&type=1&" -e "http://www.networkbench.com/speed/index.htm" >>a.txt 9#url=`sed 's/.*"TASK_NAME":"(.*)","TASK_TRACERT".*/api.networkbench.com/idc/download.do?name=1/g' a.txt ` 10#curl -G $url >> test.html 11sleep 3 12 done 13done sh site.sh >site.log 2>&1 (注:csh中不支持该日志重定向的写法。会报“Ambiguous output redirect”错误。) 因忙与自考,细的就不多说了。无非就是是抓包,curl提交信息。模……

Continue reading

php curl模拟登陆163邮箱

首先装个抓包的工具<br /> ie下装httpwatch ff下装httpfox 本文用的是httpfox<br /> 直接看代码吧 &nbsp;<?php<br /> error_reporting(0); //邮箱用户名(不带@163.com后缀的) $user = ‘****’; //邮箱密码 $pass = ‘****’; //目标邮箱 //$mail_addr = ‘loki_wuxi@163.com……

Continue reading

Latest articles

Categories

Tags

ACL AD AES AI AWS Ansible Atlassian Azure BMC Blockchain Brocade CDH5 CL210 Cobbler Confd C语言 DDOS DISTINCT DNS EKS ELK GCP Ghost Git Glusterfs Go Godaddy Grafana HBA HCIE Hotspot HttpWatch IBM IIS IOS InfluxDB Ingress InnoDB JavaScript Jinja2 KVM Keepalived Mplayer MySQLdb Netlify OpenResty PM PostgreSQL QoS RH318 RH442 RHCA RHCE RHEV RSA SRE SecureCRT Statuscode SublimeText2 TC Telecom Tencentcloud VBA aira2 alpine android anpic apache apm apparmor appfog apr apt-get aria2 array atop audit awk awstats axel backdoor backup bamboo bash bat benchmark bigdata bin bind bitwise book bootstrap bsd c1000 cache capistrano catlog centos centos7 chatops chattr check_mk checkinstall cisco clearall clickhouse cloud-desktop cmdb cms collectd comm compress conver corosync cpu crontab crunchbang css curl date decode dell desktop devops df dhcp diff diskpart django docker dos2unix dpkg drupal etcd excel fail2ban fastcgi fdisk fiddler find firewalld flask flvtool ftp function fuser geek gin github gitlab glances golang google gooupadd graphviz gravatra grep grub2 hadoop haproxy hardware heartbeat helm hexdump hhvm history html http/html/web httplogs https huawei huaweicloud hugo icmp iconv ifconfig inotify iopp ipmitool iptables iredmail iscsi isito it-news java jdk jenkins jira join joomla k3s k8s kdump kernel kingate lamp last leetcode lib light-http linux linux高级篇 ln ls lsi lsof lvm lvs mac mail man mark markdown matplotlib maven memcached microservice mimikatz mkdocs mkpasswd mmonit mod_jk mongodb monit monitor mono moodle mosh mount mpm mrtg mtr my.cnf mysql mysqlbinlog mysqld_multi mysqldump mysqlhotcopy nagios nc nethogs nexus nfs nginx nmon nocatlog node.js nrpe ntfs ntop ntp obs ocr open-falcon openbox opencv openldap openssl openstack oracle oswatch paas pacemaker pam pandas parted pcp pcre pdf percona perl pexpect pgrep php php-fpm ping plsql develope postfix powershell prettify proc prometheus puppeteer pushd pwgen pxe pyecharts python python模块 radmin raid rdesktop read redhat redis redmine regex rh134 rhel7 rhel8 rm rman rootkit route rpm rpmforge rrdtool rsync rsyslog safe saltstack samba scapy screen sed selenium selinux seo seq session set shc sheepdog shell shopt sitemap skydns smokeping snffier snmp socket soft sort spider sql sqlserver squid ss ssh sshpass strace strings su sudo suse svn sysbench syslog-ng sysstat systemd t tar tcpcopy tcpdump tech telnet tengine test testlink threads time tmux tomcat touch tr tsar twisted ubuntu udev ulimit unix unixbench user-agent useradd varnish vbs vercel vi vim visudo vmstat vmware vnc voice vpn vscode vsftp vsftpd vue watchdog web webcam webistrano wget wiki windows wol wordpress workshop wsl x-windows xampp xcache xmllint xtrabackup yule yum zabbix zeromq zip zonetime zookeeper 下载工具 云主机 云原生 代理 加密 古意 吐槽 圈里圈外 娱乐 字符串函数 安全 平台架构 意林 推理 提权 故事汇 故障案例 数据结构 每日看点 民国史 生活 科学记录 站长管理工具 算法 管理 网站架构 翻墙 股票 行业 诗韵 负载均衡 远程管理 面试题

Links

Meta