You are not logged in.

#1 2014-03-10 01:18:14

w3
Member
Registered: 2014-03-10
Posts: 15

Forum registration is broken

Hi,

I just could register at this forums but it was really hard because the security question one has to answer can not be answered right by just entering

date -u +%V$(uname)|sha256sum|sed 's/\W//g'

in a terminal. After a lot of attempts I found out that there has to be something wrong with the serverside execution of the sed part. I could only register successfully by omitting the sed part. So instead of entering just the hash value as the answer, one has to enter the complete output of

date -u +%V$(uname)|sha256sum

That means

# doesn't work
b767e3bd870dbdf1a06d1a90e059f490ad024936c5424cd01ada2df947d4783b

# works
b767e3bd870dbdf1a06d1a90e059f490ad024936c5424cd01ada2df947d4783b  -

Offline

#2 2014-03-10 01:42:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Forum registration is broken

Offline

#3 2014-03-10 02:28:06

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: Forum registration is broken

sed is only guaranteed to support POSIX BRE, and I cannot see \W defined there. \W is part of pcre.
There are some alternative commands we could use:

cut -d" " -f1
sed "s/[^[:alnum:]]//g"
sed "s/[^[:xdigit:]]//g"

Last edited by progandy (2014-03-10 02:28:37)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB