write up ctf by ariafatah
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
sshpass -p "EReVavePLFHtFlFsjn3hyzMlvSuSAcRD" ssh -o StrictHostKeyChecking=no bandit17@bandit.labs.overthewire.org -p 2220
diff passwords.old passwords.new
# 42c42
# < ktfgBvpMzWKR5ENj26IbLGSblgUG9CzB
# ---
# > x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO
cat passwords.new | grep "x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO" -n
# 42:x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO
cat passwords.new -n | grep 42
# 42 x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO
x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO