Can you solve me /g/?
>>51788848
Working on it, don't 404!
>>51788848
Shit, I only programmed a Sudoku solver yet.
Bumping for interest.
How to win?
>>51789343
that's not a sudoku
>>51788848
I did a picross solver for school. That's the first or second project they asked us to do.
>>51788848
doesn't look too hard to do manually
>>51789857
>that's not a sudoku
isn't that the GCHQ xmas card by the way?
>>51788848
>.jpg
fucking retard
Pls don't 404 I'll work on it too
I'm getting pretty close here, I'm getting excited to scan the thing
>inb4 I made one mistake
I'm a strong man who don't need no computer algorithms
>>51790850
Also, very disapointing picture. Can't be bothered to actually do a QR scan
>>51788848
>jpg
whatever
>>51790850
Well shit.
It was immediately obvious it's a QR code, and I just thought to myself holy shit it would be evil to make a huge puzzle like this and have the solution be an invalid QR code
>>51790716
>>51790885
What's the problem?
>>51790850
I cleaned it up and it scans
text it:
> www.gchq.gov.uk/puzz
>>51791032
>>51790995
Shit quality. When making ANYTHING where you require people to fill in boxes, ALWAYS do PNG. Artifacts get in the way and you have to adjust your fill tolerance and shit, things people generally don't want to fuck around with just for a stupid puzzle. Also a black and white image like that would have had a smaller file size as PNG and been higher quality of course so there's no reason not to save as PNG.
This is insanely easy
Once you get the qr code you answer 6 multiple choice questions, answering one directs you to the next the url of which is a derivative of your answer, so the final url is some FFECCC
>http://s3-eu-west-1.amazonaws.com/puzzleinabucket/FFECCC.html
All you have to do is write a script that attempts all the urls, reads the page, and sees if the error message is not on it
It would take like 5 seconds to brute force it
>>51791793
This is going to take forever but this is the first real python script I've written
>>51792592
Do it concurrently
>>51788848
I hate those fuckers
>>51792592
Progress?
>>51793291
>>51792871
DEFACE.html
Do would I do it concurrently?
Here's the script
from urllib.request import urlopen
from bs4 import BeautifulSoup
import requests
import itertools
def checkForWord():
r = requests.get("http://s3-eu-west-1.amazonaws.com/puzzleinabucket/FFECCC.html")
return "Sorry" in r.text
def bruteforce(charset, maxlength):
return (''.join(candidate)
for candidate in itertools.chain.from_iterable(itertools.product(charset, repeat=i)
for i in range(1, maxlength + 1)))
list1 = list(bruteforce('abcdef', 6))
list2 = []
for x in list1:
if len(x) >= 6:
list2.append(x.upper())
print(len(list2))
# print("http://s3-eu-west-1.amazonaws.com/puzzleinabucket/" + list2[5122] + ".html")
for x in list2:
r = requests.get("http://s3-eu-west-1.amazonaws.com/puzzleinabucket/" + x + ".html")
if "Sorry" in r.text:
print("Wrong one: " + x + " http://s3-eu-west-1.amazonaws.com/puzzleinabucket/" + x + ".html")
else:
print("Right one: " + x + " http://s3-eu-west-1.amazonaws.com/puzzleinabucket/" + x + ".html")
Anyone still working on the next part? I think the first word would be Cub, the pattern being parts of each word reversed to be part of the pair.
If numbered 1-8 mirror the list in the middle. i.e. Rook | Kekoo
>>51793863
Considering they went through the effort to disable form submission so they could put the validation code on the page locally, I don't think you're actually intended to solve the questions.
>tfw you're now on the CGHQ watch list
Also has anyone actually go the original 5mb image from the cghq site to load. Based on their previous puzzles they've usually hidden some data using stengography into images for the *real* puzzle.
I'm guessing it's taking so long becase 1 their server is getting flooded and 2 they are generating unique images per user.
>>51793499
usetags you nigger
>>51794321
fug
I didn't expect that to actually be converted, I didn't have a closing tag
I was trying to say {code}stuff{/code} tags
replace { with [ and } with ]
or just read the fucking sticky
>/g/chq
A+ PR GQHQ !NSA
>>51790850
How does the 1-7 rows and colums even line up to make a red box, really confused here?
Having trouble seeing the pattern altho i have been working with QR a long time
>>51794823
Black squares are hits, red squares are places where no hit is present. If that makes any sense to you.
>>51794321
If I knew how I clearly fucking would you dumb cunt, instead of being a jackass maybe try acting out of character and post something useful instead of wasting precious 4chan bandwidth on your horse shit useless comments
>>51794321
Here you go faggot you useless faggotfrom urllib.request import urlopen
from bs4 import BeautifulSoup
import requests
import itertools
def checkForWord():
r = requests.get("http://s3-eu-west-1.amazonaws.com/puzzleinabucket/FFECCC.html")
return "Sorry" in r.text
def bruteforce(charset, maxlength):
return (''.join(candidate)
for candidate in itertools.chain.from_iterable(itertools.product(charset, repeat=i)
for i in range(1, maxlength + 1)))
list1 = list(bruteforce('abcdef', 6))
list2 = []
for x in list1:
if len(x) >= 6:
list2.append(x.upper())
print(len(list2))
# print("http://s3-eu-west-1.amazonaws.com/puzzleinabucket/" + list2[5122] + ".html")
for x in list2:
r = requests.get("http://s3-eu-west-1.amazonaws.com/puzzleinabucket/" + x + ".html")
if "Sorry" in r.text:
print("Wrong one: " + x + " http://s3-eu-west-1.amazonaws.com/puzzleinabucket/" + x + ".html")
else:
print("Right one: " + x + " http://s3-eu-west-1.amazonaws.com/puzzleinabucket/" + x + ".html")
>>51794823
> How does the 1-7 rows and colums even line up to make a red box, really confused here?
Well, red isn't part of the puzzle. Could be white.
You just read the numbers on the left side of the puzzle from left to right as how many consecutive black squares you have (also placed left to right), interrupted by one or more white squares.
Ditto for the numbers at the top, read from top to bottom.
>>51794208http://www."+$("#word_a").val().toLowerCase()+"-"+$("#word_b").val().toLowerCase()+"-"+$("#word_c").val().toLowerCase()+".org.uk/"+$("#word_d").val().toLowerCase()+"</b> for Part 4.
What am I looking at? The source code makes no other mentioned of word_a/b/c
>>51795067
Here is an example with just the first line done. I've colored in the squares in a different color to make it obvious what I've changed.
The line has 1 colored square followed by one or more white squares, then 3 colored, then white, then 1, then 3 then 10 then 2.
This particular line there is no other way to color the squares correctly.
>>51789857
doubt it, this was issued by GCHQ as part of a recruitment program, it leads you to another puzzle and at the end is a job opportunity working in the intelligence gathering sector
>>51795129
$("#word_b") is a jquery selector, there must be an element with "word_b" as id somewhere on the page
>>51795238
There's four scripts on the entire page: the html, css, bootstrap js, and jquery - its not mentioned in any of them aside from the html/css
>>51795299
I mean there obviously is but its not directly assigned a value and I can't read the code that validates the submission that references it
Really /g/ leddit is trying to solve part 5 and your still trying to figure out which squares to color
http://imgur.com/bjCBv8B
>>51795857
We're on 3, we started a day after them and there's like three of us actually working on it
Its funny that the faggot who browses leddit and hasn't actually contributed shit is talking shit