buuctf-ping

 

要输入地址,第一反应127.0.0.1,试一试

 

应该是ping对了

网络查询ping: 测试网络连接量的程序,可以确定本地主机能否与另一台主机成功连接,并确定参数等信息是否设置正确

ping命令用法:

windowsping

Windows系列的操作系统中,我们都可以使用ping命令来解决网络中出现的路由问题,方法如下 [5]

①检查当前的IP配置。在Windows系统中使用ipconfig.exe检查IP配置。

②在Windows系统中,ping命令允许在命令行中输入选项,命令形式如下:

C:\>ping169.254.104.10此时使用的是IP协议

 用户Ping:

路由器的用户模式下,也可以使用ping命令,它是一个简单的全局命令,用法同Windows下相同,只是返回代码不同。其形式是:Router>ping169.254.104.10路由器缺省使用IP协议

但是这还是没有说怎么查找需要的信息,看看wp  【BUUCTF】[ACTF2020 新生赛]Exec Writeup_algae-CSDN博客

管道符:

1、|(就是按位或),直接执行|后面的语句

2、||(就是逻辑或),如果前面命令是错的那么就执行后面的语句,否则只执行前面的语句

3、&(就是按位与),&前面和后面命令都要执行,无论前面真假

4、&&(就是逻辑与),如果前面为假,后面的命令也不执行,如果前面为真则执行两条命令

5、; 前后都执行,无论前面真假,同&,(linux也有)

看wp,是先加地址(因为是ping命令,肯定要加上地址,然后在这个地址上执行命令),用符号隔开,然后加上命令

开始真正做题:

先用ls查看目录

 

 没有东西,看看源代码(最近做的题没怎么用源代码,也不能忘了还有这个东西)

 比之前的源代码多了这些东西

 但POST后ping没什么用

那就一步步往上级目录查找

 

查看了这两个目录,没发现什么,那就再退一个目录

 

 查了几个特别的,也没什么发现,那就再退一步

 

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
http-ping是一个小型的,免费的,易于使用的Windows命令行实用程序,它可以探测给定的URL并显示相关的统计信息。 它与流行的ping工具类似,但是通过HTTP / S而不是ICMP工作,并且使用URL而不是计算机名/ IP地址。 http-ping支持IPv6地址。 http-ping提供了一组丰富的命令行选项,可以通过运行“http-ping.exe /?”来查看。从DOS提示符下: http-ping [-t] [-n count] [-i interval] [-f file-name] [-s] [-v] [-q] [-c] [-r] [-w timeout] [-p] [-d] [-o data | -of file-name] [-ua user-agent] [-h header-line] [-e | -et | -eb] [-ipv4 | -ipv6] URL Where: URL The URL you wish to check. For example, http://www.kiva.org, http://209.191.122.70, or http://www.yourhost:8080. Be sure to surround an IPv6 address with square brackets. For example, http://[2a00:1450:4007:800::1014]. Options: -t Ping the specified URL until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. -n count Send 'count' requests. Supercedes -t. -i interval Wait 'interval' seconds between each request. There is a 1-second wait if this option is not specified. -f file-name Save responses to file 'file-name'. Please specify the full path, and use quotes around file names with spaces. -s Silent. Print no output. -v Verbose. Print detailed output. Supercedes -s. -q Quick. Perform HTTP HEAD requests instead of GETs. This will retrieve headers only, and bytes reported will be 0. -c Perform a full connection on each request; ignore keep-alive. -r Follow HTTP redirects. -w timeout Wait 'timeout' seconds for a response before timing out. Specify 0 to avoid timing out. If not specified, the default timeout is 30 seconds. -p Use the proxy defined in the Windows Internet settings. -d Print the date and time of each ping attempt. -o dat

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值