ctf_aria

write up ctf by ariafatah


Project maintained by ariafatah0711 Hosted on GitHub Pages — Theme by mattgraham

soal

There are 2 files in the homedirectory: passwords.old and passwords.new.
The password for the next level is in passwords.new and is the only line that has been changed between passwords.old and passwords.new

NOTE: if you have solved this level and see ‘Byebye!’ when trying to log into bandit18, this is related to the next level, bandit19

ssh

sshpass -p "EReVavePLFHtFlFsjn3hyzMlvSuSAcRD" ssh -o StrictHostKeyChecking=no bandit17@bandit.labs.overthewire.org -p 2220

solve

diff passwords.old passwords.new 
# 42c42
# < ktfgBvpMzWKR5ENj26IbLGSblgUG9CzB
# ---
# > x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO

cat passwords.new | grep "x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO" -n
# 42:x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO
cat passwords.new -n | grep 42
# 42  x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO

flag

x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO