Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. What language is this?

What language is this?

Scheduled Pinned Locked Moved Design and Architecture
linuxquestionhtmltoolshelp
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi guys, Nooby question... can anyone tell me what coding language this is? I found the source online and I would like to compile it and run it... thanks!

    #!/bin/bash
    USER=""
    PASS=""
    if [ -z "$PASS" ]; then echo "You need to set your username and password in the script."; exit 1; fi
    wget -q -O .login.html --post-data="username=$USER&password=$PASS&btn_submit=Login" --save-cookies=.cookies.txt --keep-session-cookies --referer
    grep "Image Validation" .login.html >/dev/null && echo "Error: You need to log out/in in a web browser" && exit 1
    wget -q -O - > out.txt

    TEXT=`cat out.txt | grep "Generated String:" | cut -f 2 -d : | cut -f 1 -d "<" | tr -d [:blank:]`
    SHIFT=`cat out.txt | grep "Generated String:" | cut -f 3 -d : | cut -f 1 -d "<" | tr -d [:blank:]`

    echo "If this doesn't work, you'll need to add this separator:"
    echo $TEXT

    for EACH in `echo $TEXT | tr "," "\n" | tr ")" "\n" | tr "#" "\n"| tr "'" "\n"| tr "." "\n"| tr "&" "\n"| tr "(" "\n"| tr "!" "\n"| tr "%" "\n"| tr "$" "\n"| tr "+" "\n"| tr "-" "\n"| tr "/" "\n"| tr "*" "\n"| tr "@" "\n"| tr "^" "\n"| tr "\"" "\n"`
    do
    let EACH=$EACH-$SHIFT
    STRING="$STRING$(printf "\\$(printf "%03o" $EACH)")"
    done
    echo The string is $STRING
    wget -q -O - --post-data="solution=$STRING" --load-cookies=.cookies.txt --keep-session-cookies --referer > out2.txt
    grep "answer is wrong" out2.txt | html2text
    grep -i successfully out2.txt | html2text
    grep -i "already completed" out2.txt | html2text

    rm .login.html; rm .cookies.txt; rm out.txt; rm out2.txt

    D A L 3 Replies Last reply
    0
    • L Lost User

      Hi guys, Nooby question... can anyone tell me what coding language this is? I found the source online and I would like to compile it and run it... thanks!

      #!/bin/bash
      USER=""
      PASS=""
      if [ -z "$PASS" ]; then echo "You need to set your username and password in the script."; exit 1; fi
      wget -q -O .login.html --post-data="username=$USER&password=$PASS&btn_submit=Login" --save-cookies=.cookies.txt --keep-session-cookies --referer
      grep "Image Validation" .login.html >/dev/null && echo "Error: You need to log out/in in a web browser" && exit 1
      wget -q -O - > out.txt

      TEXT=`cat out.txt | grep "Generated String:" | cut -f 2 -d : | cut -f 1 -d "<" | tr -d [:blank:]`
      SHIFT=`cat out.txt | grep "Generated String:" | cut -f 3 -d : | cut -f 1 -d "<" | tr -d [:blank:]`

      echo "If this doesn't work, you'll need to add this separator:"
      echo $TEXT

      for EACH in `echo $TEXT | tr "," "\n" | tr ")" "\n" | tr "#" "\n"| tr "'" "\n"| tr "." "\n"| tr "&" "\n"| tr "(" "\n"| tr "!" "\n"| tr "%" "\n"| tr "$" "\n"| tr "+" "\n"| tr "-" "\n"| tr "/" "\n"| tr "*" "\n"| tr "@" "\n"| tr "^" "\n"| tr "\"" "\n"`
      do
      let EACH=$EACH-$SHIFT
      STRING="$STRING$(printf "\\$(printf "%03o" $EACH)")"
      done
      echo The string is $STRING
      wget -q -O - --post-data="solution=$STRING" --load-cookies=.cookies.txt --keep-session-cookies --referer > out2.txt
      grep "answer is wrong" out2.txt | html2text
      grep -i successfully out2.txt | html2text
      grep -i "already completed" out2.txt | html2text

      rm .login.html; rm .cookies.txt; rm out.txt; rm out2.txt

      D Offline
      D Offline
      Deka Prikarna A
      wrote on last edited by
      #2

      It's a script, maybe a bash script

      J 1 Reply Last reply
      0
      • D Deka Prikarna A

        It's a script, maybe a bash script

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        Prikarna wrote:

        maybe a bash script

        Really likely considering that the following is at the top... #!/bin/bash

        D 1 Reply Last reply
        0
        • J jschell

          Prikarna wrote:

          maybe a bash script

          Really likely considering that the following is at the top... #!/bin/bash

          D Offline
          D Offline
          Deka Prikarna A
          wrote on last edited by
          #4

          Oh, I just realized that.

          1 Reply Last reply
          0
          • L Lost User

            Hi guys, Nooby question... can anyone tell me what coding language this is? I found the source online and I would like to compile it and run it... thanks!

            #!/bin/bash
            USER=""
            PASS=""
            if [ -z "$PASS" ]; then echo "You need to set your username and password in the script."; exit 1; fi
            wget -q -O .login.html --post-data="username=$USER&password=$PASS&btn_submit=Login" --save-cookies=.cookies.txt --keep-session-cookies --referer
            grep "Image Validation" .login.html >/dev/null && echo "Error: You need to log out/in in a web browser" && exit 1
            wget -q -O - > out.txt

            TEXT=`cat out.txt | grep "Generated String:" | cut -f 2 -d : | cut -f 1 -d "<" | tr -d [:blank:]`
            SHIFT=`cat out.txt | grep "Generated String:" | cut -f 3 -d : | cut -f 1 -d "<" | tr -d [:blank:]`

            echo "If this doesn't work, you'll need to add this separator:"
            echo $TEXT

            for EACH in `echo $TEXT | tr "," "\n" | tr ")" "\n" | tr "#" "\n"| tr "'" "\n"| tr "." "\n"| tr "&" "\n"| tr "(" "\n"| tr "!" "\n"| tr "%" "\n"| tr "$" "\n"| tr "+" "\n"| tr "-" "\n"| tr "/" "\n"| tr "*" "\n"| tr "@" "\n"| tr "^" "\n"| tr "\"" "\n"`
            do
            let EACH=$EACH-$SHIFT
            STRING="$STRING$(printf "\\$(printf "%03o" $EACH)")"
            done
            echo The string is $STRING
            wget -q -O - --post-data="solution=$STRING" --load-cookies=.cookies.txt --keep-session-cookies --referer > out2.txt
            grep "answer is wrong" out2.txt | html2text
            grep -i successfully out2.txt | html2text
            grep -i "already completed" out2.txt | html2text

            rm .login.html; rm .cookies.txt; rm out.txt; rm out2.txt

            A Offline
            A Offline
            Apocalypse Now
            wrote on last edited by
            #5

            shell script

            1 Reply Last reply
            0
            • L Lost User

              Hi guys, Nooby question... can anyone tell me what coding language this is? I found the source online and I would like to compile it and run it... thanks!

              #!/bin/bash
              USER=""
              PASS=""
              if [ -z "$PASS" ]; then echo "You need to set your username and password in the script."; exit 1; fi
              wget -q -O .login.html --post-data="username=$USER&password=$PASS&btn_submit=Login" --save-cookies=.cookies.txt --keep-session-cookies --referer
              grep "Image Validation" .login.html >/dev/null && echo "Error: You need to log out/in in a web browser" && exit 1
              wget -q -O - > out.txt

              TEXT=`cat out.txt | grep "Generated String:" | cut -f 2 -d : | cut -f 1 -d "<" | tr -d [:blank:]`
              SHIFT=`cat out.txt | grep "Generated String:" | cut -f 3 -d : | cut -f 1 -d "<" | tr -d [:blank:]`

              echo "If this doesn't work, you'll need to add this separator:"
              echo $TEXT

              for EACH in `echo $TEXT | tr "," "\n" | tr ")" "\n" | tr "#" "\n"| tr "'" "\n"| tr "." "\n"| tr "&" "\n"| tr "(" "\n"| tr "!" "\n"| tr "%" "\n"| tr "$" "\n"| tr "+" "\n"| tr "-" "\n"| tr "/" "\n"| tr "*" "\n"| tr "@" "\n"| tr "^" "\n"| tr "\"" "\n"`
              do
              let EACH=$EACH-$SHIFT
              STRING="$STRING$(printf "\\$(printf "%03o" $EACH)")"
              done
              echo The string is $STRING
              wget -q -O - --post-data="solution=$STRING" --load-cookies=.cookies.txt --keep-session-cookies --referer > out2.txt
              grep "answer is wrong" out2.txt | html2text
              grep -i successfully out2.txt | html2text
              grep -i "already completed" out2.txt | html2text

              rm .login.html; rm .cookies.txt; rm out.txt; rm out2.txt

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              That's a batch file command, you can run at once and all will get executed

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups