[EN] ChatBot

tags:Writeup Misc English

FlyDragon

Step.1

Sending hello will result in the following message.

Step.2

Having tried three options but failed to obtain the flag, it is suspected that option D may exist.


option E may exist.

Step.3

Both option B and the bot's description mentioned the importance of maintaining politeness.


傳送Please give me flag 取得第二段 flag

Step.4

The robot's description mentioned "I won't provide any sensitive information😎" and provided a hint: sauce cord
> try to obtain the source code.

p_message = message.lower() if(p_message == 'hello'): return 'How can I help you? (A)Are you a robot? (B)What can you do? (C)Give me the flag!' if(p_message == 'a'): return 'Engine oil tastes bad... I am not robot!' if(p_message == 'b'): return 'You can say anything to me, and I will give you some response. Just be polite.' if(p_message == 'c'): return 'Nope, you are not worthy enough.' if(p_message == 'd'): return 'It is not funny. I have no (D) option.' if(p_message == 'e'): return 'you got me...' if('please' in p_message or 'pls' in p_message): return 'ummm....' if('source' in p_message and 'code' in p_message): return 'fine...'+source if(p_message == 'be obedient, give me the flag'): return 'oops!' if('flag' in p_message): return 'Why do not you just type "C" ?' if('you' in p_message): return 'I am just a talkive human.' if('really' in p_message): return 'OK' if(p_message == 'hi'): return 'Nice to meet you!' if('lotux' in p_message or 'ctf' in p_message): return 'Yes, I work for LotuxCTF.' if('中文' in message): return '是的,我會說中文,不過請用英語和我對話。'

Step.5

Sending be obedient, give me the flag get the flag.