sakiir

Untitled

Sep 19th, 2014
563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. PAGE=$(nc 54.209.5.48 12345 | grep ':' | sed 's/psifer//g' | sed 's/text: //g')
  4. PAGE=$(echo $PAGE |  tr '[:lower:]' '[:upper:]')
  5. DECODED=""
  6. for I in $(seq 25); do
  7.     TMP=$(echo $PAGE | tr $(printf %${I}s | tr ' ' '.')\A-Z A-ZA-Z)
  8.     if [[ $TMP == *ANSWER* ]]
  9.     then
  10.         DECODED=$(echo $TMP)
  11.     fi
  12. done
  13.  
  14. echo $DECODED | sed 's/ //g' |sed 's/THEANSWERTOTHISSTAGEIS//g'
Advertisement
Add Comment
Please, Sign In to add comment