#๐ Logic code for flag on python
48 messages ยท Page 1 of 1 (latest)
@hearty burrow
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Hello, i need to get a flag with a python web, i have web interpreter for the code and i have made script and i didnt get the good flag, i cant send source code idk why, thank for ur help !
!paste - use this for any source code
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
as for this, i'm pretty sure only javascript code can be run through HTML
Oh okay ty
i may be wrong - this isn't my strong point
but i highly doubt that <script> blocks allow for python code
that a ctf brython
brython is python with braces? that doesn#t look like it has braces in it
idk really just i have a source code and interpret brython to get the flag
like i said, i doubt you can run python code in HTML
only JS
https://paste.pythondiscord.com/YNCA
That the script i testing
Brython
ty haha
i stand corrected. i thought this was the silly braces stuff but i guess not
there is also pyodide https://pyodide.org/en/stable/usage/quickstart.html
(although not quite the same thing)
But who can help me for my code please ?
I'm having trouble understanding what your code is meant to do
my code is supposed to find the flag in relation to the indices of the source code given by the page
I see, you've got a fair few magic numbers and you've decorated your check with thecheck so I'm finding it quite tricky to parse
without including the document that your code is acting upon it is not easy to figure out what is going wrong
my code may not be good, the source code is not me who does it
U want all code of the page ?
I'm not saying that it isn't good, just hard to read
that'd be helpful :)
is this a password validator then?
We can say it like that yes if I understood how the script works well
ah, generally authentication stuff like this isn't handled by the frontend because it is insecure
That a capture the flag, so yeah it's done like that
yes you're right
the beginning is: FLAG{94d if I'm not mistaken
so that you understand better imagine that FLAG{31 characters} is the password
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.