Click here to Skip to main content
15,946,988 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Single web solution vs web app + mobile web app Pin
RobCroll18-May-12 3:23
RobCroll18-May-12 3:23 
QuestionDOC/View/Mainframe or does it matter? Pin
BarryPearlman8-May-12 11:52
BarryPearlman8-May-12 11:52 
AnswerRe: DOC/View/Mainframe or does it matter? Pin
Pete O'Hanlon8-May-12 11:59
mvePete O'Hanlon8-May-12 11:59 
QuestionASP.net Duobt Pin
SureshBabu S5-May-12 18:29
SureshBabu S5-May-12 18:29 
AnswerRe: ASP.net Duobt Pin
OriginalGriff5-May-12 19:30
mveOriginalGriff5-May-12 19:30 
AnswerMy vote of 1 Pin
Keith Barrow5-May-12 23:05
professionalKeith Barrow5-May-12 23:05 
JokeRe: ASP.net Duobt Pin
Manfred Rudolf Bihy10-May-12 3:44
professionalManfred Rudolf Bihy10-May-12 3:44 
QuestionWhat language is this? Pin
sczii5-May-12 15:15
sczii5-May-12 15:15 
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!

Bash
#!/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

AnswerRe: What language is this? Pin
Deka Prikarna A.6-May-12 0:25
Deka Prikarna A.6-May-12 0:25 
GeneralRe: What language is this? Pin
jschell7-May-12 8:46
jschell7-May-12 8:46 
GeneralRe: What language is this? Pin
Deka Prikarna A.10-May-12 0:36
Deka Prikarna A.10-May-12 0:36 
AnswerRe: What language is this? Pin
Apocalypse Now11-May-12 22:15
Apocalypse Now11-May-12 22:15 
AnswerRe: What language is this? Pin
kishhr22-Jun-12 9:06
kishhr22-Jun-12 9:06 
Questionproject for you Pin
silverbuyer1-May-12 18:43
silverbuyer1-May-12 18:43 
QuestionDilemma on exposing methods in interface based programming Pin
SSEAR22-Apr-12 23:11
SSEAR22-Apr-12 23:11 
AnswerRe: Dilemma on exposing methods in interface based programming Pin
VallarasuS24-Apr-12 5:12
VallarasuS24-Apr-12 5:12 
AnswerRe: Dilemma on exposing methods in interface based programming Pin
jschell28-Apr-12 7:52
jschell28-Apr-12 7:52 
GeneralRe: Dilemma on exposing methods in interface based programming Pin
SSEAR29-Apr-12 20:53
SSEAR29-Apr-12 20:53 
GeneralRe: Dilemma on exposing methods in interface based programming Pin
jschell30-Apr-12 8:00
jschell30-Apr-12 8:00 
GeneralRe: Dilemma on exposing methods in interface based programming Pin
SSEAR1-May-12 20:28
SSEAR1-May-12 20:28 
GeneralRe: Dilemma on exposing methods in interface based programming Pin
jschell2-May-12 10:57
jschell2-May-12 10:57 
AnswerRe: Dilemma on exposing methods in interface based programming Pin
BobJanova30-Apr-12 4:06
BobJanova30-Apr-12 4:06 
GeneralRe: Dilemma on exposing methods in interface based programming Pin
SSEAR1-May-12 21:01
SSEAR1-May-12 21:01 
GeneralRe: Dilemma on exposing methods in interface based programming Pin
jschell2-May-12 11:07
jschell2-May-12 11:07 
QuestionWhen we will stop programming?! Pin
Hasan Al-Halabi8-Apr-12 0:25
Hasan Al-Halabi8-Apr-12 0:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.