#๐Ÿ”’ Logic code for flag on python

48 messages ยท Page 1 of 1 (latest)

sand nacelleBOT
#

@hearty burrow

Python help channel opened

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.

hearty burrow
#

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 !

glossy flare
sand nacelleBOT
#
Pasting large amounts of 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.

glossy flare
# hearty burrow

as for this, i'm pretty sure only javascript code can be run through HTML

hearty burrow
glossy flare
#

i may be wrong - this isn't my strong point

hearty burrow
glossy flare
#

but i highly doubt that <script> blocks allow for python code

hearty burrow
#

that a ctf brython

glossy flare
hearty burrow
#

idk really just i have a source code and interpret brython to get the flag

glossy flare
#

only JS

hearty burrow
hearty burrow
hearty burrow
glossy flare
bitter heart
#

(although not quite the same thing)

hearty burrow
#

But who can help me for my code please ?

bitter heart
hearty burrow
bitter heart
#

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

hearty burrow
#

my code may not be good, the source code is not me who does it

#

U want all code of the page ?

bitter heart
bitter heart
hearty burrow
#

After that use a html code

#

But i can send if u really want

bitter heart
#

is this a password validator then?

hearty burrow
#

We can say it like that yes if I understood how the script works well

bitter heart
#

ah, generally authentication stuff like this isn't handled by the frontend because it is insecure

hearty burrow
#

That a capture the flag, so yeah it's done like that

bitter heart
#

ohhh I see

#

are you trying to find out the password then?

hearty burrow
#

Yes

#

If I understand the source code, I see that the flag must be 37 characters

bitter heart
#

yes you're right

hearty burrow
#

the beginning is: FLAG{94d if I'm not mistaken

#

so that you understand better imagine that FLAG{31 characters} is the password

sand nacelleBOT
#
Python help channel closed for inactivity

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.